Switching between data sets in Highcharts/Highmaps

ぃ、小莉子 提交于 2019-12-22 16:02:10

问题


I'm trying to create a chloropleth map of the number of hogs in the U.S. by county.

I have six different data sets (1987, 1992, 1997, 2002, 2007, 2012) representing the USDA agriculture census that is taken every five years.

As of now, each data set lives within its own Highmaps index file. The 2012 index file is here: http://www.graysonmendenhall.com/pigs/index_2012.html

I want to implement a slider that will allow a user to switch between data sets to see the changes in the data on the map.

I'm pretty new at using Highmaps, Javascript, and XML/CSV/JSON, btw.

But given my limited knowledge, I'm thinking that I need to create XML/CSV/JSON files for each year's data set, then create a call to get those data sets within the index file, then create some kind of Javascript event linked to the slider so that it switches what data is displaying.

Am I on the right track here? Any and all help would be greatly appreciated

来源:https://stackoverflow.com/questions/24150399/switching-between-data-sets-in-highcharts-highmaps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!