Options
All
  • Public
  • Public/Protected
  • All
Menu

A base class for stacked collections, which are used to create stacked mountain or column chart types. Concrete types are StackedColumnCollection and StackedMountainCollection

Type parameters

Hierarchy

Implements

Index

Constructors

Protected constructor

Properties

Protected accumulatedFinalAnimationValues0

accumulatedFinalAnimationValues0: SCRTDoubleVector

accumulatedValues0

accumulatedValues0: SCRTDoubleVector

the accumulated values which are used to draw each column/band for BaseStackedRenderableSeries

Protected animationFSM

Readonly collectionChanged

Event handler which fires when the collection changes. See ObservableArrayChangedArgs for args

enableDrawingOptimisations

enableDrawingOptimisations: boolean = true

Readonly. When true, resampling modes are enabled for faster drawing performance.

Protected firstAnimationRender

firstAnimationRender: boolean = false

Readonly id

id: string = generateGuid()

A unique Id for the IRenderableSeries

invalidateParentCallback

invalidateParentCallback: () => void

A callback which tells the parent SciChartSurface that it must be redrawn, e.g. when a property changes

Type declaration

    • (): void
    • Returns void

Protected isAccumulatedVectorDirty

isAccumulatedVectorDirty: boolean = true

Readonly isSpline

isSpline: false = false

Returns true if the series uses spline interpolation

Readonly isStacked

isStacked: true = true

Returns true if the series is a stacked series or not

Protected items

items: T[] = []

parentSurface

parentSurface: SciChartSurface

The parent SciChartSurface that this RenderableSeries is attached to

Readonly supportsResampling

supportsResampling: false = false

Returns true if the series supports resampling

Readonly Abstract type

Returns the type of the series. See ESeriesType for a list of values

Protected webAssemblyContext

webAssemblyContext: TSciChart

The SciChart WebAssembly Context containing native methods and access to our WebGL2 WebAssembly Drawing Engine

Accessors

animation

  • Sets a start up animation class, a child class for {@link BaseAnimation}

    Parameters

    Returns void

Protected canDraw

  • get canDraw(): boolean
  • Returns boolean

dataLabelProvider

dataSeries

  • dataSeries property is not supported for BaseStackedCollection

    Returns IDataSeries

  • dataSeries property is not supported for BaseStackedCollection

    Parameters

    Returns void

drawNaNAs

  • drawNaNAs property is not supported for BaseStackedCollection

    Returns ELineDrawMode

  • drawNaNAs property is not supported for BaseStackedCollection

    Parameters

    Returns void

drawingProviders

  • drawingProviders property is not supported for BaseStackedCollection

    Returns ISeriesDrawingProvider[]

  • drawingProviders property is not supported for BaseStackedCollection

    Parameters

    Returns void

effect

  • effect property is not supported for BaseStackedCollection

    Returns ShaderEffect

  • effect property is not supported for BaseStackedCollection

    Parameters

    Returns void

hitTestProvider

  • hitTestProvider property is not supported for BaseStackedCollection

    Returns IHitTestProvider

  • hitTestProvider property is not supported for BaseStackedCollection

    Parameters

    Returns void

hovered

  • A hovered EventHandler. This event fires whenever the Series is hovered or unhovered by a mouse or pointer.

    inheritdoc

    Returns EventHandler<SeriesHoveredArgs>

isDigitalLine

  • get isDigitalLine(): boolean
  • set isDigitalLine(isDigitalLine: boolean): void
  • When true, if this series draws a line, the line will be a digital (step) line

    inheritdoc

    Returns boolean

  • When true, if this series draws a line, the line will be a digital (step) line

    inheritdoc

    Parameters

    • isDigitalLine: boolean

    Returns void

isHovered

  • get isHovered(): boolean
  • set isHovered(isHovered: boolean): void
  • Gets or sets whether the Series is hovered by a mouse or pointer device. Setting programmatically will trigger hovered logic

    inheritdoc

    Returns boolean

  • Gets or sets whether the Series is hovered by a mouse or pointer device. Setting programmatically will trigger hovered logic

    inheritdoc

    Parameters

    • isHovered: boolean

    Returns void

isOneHundredPercent

  • get isOneHundredPercent(): boolean
  • set isOneHundredPercent(value: boolean): void
  • Gets or sets 100% mode. When true, the stacked group becomes a 100% stacked chart

    Returns boolean

  • Gets or sets 100% mode. When true, the stacked group becomes a 100% stacked chart

    Parameters

    • value: boolean

    Returns void

isRunningAnimation

  • get isRunningAnimation(): boolean
  • gets if the animation is currently running

    inheritdoc

    Returns boolean

isSelected

  • get isSelected(): boolean
  • set isSelected(isSelected: boolean): void
  • Gets or sets whether the Series is selected. Setting programmatically will trigger selection logic

    inheritdoc

    Returns boolean

  • Gets or sets whether the Series is selected. Setting programmatically will trigger selection logic

    inheritdoc

    Parameters

    • isSelected: boolean

    Returns void

