setJSONFile() Method
Description
Sets chart JSON configuration file path.
If any operation such as settings applying is being processed it will be aborted. You can replace current configuration by the newest using this method. See Set Configuration as XML/JSON File article for more information about configurations files and Replacing Chart Configuration on the Fly article for more information about changing chart configuration on demand.
Parameters
- path:String
Path to the JSON configuration file
- [optional] rebuildObjectModel:Boolean
Sets whether the component should rebuild the object model after JSON configuration applying.
Returns
Boolean.
Note: Whether the return value is true the command was processed successfully, the command failed to be processed due to component busy state otherwise.
Samples
Online HTML/JavaScript Sample
Online HTML/JavaScript Sample