Class Chart<TItemType, XDimensionType, YDimensionType>

Type Parameters

  • TItemType = any

  • XDimensionType extends number | string | Date = number | string | Date

  • YDimensionType extends number | string | Date | undefined = undefined

Hierarchy

  • Chart

Implements

Constructors

  • Creates new instance of chart.

    Type Parameters

    • TItemType = any

    • XDimensionType extends string | number | Date = string | number | Date

    • YDimensionType extends undefined | string | number | Date = undefined

    Parameters

    • elementSelector: string

      element selector.

    • dataSet: DataSet<TItemType, XDimensionType, YDimensionType>

      DataSet with data for this chart.

    • options: ChartOptions

      Chart options.

    • visibleRect: undefined | DataRect<XDimensionType, YDimensionType extends undefined ? number : Exclude<YDimensionType, undefined>> = undefined

      Currently visible rectangle on chart.

    • plotFactory: PlotFactory = PlotFactory.Instance

      injected factory to create plots based on options.

    • keyboardNavigationsFactory: KeyboardNavigationsFactory = KeyboardNavigationsFactory.Instance

      injected factory to create keyboard navigation.

    Returns Chart<TItemType, XDimensionType, YDimensionType>

Properties

_id: number
_location: NumericPoint
_renderer: Renderer
_screenRect: undefined | NumericDataRect
_size: Size
_visibleRect: undefined | DataRect<XDimensionType, YDimensionType extends undefined ? number : Exclude<YDimensionType, undefined>>
_visibleRectAsNumeric: NumericDataRect
chartGrid: Grid
contentItems: ChartRenderableItem<Group | Shape<ShapeConfig>>[]
dataSet: DataSet<TItemType, XDimensionType, YDimensionType>
dataTransformation: DataTransformation
element: undefined | HTMLElement
elementSelector: string
headerLabel: undefined | Label
horizontalAxis?: AxisBase<any, any>
isAsyncFitToViewRequired: boolean = false
isDisposed: boolean = false
isFitToViewModeEnabled: boolean
jqueryElt: JQuery<HTMLElement>
keyboardNavigation: undefined | KeyboardNavigation
keyboardNavigationsFactory: KeyboardNavigationsFactory = KeyboardNavigationsFactory.Instance

injected factory to create keyboard navigation.

layersConfigs: LayerConfig[]
legend: undefined | Legend
mouseNavigation: undefined | MouseNavigation
options: ChartOptions
plotFactory: PlotFactory = PlotFactory.Instance

injected factory to create plots based on options.

plots: Plot<PlotOptions, PlotOptionsClass, TItemType, XDimensionType, YDimensionType>[]
resizeSensor: undefined | ResizeSensor
resizeSensorCallback: (() => void)

Type declaration

    • (): void
    • Returns void

verticalAxis?: AxisBase<any, any>
MinZoomLevel: number = 1e-8
currentChartId: number = 1

Accessors

  • get visibleRect(): undefined | DataRect<XDimensionType, YDimensionType extends undefined ? number : Exclude<YDimensionType, undefined>>
  • Returns undefined | DataRect<XDimensionType, YDimensionType extends undefined ? number : Exclude<YDimensionType, undefined>>

Methods

  • Updates chart's visible rectangle, using dimension values.

    Parameters

    • visibleRect: DataRect<XDimensionType, YDimensionType extends undefined ? number : Exclude<YDimensionType, undefined>>

      new visible rectangle for chart

    • isTriggeredByInputDevice: boolean = false

      whether this update is triggered by user input device (Mouse, Keyboard, etc) or not.

    Returns void

  • Updates chart's visible rectangle, using numeric values.

    Parameters

    • visibleRectAsNumeric: NumericDataRect

      new visible rectangle for chart in numeric units

    • isTriggeredByInputDevice: boolean = false

      whether this update is triggered by user input device (Mouse, Keyboard, etc) or not.

    Returns void

Generated using TypeDoc