Charts and Widgets¶
As
test_user1
create a new map and add thene_50m_admin_0_countries
layerLet’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 chaptersOpen the
Charts and Widget
window and selectTable
Select only the attrbutes
NAME
andISO3
and click onNext
iconProvide 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
iconLet’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 accordinglyOpen the
Advanced Options
, change theType
toLOG
and notice the scale and preview changing accordinglyTry changing it to
CATEGORY
alsoChange it back to
LINEAR
, optionally add aPrefix
andFormat
, check the preview and saveBind the chart to the map and try zooming on some regions of
Africa
; notice the chart adapting accordinglyTry zooming around over some other continents and see how the chart changes