IParseSettings
Type interface
Sources
IParseSettings is an interface: it describes a shape of data and is not imported on its own.
Properties
parentType
ContainerContainer to add the parsed chart to, usually
root.container. The config must then build aSprite.resourcesType
undefined|objectSince 5.21.4Objects a config names instead of carrying them, by that name: geodata packs (
"geoJSON": "am5geodata_worldLow") and locales ("locale": "am5locales_de_DE"). They are looked up here first, and then as globals, which only the script version defines, so with npm imports pass them here:import am5geodata_worldLow from "@amcharts/amcharts5-geodata/worldLow"; parser.parse(config, { parent: root.container, resources: { am5geodata_worldLow } });trustedType
undefined|false|trueDefaultfalseSince 5.22.0Parses the config as code you wrote yourself. Its refs and
propertiescan then reach any object, and itsrootsection can set anything on theRoot,sanitizeHTMLincluded.By default a config is data, so one from users or other sites cannot run script: refs and
propertiesgo only through chart objects and plain data, and therootsection sets only whatChartSerializerwrites.Anything left out is named in a console warning.
updateTargetsType
"strict"|"soft"Default"strict"Since 5.20.3What a config block with a
typedoes to an object that is already there:"strict"replaces it with a new object of that type;"soft"replaces it only if its type differs, and otherwise applies the block to it, as if the block had notype.