How to customize a map?
-
Hi,
I would like to know how to customize a map. For instance the JavaScript field for USA is this one:
var %CHART% = AmCharts.makeChart(“%CHART%”, {
“type”: “map”,
“theme”: “none”,
“pathToImages”: “https://www.amcharts.com/lib/3/images/”,“dataProvider”: {
“map”: “usaLow”,
“getAreasFromMap”: true
},
“areasSettings”: {
“autoZoom”: true,
“selectedColor”: “#CC0000”
},
“smallMap”: {}
});How could I do to make Texas in red and the number of inhabitants or California in black? I did try to copy and past a JavaScript I found on the AmCharts website (https://www.amcharts.com/demos/us-heat-map/) which look like that but it does not work.
AmCharts.makeChart(“chartdiv”, {
type: “map”,
“theme”: “none”,
pathToImages: “https://www.amcharts.com/lib/3/images/”,colorSteps: 10,
dataProvider: {
map: “usaLow”,
areas: [{
id: “US-AL”,
value: 4447100
}, {
id: “US-AK”,
value: 626932
……..Thanks !
https://www.ads-software.com/plugins/amcharts-charts-and-maps/
- The topic ‘How to customize a map?’ is closed to new replies.