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.