SVGChartProvider
Implementation of the chart provider using SVG elements.
It will draw SVG path with optional dots for each dataset and axis lines. Axis lines could be drawn across entire chart area or only on the left side. Distance between axis lines is calculated based on the chart height.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Defines zoom levels for chart axis lines. By default, axis is split into 10 sections. When lines are closer than minAxisTickDistance next zoom level will be used. Default values are [10, 5, 4, 2, 1] which mean "draw line every 10% of the axis, if too close, then every 20%, 25%, 50% and 100% of the axis".
Has a corresponding runtime axisTicksCount property.
-
Defines vertical margins for the chart, set to 0 to fill entire view.
-
Defines minimum distance in pixels between two axis lines. Based on this value chart will calculate how many lines to draw. See corresponding config axisTicksCount.
Has a corresponding runtime minAxisTickDistance property.
-
When
true, axis lines will be drawn across entire chart area.Has a corresponding runtime showAxisLines property.
-
When
true, points on the chart path will be shown separately.Has a corresponding runtime showLineDetails property.
-
Internal listeners, that cannot be removed by the user.
-
Property allowing to customize the tooltip appearance.
Has a corresponding runtime tooltip property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of Delayable class, or subclass thereof.
-
Identifies an object as an instance of Events class, or subclass thereof.
-
Identifies an object as an instance of SVGChartProvider class, or subclass thereof.
-
A class property getter for the default values of internal properties for this class.
-
An empty array that can be used as a default value.
-
An empty object that can be used as a default value.
-
Defines zoom levels for chart axis lines. By default, axis is split into 10 sections. When lines are closer than minAxisTickDistance next zoom level will be used. Default values are [10, 5, 4, 2, 1] which mean "draw line every 10% of the axis, if too close, then every 20%, 25%, 50% and 100% of the axis".
Has a corresponding axisTicksCount config.
-
Defines minimum distance in pixels between two axis lines. Based on this value chart will calculate how many lines to draw. See corresponding config axisTicksCount.
Has a corresponding minAxisTickDistance config.
-
When
true, axis lines will be drawn across entire chart area.Has a corresponding showAxisLines config.
-
When
true, points on the chart path will be shown separately.Has a corresponding showLineDetails config.
-
Identifies an object as an instance of SVGChartProvider class, or subclass thereof.
-
Identifies an object as an instance of TimelineChartProviderBase class, or subclass thereof.
-
Returns a copy of the full configuration which was used to configure this object.
-
This property is set to
truebefore theconstructorreturns. -
This property is set to
trueon entry to the destroy method. It remains on the objects after returning fromdestroy(). If isDestroyed istrue, this property will also betrue, so there is no need to test for both (for example,comp.isDestroying || comp.isDestroyed). -
Property allowing to customize the tooltip appearance.
Has a corresponding tooltip config.
Functions
Functions are methods available for calling on the class-
This optional class method is called when a class is mixed in using the mixin() method.
-
Registers this class type with its Factory
-
Internal function used to hook destroy() calls when using thisObj
-
Internal function used restore hooked destroy() calls when using thisObj
-
Auto detaches listeners registered from start, if set as detachable
-
Internal function used to run a callback function after an event is triggered
-
Removes all listeners registered to this object by the application.