How do I use Data Loader with a map?
-
I’m trying to use the data loader plugin with a map.
I’ve looked at this page: https://www.amcharts.com/tutorials/using-data-loader-plugin/
But I can’t figure out where the code has to go for a map.I added the url to ‘Ressources’:
https://www.amcharts.com/lib/3/plugins/dataloader/dataloader.min.js
Then I added the following code to ‘JavaScript’:
var %CHART% = AmCharts.makeChart("%CHART%", { "type": "map", "theme": "light", "pathToImages": "https://www.amcharts.com/lib/3/images/", "dataLoader": { "url": "https://www.lingbot.me/wp-content/uploads/2015/07/tal-map.csv" "format": "csv", "delimiter": ",", // column separator "useColumnNames": true, // use first row for column names "skip": 1 // skip header row }, "areasSettings": { "autoZoom": true, "selectedColor": "#CC0000" }, "smallMap": {} });
But that doesn’t work. Should I put dataLoader somewhere else?
https://www.ads-software.com/plugins/amcharts-charts-and-maps/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How do I use Data Loader with a map?’ is closed to new replies.