score:1

Accepted answer

All you need to do is to create series with empty data array and use chart.update method to add data. Example:

var chart = Highcharts.chart('container', {
    ...,
    series: [{
        data: []
    }, {
        data: []
    }, {
        data: []
    }]
});

document.getElementById('chartInit').addEventListener('click', function(){
    chart.update({
        series: [{
            data: [4457, 13371, 22286]
        }, {
            data: [2457, 9371, 12286]
        }, {
            data: [1457, 5371, 9286]
        }]
    });
});

Live demo: https://jsfiddle.net/BlackLabel/8pL6hr3w/

API Reference: https://api.highcharts.com/class-reference/Highcharts.Chart#update


Related Query

More Query from same tag