Charts and Widgets
-
As
test_user1
create a new map and add thene_50m_admin_0_countries
layer -
Let’s tweak a bit some settings as we learn from the previous section
-
Let’s also change the style to the
CSS
one we created on the previous chapters -
Open the
Charts and Widget
window and selectTable
-
Select only the attrbutes
NAME
andISO3
and click onNext
icon -
Provide some
Title
andDescription
andSave
-
Resize and move the widget where you want on the map; also notice that its contents change accordingly to the geometries present on the viewport
-
To change its contents and make them fixed, despite the zoom level, edit the widget again and uncheck the
Chain
icon -
Let’s add a
Chart
widget to the map; repeat the steps at point 1 but selectingChart
-
Select
ISO3
asX Axis
,POP_EST
asY Axis
,MAX
asOperation
and, optionally, change the color of the chart; notice the preview changing accordingly -
Open the
Advanced Options
, change theType
toLOG
and notice the scale and preview changing accordingly -
Try changing it to
CATEGORY
also -
Change it back to
LINEAR
, optionally add aPrefix
andFormat
, check the preview and save -
Bind the chart to the map and try zooming on some regions of
Africa
; notice the chart adapting accordingly -
Try zooming around over some other continents and see how the chart changes