Getting the Chart Object
The API library is automatically included in your Logi Info v12+ application when you use Chart Canvas Charts; you do not need to take any special steps to include it in your definition. The first thing you need to do is get the chart object, using this function:
Here's an example that assumes you have a Chart Canvas Chart element with the ID "myChartCanvas1":
var myChartObject = rdGetChartCanvasObject('myChartCanvas1');
With the chart object in hand, you can proceed to manipulate the chart data.