isVisible

  • get isVisible(): boolean
  • set isVisible(isVisible: boolean): void
  • When true, the series is visible and drawn

    inheritdoc

    Returns boolean

  • When true, the series is visible and drawn

    inheritdoc

    Parameters

    • isVisible: boolean

    Returns void

isVisibleChanged

  • An isVisible changed EventHandler. This event fires whenever the Series isVisible changes.

    inheritdoc

    Returns EventHandler<SeriesVisibleChangedArgs>

opacity

  • get opacity(): number
  • set opacity(value: number): void
  • opacity property is not supported for BaseStackedCollection

    Returns number

  • opacity property is not supported for BaseStackedCollection

    Parameters

    • value: number

    Returns void

paletteProvider

  • paletteProvider property is not supported for BaseStackedCollection

    Returns IPaletteProvider

  • paletteProvider property is not supported for BaseStackedCollection

    Parameters

    Returns void

pointMarker

  • pointMarker property is not supported for BaseStackedCollection

    Returns IPointMarker

  • pointMarker property is not supported for BaseStackedCollection

    Parameters

    Returns void

resamplingMode

  • resamplingMode property is not supported for BaseStackedCollection

    Returns EResamplingMode

  • resamplingMode property is not supported for BaseStackedCollection

    Parameters

    Returns void

resamplingPrecision

  • get resamplingPrecision(): number
  • set resamplingPrecision(value: number): void
  • resamplingPrecision property is not supported for BaseStackedCollection

    Returns number

  • resamplingPrecision property is not supported for BaseStackedCollection

    Parameters

    • value: number

    Returns void

rolloverModifierProps

  • rolloverModifierProps property is not supported for BaseStackedCollection

    Returns RolloverModifierRenderableSeriesProps

  • rolloverModifierProps property is not supported for BaseStackedCollection

    Parameters

    Returns void

rolloverModifierProps1

  • rolloverModifierProps1() is not supported for BaseStackedCollection

    Returns RolloverModifierRenderableSeriesProps

  • rolloverModifierProps1() is not supported for BaseStackedCollection

    Parameters

    Returns void

selected

  • A selected EventHandler. This event fires whenever the Series is selected or deselected.

    inheritdoc

    Returns EventHandler<SeriesSelectedArgs>

stroke

  • get stroke(): string
  • set stroke(value: string): void
  • stroke property is not supported for BaseStackedCollection

    Returns string

  • stroke property is not supported for BaseStackedCollection

    Parameters

    • value: string

    Returns void

strokeThickness

  • get strokeThickness(): number
  • set strokeThickness(value: number): void
  • strokeThickness property is not supported for BaseStackedCollection

    Returns number

  • strokeThickness property is not supported for BaseStackedCollection

    Parameters

    • value: number

    Returns void

xAxis

xAxisId

  • get xAxisId(): string
  • set xAxisId(id: string): void
  • inheritdoc

    Returns string

  • inheritdoc

    Parameters

    • id: string

    Returns void

yAxis

yAxisId

  • get yAxisId(): string
  • set yAxisId(id: string): void
  • inheritdoc

    Returns string

  • inheritdoc

    Parameters

    • id: string

    Returns void

yRangeMode

  • Determines whether the y range for this series should consider only the visible data (the default), or include the drawn points just outside the visible range

    inheritdoc

    Returns EYRangeMode

  • Determines whether the y range for this series should consider only the visible data (the default), or include the drawn points just outside the visible range

    Parameters

    Returns void

Methods

add

  • add(...items: T[]): void
  • Adds items to the array, and raises the collectionChanged event to subscribers

    Parameters

    • Rest ...items: T[]

    Returns void

adjustAutoColor

  • adjustAutoColor(propertyName: string, color: string): string
  • Replace this to do custom adjustments to the auto color for a particular property

    Parameters

    • propertyName: string
    • color: string

    Returns string

Protected afterAnimationComplete

  • afterAnimationComplete(): void
  • Runs after the animation is complete

    Returns void

applyTheme

asArray

  • asArray(): T[]
  • Returns the backing array. Do not modify this collection. Use add or remove instead.

    Returns T[]

Protected beforeAnimationStart

  • beforeAnimationStart(): void
  • Runs before the animation starts

    Returns void

checkIsOutOfDataRange

  • checkIsOutOfDataRange(xValue: number, yValue: number): boolean
  • checkIsOutOfDataRange() is not supported for BaseStackedCollection

    Parameters

    • xValue: number
    • yValue: number

    Returns boolean

clear

  • clear(callDeleteOnChildren?: boolean): void
  • Clears the array. Raises the collectionChanged event to subscribers

    Parameters

    • Default value callDeleteOnChildren: boolean = false

      When true, if the items in the array implement the IDeletable interface, the delete() function will be called. Defaults to false for backward compatibility

    Returns void

