Method Definition: update (Object config, Boolean discardOldConfig)
Parent: Chart
Description: update() function used to update more than one chart-properties at one short
chart.update() is used to update many parameters/properties/setting of Chart.
Also note that chart.render() must be called to initiate the internal drawing of the Chart. render() function must be called after updating any parameter of Chart or any chart-element using setProperty() or update() function.
var chart = new Cosfire.Chart("chart-container", {....});
// Set Data nothing but setting one or more DataSeries having DataPoints in each DataSeries
chart.setDate([...]);
chart.render(function onRenderCompleted() {
// Once the chart rendered you can update the chart farther
// Update many properties at one short
chart.update({...}, false);
// Now call render again to redraw the chart
chart.render();
}));