Welcome to your customizable Highcharts map! This guide will walk you through the basics of personalizing your map, including adding new countries and changing colors.
To add new countries to your map data:
jsonDataMap
Array: This array contains the data for countries you want to display on the map.jsonDataMap
array with the country's details. Use the ISO alpha-3 code for the country. Example:Ensure the Rank
, Code
, Country
, and Total
fields are filled out accordingly.
Colors are based on the value
field associated with each country. Customize these through the colorAxis
configuration:
minColor
and maxColor
properties under colorAxis
to define the start and end colors of your gradient. Example:colorAxis: {
minColor: '#010a4f',
maxColor: '#ff5c79'
}
nullColor
property within the series
object to set a default color for countries not included in your list. series: [{
nullColor: '#cccccc',
}]
Change font color of the range bar. Example:
labels: {
style: {
color: '#FF0000'
}
}
Tooltips show detailed information when hovering over countries. They are enabled by default and pull data from the jsonDataMap
array.
You can style and change text of your Tooltip directly in Webflow!
This guide provides the foundation for customizing your Highcharts map. Happy mapping!