2

I used the example given in this post ( Displaying Points And Drilldown Data in Highmaps ) it works fine if you have a drilldown series with a single point but if you have more then one

 tempSeries = chart.addSeries({
                            id: 'points',
                            type: 'mappoint',
                            name: 'Store Data',
                            color: Highcharts.getOptions().colors[8],
                            data: [{
                                name: 'Point 1',
                                lat: 40.0633,
                                lon: -88.2498
                            },{
                                name: 'New York',
                                lat: 40.730610,
                                lon: -73.935242 
                            }

                            ]
                        });

see my updated JSFiddle when you click on Illinois you will get New York point with it.

is it possible to display only the points in the same state (when you click on Illinois you get only Illinois points)?

Community
  • 1
  • 1
Monther
  • 91
  • 1
  • 1
  • 7
  • Why you want to add all of the points on your drilldown? Couldn't you just add points that are in state (for example add an arrays of points for specific states and load them on your drilldown)? I don't think there is a simple solution for your issue. You can ask for it on Highcharts uservoice: https://highcharts.uservoice.com/forums/55896-highcharts-javascript-api – Grzegorz Blachliński Aug 30 '16 at 13:40
  • yes that will be an easy thing to do but actually my scope is 5 states all of them have at least one location :) – Monther Aug 30 '16 at 14:15

0 Answers0