UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

823 lines (822 loc) 28.1 kB
/// <reference types="web" /> import { View } from '../../chart/view.js'; import { ShapeOptions } from '../../types/options.js'; import { Shape } from './index.js'; export declare type StepType = 'start' | 'end'; /** * Line 折线图 */ export default class Line extends Shape<Line> { type: "line"; private stepType; map(name: string): this; step(type: 'start' | 'end'): void; constructor(ctrl: View, opt?: ShapeOptions); getSeries(): ({ points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; step?: "start" | "end"; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; adjust?: import("./bar.js").AdjustOption; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; pointSize?: number; sizeField?: string; sizeCallback?: import("./point.js").SizeCallback; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; step?: "start" | "end"; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; adjust?: import("./bar.js").AdjustOption; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; pointSize?: number; sizeField?: string; sizeCallback?: import("./point.js").SizeCallback; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; step?: "start" | "end"; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; adjust?: import("./bar.js").AdjustOption; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; pointSize?: number; sizeField?: string; sizeCallback?: import("./point.js").SizeCallback; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; step?: "start" | "end"; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.Points.PathBuilder | import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.Points.PathBuilder | import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; adjust?: import("./bar.js").AdjustOption; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.Points.PathBuilder | import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; pointSize?: number; sizeField?: string; sizeCallback?: import("./point.js").SizeCallback; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.Points.PathBuilder | import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; step?: "start" | "end"; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; adjust?: import("./bar.js").AdjustOption; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; } | { points: { fill: string; space: number; show: import("uplot").Series.Points.Show; paths?: import("uplot").Series.Points.PathBuilder; filter?: import("uplot").Series.Points.Filter; size?: number; width?: number; stroke?: import("uplot").Series.Stroke; dash?: number[]; cap?: CanvasLineCap; }; pointSize?: number; sizeField?: string; sizeCallback?: import("./point.js").SizeCallback; name?: string; connectNulls?: boolean; width: number; alpha?: number; map?: string; show?: boolean; class?: string; scale?: string; auto?: boolean; sorted?: import("uplot").Series.Sorted; spanGaps: boolean; gaps?: import("uplot").Series.GapsRefiner; pxAlign?: number | boolean; label: string; value?: import("uplot").Series.Value; values?: import("uplot").Series.Values; paths: import("uplot").Series.PathBuilder; facets?: import("uplot").Series.Facet[]; stroke: import("uplot").Series.Stroke; fill?: import("uplot").Series.Fill; fillTo?: import("uplot").Series.FillTo; dash?: number[]; cap?: CanvasLineCap; idxs?: import("uplot").Series.MinMaxIdxs; min?: number; max?: number; })[]; destroy(): void; }