kandy 0.8.0 Help

German States Map With Categories

val worldStates = GeoDataFrame.readShapefile("https://github.com/AndreiKingsley/datasets/raw/refs/heads/main/ne_10m_admin_1_states_provinces/ne_10m_admin_1_states_provinces.shp") val germanStates = worldStates.modify { filter { "admin"<String>() == "Germany" } } germanStates.plot { geoMap { fillColor("name") { legend { name = "State" type = LegendType.DiscreteLegend(nCol = 2) } } borderLine { width = 0.5 color = Color.BLACK } } layout { title = "Germany States" size = 900 to 600 layout.style(Style.Void) } }
germany_map_categories
Last modified: 08 February 2025