Reload chart data via JSON with Highcharts

前端 未结 8 2280
借酒劲吻你
借酒劲吻你 2020-11-28 02:11

I am trying to reload the data for a Highcharts chart via JSON based on a button click elsewhere in the page. Initially I would like to display a default set of data (spendi

8条回答
  •  甜味超标
    2020-11-28 03:04

    If you are using push to push the data to the option.series dynamically .. just use

    options.series = [];  
    

    to clear it.

    options.series = [];
    $("#change").click(function(){
    }
    

提交回复
热议问题