when I use the setData function and then .draw() the chart clears even if I pass the exact same data as what was originally passed to the plot
ex:
dataChart = $.plot($("#stackchart"), data, options); //this draws the graph fine
oldData = dataChart.getData()
dataChart.setData(oldData);
dataChart.draw(); //after set data, this draw clears the graph
when I use the setData function and then .draw() the chart clears even if I pass the exact same data as what was originally passed to the plot
ex:
dataChart = $.plot($("#stackchart"), data, options); //this draws the graph fine
oldData = dataChart.getData()
dataChart.setData(oldData);
dataChart.draw(); //after set data, this draw clears the graph