data
| data in Chart Script Reference for information about working with chart data. |
Two-dimensional array containing the chart data or a string containing the name of a Data Worksheet data block. The data property is readable and writable.
Examples
Read and write Chart data array
for (var i=1; i<data.length; i++) {
if (Chart1.data[i]['Name'] == 'Web Bridge') {
Chart1.data[i]['Sum(Quantity Purchased)'] = 0;
alert('Note: "Web Bridge" has been discontinued.');
}
}
Bind Chart data source
// Bind a Data Worksheet data block:
Chart1.data="table_name";
// Bind a cube:
Chart1.data="cube::table_name";
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |