Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implemented by

Index

Properties

Readonly annotations

summary

Gets the collection of IAnnotation - annotations, markers or shapes drawn over the top of a SciChartSurface

description

A SciChartSurface can have zero to many Annotations.

The Annotations are drawn using our WebGL / WebAssembly rendering engine, but some use SVG for maximum configurability. See derived types of IAnnotation such as BoxAnnotation, LineAnnotation etc...

Use this collection to add and remove Annotations to the chart.

background

background: string

Gets the SciChartSurface Background as an HTML color code

Readonly chartModifierGroups

chartModifierGroups: string[]

Gets Chart Modifier Groups, is used for sharing events between chart modifiers

Readonly chartModifiers

An ObservableArray of IChartModifierBase derived types. Chart Modifiers provide behavior such as zooming, panning, tooltips, legends and more in SciChart's High Performance Realtime JavaScript Charts. You can use our built in modifiers (see derived types of ChartModifierBase, or create your own for custom interaction behavior.

Readonly clipRect

clipRect: Rect

domBackgroundSvgContainer

domBackgroundSvgContainer: SVGSVGElement

The {@link SVGSVGElement} placed on the background and could be used instead of domSvgContainer

Readonly domCanvas2D

domCanvas2D: HTMLCanvasElement

The {@link HTMLCanvasElement} which is the HTML5 canvas which SciChart draws overlays (cursors, tooltips) to

domCanvasWebGL

domCanvasWebGL: HTMLCanvasElement

The {@link HTMLCanvasElement} which is the WebGL canvas that SciChart draws to

Readonly domChartRoot

domChartRoot: HTMLDivElement

The {@link HTMLDivElement} which is the dom chart root

Readonly domDivContainer

domDivContainer: HTMLDivElement

The inner {@link HTMLDivElement} div element

Readonly domSeriesBackground

domSeriesBackground: HTMLDivElement

The inner {@link HTMLDivElement} div element placed on the background

domSvgAdornerLayer

domSvgAdornerLayer: SVGSVGElement

The {@link SVGSVGElement} which is the SVG adorner layer canvas, is used for annotation adorners

domSvgContainer

domSvgContainer: SVGSVGElement

The {@link SVGSVGElement} which is the SVG canvas which SciChart adds elements (tooltips, annotations) to

Readonly id

id: string

Gets the ISciChartSurfaceBase Id

Readonly isDeleted

isDeleted: boolean

Used internally - gets isDeleted flag

Readonly isSuspended

isSuspended: boolean

Gets a value indicating whether updates for the target are currently suspended

isWebGLContextActive

isWebGLContextActive: boolean

Used internally to prevent redraw attamps if the webGL context ahs been lost

mouseManager

mouseManager: MouseManager

The MouseManager subscribes to mouse events on the domChartRoot and routes them to components within SciChart

Readonly otherSurfaces

otherSurfaces: ISciChartSurfaceBase[]

Used internally - gets other SciChartSurfaces

preRender

preRender: EventHandler<any>

An event handler which notifies its subscribers when a render operation starts. Use this to update elements of the chart for the current render. Any updates made here will not trigger a subsequent render.

renderError

renderError: EventHandler<any>

An event handler which notifies its subscribers when an error occurs during chart rendering. A listener receives the error object via params.

rendered

rendered: EventHandler<boolean>

An event handler which notifies its subscribers when a render operation has finished. Use this to time render performance, or to update elements of the chart or your UI on redraw.

resized

resized: EventHandler<Size>

An event handler which notifies its subscribers when a chart root element was resized.

Readonly seriesViewRect

seriesViewRect: Rect

Gets the Series View Rect, a rectangle relative to the entire size of the SciChartSurfaceBase

surfaceType

surfaceType: ESurfaceType

Gets the Surface Type. See ESurfaceType for list of values

Readonly themeProvider

themeProvider: IThemeProvider

Used internally - gets the previous IThemeProvider

Readonly viewRect

viewRect: Rect

Methods

addDeletable

  • Add an IDeleteable object to the surface which will have its delete method called when the surface is deleted

    Parameters

    Returns void

applyTheme

changeViewportSize

  • changeViewportSize(width: number, height: number): void

delete

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

    Parameters

    • Optional clearHtml: boolean

    Returns void

getMainCanvas

  • getMainCanvas(): HTMLCanvasElement
  • Gets the main WebGL or 2D canvas

    Returns HTMLCanvasElement

invalidateElement

  • invalidateElement(options?: { force?: boolean }): void
  • Call invalidateElement() to trigger a redraw of the SciChartSurfaceBase. SciChart's WebGL WebAssembly rendering engine will schedule a redraw a the next time the renderer is free.

    Parameters

    • Optional options: { force?: boolean }
      • Optional force?: boolean

    Returns void

Protected 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

onResize

  • onResize(width: number, height: number): void

resumeUpdates

  • resumeUpdates(): void
  • Resumes updates on the target

    Returns void

setIsInitialized

  • setIsInitialized(): void
  • Used internally, the flag is set after SciChartSurfaceBase is initialized

    Returns void

suspendUpdates

  • suspendUpdates(): void
  • Suspends updates on the target

    Returns void

Generated using TypeDoc