Home forums Using CanvasJS Help with Dynamic chart, please !!! Reply To: Help with Dynamic chart, please !!!

#10585

Sanjoy
Moderator

cool1,

Replacing your updateChart with below would render the chart.

var updateChart = function() {
    $.getJSON("selected_product.php", function(result) {
        var data = {
            dataPoints: result
        };
        chart.options.data.push(data);
        chart.render();
    });
};
  • This reply was modified 6 months, 1 week ago by  Sanjoy.