JSONParser
Type classSince 5.3.0
Builds charts from JSON configs.
More info: Serializing / JSON config
Sources
JSONParser can be used (imported) via one of the following packages.
// Import JSONParserimport * as am5plugins_json from "@amcharts/amcharts5/plugins/json";
// Create JSONParseram5plugins_json.JSONParser.new(root, { // ... config if applicable});<!-- Load JSONParser --><script src="plugins/json.js"></script>
<script>// Create JSONParseram5plugins_json.JSONParser.new(root, { // ... config if applicable});</script>Inheritance
JSONParser does not extend any other symbol.
JSONParser is not extended by any other symbol.
Properties
JSONParser does not have any properties.
Methods
new(root:Root)StaticReturns
TUse this method to create an instance of this class.
More info: Getting started: new element syntax
parse(object:unknown,
settings:IParseSettings)Returns
PromiseBuilds the chart objects a config describes, loading the classes it needs first.
parseString(string:string,
settings:IParseSettings)Returns
PromiseBuilds the chart objects a config describes, from a JSON string.
Events
JSONParser does not have any events.