问题
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