Hi there
I am trying to load data from JSON files once the user selects an item from the dropdown selector.
I have struggled to copy any examples from the forums or the demos to fit my needs. I have searched many topics but I am struggling with the AJAX code snippets and making it work exactly for my needs. I also did not have any luck looking at a few highstocks demos.
(full disclosure: I am not a developer, and I have spent weeks learning highcharts and some basic JS which I just about get by on, so please be easy on me!)
I have a working map here with the data already in the data variable as usual:
https://jsfiddle.net/sfour/vhcbrmny/3/
Please note I have uploaded the JSON files to my server (visible in the commented code. They share the same format as the data in the data variable).
The expected result:
I would like the chart data to update with the data from the selected JSON file once the selector is clicked.
I just cannot figure out how to load the JSON into a variable.
Any assistance is greatly appreciated.
Please note I have uploaded 2 JSON files for this example but the finished product may have 20+ files.
I am also open to any other suggestions if you feel it could be done a better way whilst maintaining performance.
Thank you