The following topics provide information needed to work with the API:
- Getting the Chart Object
- Updating Chart Data
- Appending Chart Data
- Setting JSON Chart Data
- Using a Timer
- Using "Pushed" Data
- Events: beforeCreateChart and afterCreateChart
About the API
Scripts including the API functions can be executed by user interface actions, by using a timer, or by "listening" for data broadcast from an outside source. These are all discussed in the topics mentioned above.
Showing Initial Data
To show some initial data in a chart that will be updated automatically, use a datalayer under the chart or series as you normally would. This datalayer will run and provide data for the chart when the page is first loaded, or when its refreshed, but will not interfere with data delivered using this API.
Logi Info licenses the underlying code for Chart Canvas Charts from a 3rd-party. However, we only license the part of their code library that we need, not the entire library, and our license does not include the right to allow developers to independently access the library. Developers who access the library directly in their Logi Info applications using the Logi API do so at their own risk, as we cannot guarantee that the library and/or our implementation of it will not change in future Logi Info releases.