v7.3.0
SupportExamplesFree Trial

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.

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • axisTicksCount : Number[][10,5,4,2,1]

    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
  • isDelayable : Booleantrue
    READONLY
    static
    ADVANCED
    Delayable
    Identifies an object as an instance of Delayable class, or subclass thereof.
  • isEvents : Booleantrue
    READONLY
    static
    ADVANCED
    Events
    Identifies an object as an instance of Events class, or subclass thereof.
  • isSVGChartProvider : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of SVGChartProvider class, or subclass thereof.
  • properties : Object
    internal
    static
    Base

    A class property getter for the default values of internal properties for this class.

  • emptyArray : Array
    internal
    READONLY
    Base

    An empty array that can be used as a default value.

  • emptyObject : Object
    internal
    READONLY
    Base

    An empty object that can be used as a default value.

  • axisTicksCount : Number[][10,5,4,2,1]

    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.

  • isSVGChartProvider : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of SVGChartProvider class, or subclass thereof.
  • Identifies an object as an instance of TimelineChartProviderBase class, or subclass thereof.
  • config : Object
    READONLY
    ADVANCED
    Base

    Returns a copy of the full configuration which was used to configure this object.

  • isConstructing : Boolean
    READONLY
    ADVANCED
    Base

    This property is set to true before the constructor returns.

  • isDestroying : Boolean
    READONLY
    ADVANCED
    Base

    This property is set to true on entry to the destroy method. It remains on the objects after returning from destroy(). If isDestroyed is true, this property will also be true, 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
  • onClassMixedIn( )
    internal
    static
    Base

    This optional class method is called when a class is mixed in using the mixin() method.

  • initClass( )
    static
    ADVANCED
    Base

    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

  • doDestroy( )
    internal
    Events

    Auto detaches listeners registered from start, if set as detachable

  • once( )
    private
    Events

    Internal function used to run a callback function after an event is triggered

  • Removes all listeners registered to this object by the application.

Events

Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

Event handlers

Event handlers are callbacks called as a result of certain actions in this class

Source path

Gantt/util/chart/SVGChartProvider.js

Contents