zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
204 lines (203 loc) • 6.8 kB
TypeScript
/// <reference types="web" />
import { View } from '../../chart/view.js';
import { ShapeOptions } from '../../types/options.js';
import { Shape } from './index.js';
/**
* Area 面积图
*/
export default class Area extends Shape<Area> {
type: "area";
constructor(ctrl: View, opt?: ShapeOptions);
map(name: string): this;
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;
};
spanGaps: boolean;
paths: import("uplot").Series.PathBuilder;
width: number;
stroke: string;
fill?: import("uplot").Series.Fill;
auto?: boolean;
values?: import("uplot").Series.Values;
scale?: string;
map?: string;
name?: string;
connectNulls?: boolean;
show?: boolean;
class?: string;
sorted?: import("uplot").Series.Sorted;
gaps?: import("uplot").Series.GapsRefiner;
pxAlign?: number | boolean;
label: string;
value?: import("uplot").Series.Value;
facets?: import("uplot").Series.Facet[];
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;
};
spanGaps: boolean;
stroke: string;
fill: (self: import("uplot"), seriesIdx: number) => CanvasGradient;
width: number;
paths: import("uplot").Series.PathBuilder;
auto?: boolean;
values?: import("uplot").Series.Values;
scale?: string;
map?: string;
name?: string;
connectNulls?: boolean;
show?: boolean;
class?: string;
sorted?: import("uplot").Series.Sorted;
gaps?: import("uplot").Series.GapsRefiner;
pxAlign?: number | boolean;
label: string;
value?: import("uplot").Series.Value;
facets?: import("uplot").Series.Facet[];
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;
};
spanGaps: boolean;
paths: import("uplot").Series.PathBuilder;
fill: string;
width: number;
auto?: boolean;
stroke: import("uplot").Series.Stroke;
values?: import("uplot").Series.Values;
scale?: string;
map?: string;
name?: string;
connectNulls?: boolean;
show?: boolean;
class?: string;
sorted?: import("uplot").Series.Sorted;
gaps?: import("uplot").Series.GapsRefiner;
pxAlign?: number | boolean;
label: string;
value?: import("uplot").Series.Value;
facets?: import("uplot").Series.Facet[];
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;
};
spanGaps: boolean;
stroke: string;
paths: import("uplot").Series.Points.PathBuilder;
width: number;
fill?: import("uplot").Series.Fill;
auto?: boolean;
values?: import("uplot").Series.Values;
scale?: string;
map?: string;
name?: string;
connectNulls?: boolean;
show?: boolean;
class?: string;
sorted?: import("uplot").Series.Sorted;
gaps?: import("uplot").Series.GapsRefiner;
pxAlign?: number | boolean;
label: string;
value?: import("uplot").Series.Value;
facets?: import("uplot").Series.Facet[];
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;
};
spanGaps: boolean;
paths: import("uplot").Series.PathBuilder;
width: number;
fill?: import("uplot").Series.Fill;
auto?: boolean;
stroke: import("uplot").Series.Stroke;
values?: import("uplot").Series.Values;
scale?: string;
map?: string;
name?: string;
connectNulls?: boolean;
show?: boolean;
class?: string;
sorted?: import("uplot").Series.Sorted;
gaps?: import("uplot").Series.GapsRefiner;
pxAlign?: number | boolean;
label: string;
value?: import("uplot").Series.Value;
facets?: import("uplot").Series.Facet[];
fillTo?: import("uplot").Series.FillTo;
dash?: number[];
cap?: CanvasLineCap;
idxs?: import("uplot").Series.MinMaxIdxs;
min?: number;
max?: number;
})[];
}