Type class
Root element of the chart.
Click here for more info
Sources
Root can be used (imported) via one of the following packages.
// Import Root import * as am5 from "@amcharts/amcharts5"; // Create Root am5.Root.new(root, { // ... config if applicable });
<!-- Load Root --> <script src="index.js"></script> <script> // Create Root am5.Root.new(root, { // ... config if applicable }); </script>
Inheritance
Root does not extend any other symbol.
Root is not extended by any other symbol.
Settings
Root does not have any settings.
Private settings
Root does not have any private settings.
Properties
autoResize # |
Type Default Indicates whether chart should resized automatically when parent container width and/or height changes. If disabled ( |
---|---|
container # |
Type Main content container. |
dateFormatter # |
Type Default Date/time formatter. Click here for more info |
dom # |
Type A reference to original chart container (div element). |
durationFormatter # |
Type Default Duration formatter. Click here for more info |
events # |
Type Default Root's event dispatcher. Click here for more info |
fps # |
Type The maximum FPS that the Root will run at. If Click here for more info |
gridLayout # |
Type Default An instance of grid layout object that can be used to set |
horizontalLayout # |
Type Default An instance of horizontal layout object that can be used to set |
interfaceColors # |
Type Special color set to be used for various controls. Click here for more info |
locale # |
Type Default Locale used by the chart. |
nonce # |
Type Used for dynamically-created CSS and JavaScript with strict source policies. |
numberFormatter # |
Type Default Number formatter. Click here for more info |
tabindex # |
Type Default Global tab index for using for the whole chart Click here for more info |
tapToActivate # |
Type Default Set this to Click here for more info |
tapToActivateTimeout # |
Type Default If Click here for more info |
timezone # |
Type If set, will format date/time in specific time zone. The value should be named time zone, e.g.:
NOTE: Using time zone feature may noticeable affect performance of the chart, especially with large data sets, since every single date will need to be recalculated. Click here for more info |
tooltipContainer # |
Type A |
updateTick # |
Type Returns whether the root is updating or not. Enables or disables the root updating. |
utc # |
Type Default Use UTC when formatting date/time. Click here for more info |
verticalLayout # |
Type Default An instance of vertical layout object that can be used to set |
Methods
dispose() |
Returns Disposes root and all the content in it. |
---|---|
documentPointToRoot( point: ) |
Returns Converts document coordinates to coordinates withing root element. |
eachFrame( f: ( currentTime: ) |
Returns |
focused( target: ) |
Returns Returns |
height() |
Returns Returns height of the target container, in pixels. |
isDisposed() |
Returns Returns |
markDirtyGlobal( container?: ) |
Returns |
moveDOM( id: ) |
Returns |
new( id: ) |
Static Returns |
readerAlert( text: ) |
Returns Triggers screen reader read out a message. Click here for more info |
resize() |
Returns If automatic resizing of char is disabled ( |
rootPointToDocument( point: ) |
Returns Converts root coordinates to document |
setThemes( themes: ) |
Returns Sets themes to be used for the chart. Click here for more info |
width() |
Returns Returns width of the target container, in pixels. |
Events
Add event handlers to Root object using its events.on()
method.
Read about adding event handlers.
#frameended |
Param { timestamp: |
---|---|
#framestarted |
Param { timestamp: |