Line chart data types

Data, event, callback, and runtime types used by LineChart.

Import
import type { TimeSeriesData, MultiSeriesData } from "@sixtyfold/line";

Use the public entry point shown above.

BandBorderStyle

Stroke pattern for range/band borders

Import @sixtyfold/linetype

type BandBorderStyle = "solid" | "dashed" | "dotted"

BarBorderStyle

Stroke pattern for bar/column borders

Import @sixtyfold/linetype

type BarBorderStyle = "solid" | "dashed" | "dotted"

KeyboardAnnouncementMessages

Localizable announcements emitted after keyboard chart actions.

Import @sixtyfold/lineinterface

interface KeyboardAnnouncementMessages
MemberDefinitionDescription
panLeft?string | undefinedPan left text.
panRight?string | undefinedPan right text.
reset?string | undefinedReset text.
selectionCancelled?string | undefinedSelection cancelled text.
viewport?string | undefinedOptional viewport context appended after a successful pan, zoom, or reset. The placeholders {startPercent}, {endPercent}, and {spanPercent} are replaced with positions relative to the complete data range. Set an empty string to announce only the action message.
zoomIn?string | undefinedZoom in text.
zoomOut?string | undefinedZoom out text.

LegendAlign

Legend alignment in available legend area

Import @sixtyfold/linetype

type LegendAlign = "left" | "center" | "right" | "middle"

LegendLayout

Legend item flow

Import @sixtyfold/linetype

type LegendLayout = "row" | "column"

LegendPosition

Legend placement around chart area

Import @sixtyfold/linetype

type LegendPosition = "left" | "top" | "right" | "bottom"

LegendSwatchShape

Legend swatch shape

Import @sixtyfold/linetype

type LegendSwatchShape = MarkerShape | "line"

LineChartStats

Renderer and level-of-detail telemetry for the active line dataset and frame.

Import @sixtyfold/lineinterface

interface LineChartStats
MemberDefinitionDescription
bucketSizenumberBucket size in CSS pixels.
bufferUsagenumberBuffer usage value.
dataVersionnumberMonotonic generation assigned when the current dataset was installed.
firstRenderTimestringFirst render time text.
fpsnumberFps value.
frameTimestringFrame time text.
lodBuiltnumberLOD built value.
lodLevelnumberLOD level value.
lodReadybooleanWhether to enable LOD ready.
lodTotalnumberLOD total value.
presentationColumnsnumberPresentation columns value.
presentationDensitynumberPresentation density value.
presentationGridDeltanumberPresentation grid delta value.
presentationGridPolicy"pyramid" | "gesture-stable"Active column-grid policy, or pyramid when presentation is inactive.
presentationLargestBucketnumberPresentation largest bucket value.
presentationMode"pyramid" | "columns"Active presentation path. Additive diagnostic; bucketSize keeps its storage meaning.
presentationQuantizationStepnumberPresentation quantization step value.
presentationQueryVisitsnumberPresentation query visits value.
presentationRebaseRationumberRatio used for presentation rebase; consult the accepted range in the parent configuration.
presentationVerticesnumberPresentation vertices value.
renderedPointsnumberRendered points value.
renderMode"worker" | "main"Selects the render mode.
revealProgressnumberCurrent initial-data reveal progress, from 0 to 1.
ringBufferbooleanWhether to enable ring buffer.
totalPointsnumberCount reported for total points in the current line chart stats snapshot.
totalReceivednumberCount reported for total received in the current line chart stats snapshot.
visiblePointsnumberVisible points value.

LineSeriesType

Line-series drawing style. "band" is an alias for "range"; "points" is an alias for "scatter"; "column" is an alias for "bar"; "stackedArea" is an alias for "stacked-area".

Import @sixtyfold/linetype

type LineSeriesType = "line" | "range" | "band" | "scatter" | "points" | "bar" | "column" | "stacked-area" | "stackedArea" | "step" | "step-before" | "step-after" | "step-mid"

MarkerShape

Marker shape for hover point indicators

Import @sixtyfold/linetype

type MarkerShape = "circle" | "square" | "diamond" | "triangle" | "cross" | "x"

OverlayErrorCallback

Called when an overlay update has one or more resolution or delivery failures.

Import @sixtyfold/linetype

type OverlayErrorCallback = (error: ChartOverlayError) => void

RendererErrorCallback

Called once when the chart renderer fails and is about to be torn down.

Import @sixtyfold/linetype

type RendererErrorCallback = (error: ChartRendererError) => void

RendererFailurePhase

Stage at which a chart renderer stopped working.

Import @sixtyfold/linetype

type RendererFailurePhase = "initialization" | "runtime"

SeriesVisibilityChangeEvent

Complete visibility state and provenance for a line-series visibility change.

Import @sixtyfold/lineinterface

interface SeriesVisibilityChangeEvent
MemberDefinitionDescription
changedIndexnumber | nullChanged index value.
source"legend" | "init" | "api"Selects the source value used to calculate or render series visibility change event.
visibilityboolean[]Complete visibility snapshot indexed in the same order as the chart's configured series.
visibleboolean | nullWhether to render the series visibility change event.

StackBorderStyle

Stroke pattern for stacked-area borders

Import @sixtyfold/linetype

type StackBorderStyle = "solid" | "dashed" | "dotted"

StackCurveStyle

Boundary shape for stacked-area fills and borders

Import @sixtyfold/linetype

type StackCurveStyle = "linear" | "step" | "step-before" | "step-after" | "step-mid"