Description

Used to get chart object for various JavaScript operations that you want to perform, for example adding or removing a series or nodes in charts.

Returns

JavaScript object

Function syntax

ColdFusion.Chart.getChartHandle()

History

ColdFusion 10: Added this function

Example

The following example shows how to add a new value to the first series of a chart with chart ID interactivebar:

ColdFusion.Chart.getChartHandle().exec('interactivebar', 'appendseriesvalues', '{"plotindex": 0, "values" : [40]}' );

Example

The following example shows how to add a new value to the register a click event on a chart:

ColdFusion.Chart.getChartHandle().click = function(dataObj){
alert("Chart Clicked - ID: " + data["id"]);
}

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy