Skip to content

IParseSettings

Type interface

Sources

IParseSettings is an interface: it describes a shape of data and is not imported on its own.

Properties

parent

Type Container

Container to add the parsed chart to, usually root.container. The config must then build a Sprite.

resources

Type undefined | objectSince 5.21.4

Objects 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 } });
trusted

Type undefined | false | trueDefault falseSince 5.22.0

Parses the config as code you wrote yourself. Its refs and properties can then reach any object, and its root section can set anything on the Root, sanitizeHTML included.

By default a config is data, so one from users or other sites cannot run script: refs and properties go only through chart objects and plain data, and the root section sets only what ChartSerializer writes.

Anything left out is named in a console warning.

updateTargets

Type "strict" | "soft"Default "strict"Since 5.20.3

What a config block with a type does 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 no type.