plotly_density_mapbox/plotly_density_mapbox.rs
1use plotlars::{CsvReader, DensityMapbox, Plot, Text};
2
3fn main() {
4 let data = CsvReader::new("data/us_city_density.csv").finish().unwrap();
5
6 DensityMapbox::builder()
7 .data(&data)
8 .lat("city_lat")
9 .lon("city_lon")
10 .z("population_density")
11 .center([39.8283, -98.5795])
12 .zoom(3)
13 .plot_title(Text::from("Density Mapbox").font("Arial").size(20))
14 .build()
15 .plot();
16}