var data1 = [
{"name": "ABC", "value": [100, 200, 300, 120, 320]}
];
var data2 = [
{"name": "ABC", "value": [100, 200, 300, 120, 320]},
{"name": "DEF", "value": [150, 210, 269, -696, 969]},
];
var options = {
id: "chart",
data: {
plain: data1,
},
};
var lineChart = new C9.LineChart(options);
lineChart.draw();
setTimeout(function() {
lineChart.updateData(data2);
setTimeout(function() {
lineChart.updateData(data1);
setTimeout(function() {
lineChart.updateData(data2);
}, 2000);
}, 2000);
}, 2000);