Type class
A class used to create an HTML wrapper for the SVG contents.
Sources
SVGContainer can be used (imported) via one of the following packages.
/** * -------------------------------------------------------- * Import from: "core.ts" * Use like: am4core.SVGContainer * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4/core";
/** * -------------------------------------------------------- * Include via: <script src="core.js"></script> * Access items like: am4.SVGContainer * -------------------------------------------------------- */
Inheritance
SVGContainer does not extend any other symbol.
SVGContainer is not extended by any other symbol.
Properties
SVGContainer # |
Type A |
---|---|
autoResize # |
Type Default If this component is in a separate HTML container, |
container # |
Type A |
cssScale # |
Type Default |
height # |
Type Height of HTML element. |
hideOverflow # |
Type Indicates if chart container should have its style set to Normally, we don't want that, so that certain elements, such as tooltips, would be able to go outside chart area. There is one issue though. Some browsers ignore SVG masks and would display scrollbars if chart elements, that go outside chart area extend outside window. This is especially true for This is why we set this setting to Other charts use default of |
htmlElement # |
Type A parent HTML container that SVG wrapper element is placed in. |
modal # |
Type Returns a (elements top parent)Accessing modal does not make it appear. To make a modal appear, use
|
popups # |
Type A list of popups for this chart. |
readerAlertElement # |
Type A @sunce 4.9.2 |
width # |
Type Width of HTML element. |
Methods
closeAllPopups() |
Returns Closes all currently open popup windows |
---|---|
closeModal() |
Returns Hides modal window if there is one currently open. |
constructor( htmlElement: ) |
Returns Constructor
|
dispose() |
Returns Removes this container from SVG container list in system, which effectively disables size change monitoring for it. |
initSensor() |
Returns (Re)Initializes a resize sensor. |
isDisposed() |
Returns Returns if this object has been already been disposed. |
openModal( text: ) |
Returns Opens a modal window with specific content ( The
|
openPopup( text: ) |
Returns Creates, opens, and returns a new |
readerAlert( text: ) |
Returns Triggers screen reader read out a message. @since 4.9.2 |
Events
SVGContainer does not have any events.
Adapters
SVGContainer does not have any adapters.