Creates a new chart and connects it to the div or canvas HTML element specified by its ID or DOM object. The new chart is empty by default, but can be set to an initial state in the second optional parameter.
Property for read-only access to chart parameter object.
Property for read-only access to data metainfo object.
Promise representing the initialization will resolve when initialization is finished. Any API call will potentially cause an error before this promise is resolved.
Property for read-only access to style object.
Returns controls for the ongoing animation, if any.
Returns the chart preset collection.
Initiates the animation to the new chart state passed as the first argument. If there is a currently running animation, all subsequent calls will schedule the corresponding animation after the end of the previous one.
The new chart state can be a full state specifier object with data, config and style, or a single chart config object. It accepts also a chart snapshot acquired from a previous state using the store() method.
The optional second parameter specifies the animation options. This second option can be a scalar value, setting the overall animation duration. Passing explicit null as second parameter will result in no animation.
The animation will be initiated in the next cycle of the JS event loop. The method returns a promise, which will resolve when the animation is finished.
Enable/disable additional features.
Returns a reference to the actual chart state for further reuse. This reference includes the chart config, style parameters and the data filter but does not include the actual data and the animation options.
Returns the version number of the library.
Generated using TypeDoc
Class representing a single chart in Vizzu.