Open Highcharts in modal window

后端 未结 3 640
清酒与你
清酒与你 2021-01-03 07:30

I\'m working on a site where I use Highcharts quite heavily for presenting data in charts. I want to user to be able to \"zoom\" each chart into a modal window for better re

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-03 07:45

    Further to Santhosh's answer, I added this at the end of popupGraph function to get data loaded up:

         $.each(existingChart.series, function (prop, val) {
                popupChart.series[prop].setData(val.options.data);
                popupChart.series[prop].update(val.options);
            });
    

提交回复
热议问题