Options
All
  • Public
  • Public/Protected
  • All
Menu
summary

A StackedMountainCollection allows grouping multiple StackedMountainRenderableSeries to create a JavaScript Stacked Mountain chart, or 100% Stacked Mountain chart

description

Multiple StackedMountainRenderableSeries are required to create a stacked mountain chart type in SciChart. These are grouped with a StackedMountainCollection, which implements IRenderableSeries and may be added directly to a SciChartSurface.renderableSeries collection.

Code sample below:

const stackedMountain0 = new StackedMountainRenderableSeries(wasmContext);
// .. configure mountain 1, including set dataSeries
const stackedMountain1 = new StackedMountainRenderableSeries(wasmContext);
// .. configure mountain 2, including set dataSeries
const stackedMountain2 = new StackedMountainRenderableSeries(wasmContext);
// .. configure mountain 3, including set dataSeries
const stackedMountainCollection = new StackedMountainCollection(wasmContext);
stackedMountainCollection.add(stackedMountain0, stackedMountain1, stackedMountain2);

sciChartSurface.renderableSeries.add(stackedMountainCollection);
remarks

This type implements IRenderableSeries but it is not a renderable series, instead it wraps multiple StackedMountainRenderableSeries to create a stacked mountain chart

Hierarchy

Implements

Index

Constructors

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

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 type

type: StackedMountainCollection = ESeriesType.StackedMountainCollection

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

dataLabelProvider

dataSeries

drawNaNAs

drawingProviders

effect

  • effect property is not supported for BaseStackedCollection

    Returns ShaderEffect

  • effect property is not supported for BaseStackedCollection

    Parameters

    Returns void

hitTestProvider

hovered

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

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

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

pointMarker

resamplingMode

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

rolloverModifierProps1

selected

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

adjustAutoColor

  • adjustAutoColor(propertyName: string, color: string): string

Protected afterAnimationComplete

  • afterAnimationComplete(): 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

checkIsOutOfDataRange

  • checkIsOutOfDataRange(xValue: number, yValue: number): 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

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

draw

enqueueAnimation

get

getBaseXValues

  • getBaseXValues(): number[]

getById

getCurrentRenderPassData

getDataSeriesName

  • getDataSeriesName(): string

getDataSeriesValuesCount

  • getDataSeriesValuesCount(): number

Protected getFirstSeries

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

    Returns T

getIndicesRange

getNativeXValues

  • getNativeXValues(): SCRTDoubleVector

Protected getParentSurface

getSeriesInfo

getVisibleSeries

  • getVisibleSeries(): T[]

getXRange

getYRange

hasDataSeries

  • hasDataSeries(): boolean

hasDataSeriesValues

  • hasDataSeriesValues(): boolean

hasFillPaletteProvider

  • hasFillPaletteProvider(): boolean

hasPointMarkerPaletteProvider

  • hasPointMarkerPaletteProvider(): boolean

hasStrokePaletteProvider

  • hasStrokePaletteProvider(): boolean

insert

Protected invalidateParent

  • invalidateParent(): void

Protected isAllDataSeriesSet

  • isAllDataSeriesSet(): boolean

Protected isEnoughDataToDraw

  • isEnoughDataToDraw(): boolean

notifyPropertyChanged

  • notifyPropertyChanged(propertyName: string): void

onAnimate

  • onAnimate(timeElapsed: number): void

onAttach

onDetach

  • onDetach(): void

onDpiChanged

Optional pushPalettedColors

remove

  • Removes an item by value. Raises the collectionChanged event to subscribers

    Parameters

    • item: StackedMountainRenderableSeries

      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

runAnimation

set

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

updateAccumulatedVectors

  • updateAccumulatedVectors(): void

Protected updateAnimationProperties

Protected updateHitTestProviders

Generated using TypeDoc