Type class
A parser for JSON based chart configs.
Click here for more info
@since 5.3.0
Sources
JSONParser can be used (imported) via one of the following packages.
// Import JSONParser import * as am5plugins_json from "@amcharts/amcharts5/plugins/json"; am5plugins_json.JSONParser.new(root, { // ... config if applicable });
<!-- Load JSONParser --> <script src="plugins/json.js"> <script> // Create JSONParser am5plugins_json.JSONParser.new(root, { // ... config if applicable }); </script>
Inheritance
JSONParser does not extend any other symbol.
JSONParser is not extended by any other symbol.
Settings
JSONParser does not have any settings.
Private settings
JSONParser does not have any private settings.
Properties
JSONParser does not have any properties.
Methods
new( root: ) |
Static Returns Use this method to create an instance of this class. Click here for more info |
---|---|
parse( object: ) |
Returns Parses and creates chart objects from simple objects. |
parseString( string: ) |
Returns Parses and creates chart objects from JSON string. |
Events
JSONParser does not have any events.