contains

  • contains(item: T): boolean
  • Returns true if the array contains an item

    Parameters

    • item: T

    Returns boolean

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

Abstract draw

enqueueAnimation

get

  • get(index: number): T
  • Gets an item at index

    Parameters

    • index: number

    Returns T

getBaseXValues

  • getBaseXValues(): number[]
  • inheritdoc

    Returns number[]

getById

  • getById(id: string): T
  • Gets an item by Id

    Parameters

    • id: string

    Returns T

getCurrentRenderPassData

getDataSeriesName

  • getDataSeriesName(): string

getDataSeriesValuesCount

  • getDataSeriesValuesCount(): number

Protected getFirstSeries

  • getFirstSeries(): T
  • Gets the first series in the collection, else undefined

    Returns T

getIndicesRange

  • inheritdoc

    Parameters

    Returns NumberRange

getNativeXValues

  • getNativeXValues(): SCRTDoubleVector

Protected getParentSurface

getSeriesInfo

getVisibleSeries

  • getVisibleSeries(): T[]
  • Gets visible renderable series array

    Returns T[]

Abstract getXRange

  • Gets the X-Range of the series. Override in derived classes to provide series specific implementations

    Returns NumberRange

getYRange

  • Gets the Y-Range of the series for the current X-Range. Override in derived classes to provide series specific implementations

    Parameters

    Returns NumberRange

hasDataSeries

  • hasDataSeries(): boolean

Abstract hasDataSeriesValues

  • hasDataSeriesValues(): boolean

hasFillPaletteProvider

  • hasFillPaletteProvider(): boolean

hasPointMarkerPaletteProvider

  • hasPointMarkerPaletteProvider(): boolean

hasStrokePaletteProvider

  • hasStrokePaletteProvider(): boolean

insert

  • insert(index: number, item: T): void
  • Inserts items at the specified index. Raises the collectionChanged event to subscribers

    Parameters

    • index: number
    • item: T

    Returns void

Protected invalidateParent

  • invalidateParent(): void

Protected isAllDataSeriesSet

  • isAllDataSeriesSet(): boolean
  • Returns boolean

Protected isEnoughDataToDraw

  • isEnoughDataToDraw(): boolean
  • Returns boolean

notifyPropertyChanged

  • notifyPropertyChanged(propertyName: string): void
  • inheritdoc

    Parameters

    • propertyName: string

    Returns void

onAnimate

  • onAnimate(timeElapsed: number): void
  • Is called for each render

    Parameters

    • timeElapsed: number

    Returns void

onAttach

onDetach

  • onDetach(): void

onDpiChanged

  • Called when the Dpi changes in the browser. This could be due to user zooming the browser, or changing DPI settings in Windows, or moving the browser containing SciChart to another monitor

    Parameters

    Returns void

Optional pushPalettedColors

remove

  • remove(item: T, callDeleteOnChildren?: boolean): void
  • Removes an item by value. Raises the collectionChanged event to subscribers

    Parameters

    • item: T

      The item to remove

    • Default value callDeleteOnChildren: boolean = false

      When true, if the items in the array implement the IDeletable interface, the delete() function will be called. Defaults to false for backward compatibility

    Returns void

removeAt

  • removeAt(index: number, callDeleteOnChildren?: boolean): void
  • Removes an item at the specified index. Raises the collectionChanged event to subscribers

    Parameters

    • index: number

      The item to remove

    • Default value callDeleteOnChildren: boolean = false

      When true, if the items in the array implement the IDeletable interface, the delete() function will be called. Defaults to false for backward compatibility

    Returns void

resolveAutoColors

  • resolveAutoColors(index: number, maxSeries: number, theme: IThemeProvider): void
  • Resolve colors marked AUTO_COLOR using the theme's strokePalette and fillPalette To do custom adjustments to the resolved colors, override the adjustAutoColor method

    Parameters

    Returns void

runAnimation

  • Cancel all previous animations and run the current one

    Parameters

    Returns void

set

  • set(index: number, item: T): void
  • Sets an item at index. Raises the collectionChanged event to subscribers

    Parameters

    • index: number
    • item: T

    Returns void

size

  • size(): number
  • gets the number of elements in the array

    Returns number

toJSON

  • Convert the object to a definition that can be serialized to JSON, or used directly with the builder api

    Parameters

    • Default value excludeData: boolean = false

      if set true, data values will not be included in the json.

    Returns TSeriesDefinition

toPointSeries

Abstract updateAccumulatedVectors

  • updateAccumulatedVectors(): void
  • Updates accumulated vectors which are used to draw BaseStackedRenderableSeries

    Returns void

Protected updateAnimationProperties

  • Internal method that runs on each animation tick

    Parameters

    Returns void

Protected updateHitTestProviders

  • Parameters

    Returns void

Generated using TypeDoc