16 Oct 20172 minutes to read
Animates the series and/or indicators in Chart. When parameter is not passed to this method, then all the series and indicators present in Chart are animated.
Following are the parameters that you can pass to this method.
|options||object||If an array collection is passed as parameter, series and indicator objects passed in array collection are animated.
If a series or indicator object is passed to this method, then the specific series or indicator is animated.
Prints the rendered chart.
// Print Chart var chartObj = $("#container").data("ejChart"); chartObj.print();
If you wish to print multiple charts on a same page, then you need to pass the ID of those elements as arguments to the print method.
export(type, URL, exportMultipleChart)
Exports chart as an image or to an excel file. Chart can be exported as an image only when exportCanvasRendering option is set to true.
Following are the parameters that you can pass to this method,
|type||string||Type of the export operation to be performed. Following are the two export types that are supported now,
1. 'image' 2. 'excel'
URL of the service, where the chart will be exported to excel.
When this parameter is true, all the chart objects initialized to the same document are exported to a single excel file. This is an optional parameter. By default, it is false.
Redraws the entire chart. You can call this method whenever you update, add or remove points from the data source or whenever you want to refresh the UI.
// Redraw Chart var chartObj = $("#container").data("ejChart"); chartObj.redraw();