@visactor/vseed 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +2 -15248
- package/dist/esm/builder/builder/builder.js.map +1 -1
- package/dist/esm/builder/register/all.js +4 -1
- package/dist/esm/builder/register/all.js.map +1 -1
- package/dist/esm/builder/register/chartType/index.d.ts +3 -0
- package/dist/esm/builder/register/chartType/index.js +4 -1
- package/dist/esm/builder/register/chartType/raceDonut.d.ts +5 -0
- package/dist/esm/builder/register/chartType/raceDonut.js +9 -0
- package/dist/esm/builder/register/chartType/raceDonut.js.map +1 -0
- package/dist/esm/builder/register/chartType/raceLine.d.ts +5 -0
- package/dist/esm/builder/register/chartType/raceLine.js +9 -0
- package/dist/esm/builder/register/chartType/raceLine.js.map +1 -0
- package/dist/esm/builder/register/chartType/racePie.d.ts +5 -0
- package/dist/esm/builder/register/chartType/racePie.js +9 -0
- package/dist/esm/builder/register/chartType/racePie.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/index.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/index.js +4 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.js +33 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/raceDonut.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.js +36 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/raceLine.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/racePie.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/racePie.js +33 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/racePie.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +4 -1
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceBar.js +0 -3
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceBar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceColumn.js +0 -3
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceColumn.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.js +74 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceDonut.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.js +89 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/raceLine.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.d.ts +3 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.js +74 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/racePie.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/index.d.ts +3 -0
- package/dist/esm/pipeline/spec/chart/pipeline/index.js +4 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js +21 -0
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js +25 -0
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js +21 -0
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipeline/raceScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/boxLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointState.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/markStyle/pointStyle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/index.d.ts +5 -3
- package/dist/esm/pipeline/spec/chart/pipes/player/index.js +5 -3
- package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.d.ts +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.js +8 -7
- package/dist/esm/pipeline/spec/chart/pipes/player/isPlayer.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/{playerXY.d.ts → playerBar.d.ts} +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/{playerYX.js → playerBar.js} +6 -7
- package/dist/esm/pipeline/spec/chart/pipes/player/playerBar.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/{playerXY.js → playerColumn.js} +6 -7
- package/dist/esm/pipeline/spec/chart/pipes/player/playerColumn.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/{playerYX.d.ts → playerLine.d.ts} +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerLine.js +144 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/playerLine.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/{playerYY.d.ts → playerPie.d.ts} +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js +174 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/playerPie.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.d.ts +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/player/{playerYY.js → playerScatter.js} +7 -7
- package/dist/esm/pipeline/spec/chart/pipes/player/playerScatter.js.map +1 -0
- package/dist/esm/pipeline/spec/table/pipes/corner/titleOnDimension.js.map +1 -1
- package/dist/esm/theme/dark/dark.js +10 -5
- package/dist/esm/theme/dark/dark.js.map +1 -1
- package/dist/esm/theme/dark/raceLine.d.ts +182 -0
- package/dist/esm/theme/dark/raceLine.js +39 -0
- package/dist/esm/theme/dark/raceLine.js.map +1 -0
- package/dist/esm/theme/dark/racePie.d.ts +157 -0
- package/dist/esm/theme/dark/racePie.js +18 -0
- package/dist/esm/theme/dark/racePie.js.map +1 -0
- package/dist/esm/theme/light/light.js +6 -1
- package/dist/esm/theme/light/light.js.map +1 -1
- package/dist/esm/theme/light/raceLine.d.ts +182 -0
- package/dist/esm/theme/light/raceLine.js +39 -0
- package/dist/esm/theme/light/raceLine.js.map +1 -0
- package/dist/esm/theme/light/racePie.d.ts +157 -0
- package/dist/esm/theme/light/racePie.js +18 -0
- package/dist/esm/theme/light/racePie.js.map +1 -0
- package/dist/esm/types/builder/builder.d.ts +1 -1
- package/dist/esm/types/builder/builder.js.map +1 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +1 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +1 -0
- package/dist/esm/types/chartType/index.d.ts +7 -0
- package/dist/esm/types/chartType/index.js +3 -0
- package/dist/esm/types/chartType/raceBar/raceBar.d.ts +2 -2
- package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +1 -0
- package/dist/esm/types/chartType/raceColumn/raceColumn.d.ts +106 -3
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +1 -0
- package/dist/esm/types/chartType/raceDonut/index.d.ts +2 -0
- package/dist/esm/types/chartType/raceDonut/index.js +1 -0
- package/dist/esm/types/chartType/raceDonut/raceDonut.d.ts +75 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +387 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.js +23 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.js.map +1 -0
- package/dist/esm/types/chartType/raceLine/index.d.ts +2 -0
- package/dist/esm/types/chartType/raceLine/index.js +1 -0
- package/dist/esm/types/chartType/raceLine/raceLine.d.ts +122 -0
- package/dist/esm/types/chartType/raceLine/raceLine.js +0 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +1904 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.js +35 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.js.map +1 -0
- package/dist/esm/types/chartType/racePie/index.d.ts +2 -0
- package/dist/esm/types/chartType/racePie/index.js +1 -0
- package/dist/esm/types/chartType/racePie/racePie.d.ts +75 -0
- package/dist/esm/types/chartType/racePie/racePie.js +0 -0
- package/dist/esm/types/chartType/racePie/zRacePie.d.ts +387 -0
- package/dist/esm/types/chartType/racePie/zRacePie.js +23 -0
- package/dist/esm/types/chartType/racePie/zRacePie.js.map +1 -0
- package/dist/esm/types/chartType/raceScatter/raceScatter.d.ts +84 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +1 -0
- package/dist/esm/types/chartType/sunburst/sunburst.d.ts +1 -1
- package/dist/esm/types/properties/chartType/chartType.d.ts +4 -1
- package/dist/esm/types/properties/chartType/chartType.js +3 -0
- package/dist/esm/types/properties/chartType/chartType.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +2276 -44
- package/dist/esm/types/properties/config/config.js +4 -1
- package/dist/esm/types/properties/config/config.js.map +1 -1
- package/dist/esm/types/properties/config/player/player.d.ts +2 -2
- package/dist/esm/types/properties/config/player/zPlayer.d.ts +1 -0
- package/dist/esm/types/properties/config/player/zPlayer.js +1 -0
- package/dist/esm/types/properties/config/player/zPlayer.js.map +1 -1
- package/dist/esm/types/properties/config/race.d.ts +2279 -44
- package/dist/esm/types/properties/config/race.js +10 -3
- package/dist/esm/types/properties/config/race.js.map +1 -1
- package/dist/esm/types/properties/dimensions/index.d.ts +3 -0
- package/dist/esm/types/properties/dimensions/raceDonutDimension.d.ts +14 -0
- package/dist/esm/types/properties/dimensions/raceDonutDimension.js +0 -0
- package/dist/esm/types/properties/dimensions/raceLineDimension.d.ts +15 -0
- package/dist/esm/types/properties/dimensions/raceLineDimension.js +0 -0
- package/dist/esm/types/properties/dimensions/racePieDimension.d.ts +14 -0
- package/dist/esm/types/properties/dimensions/racePieDimension.js +0 -0
- package/dist/esm/types/properties/measures/hierarchyMeasure.d.ts +10 -0
- package/dist/esm/types/properties/measures/hierarchyMeasure.js +0 -0
- package/dist/esm/types/properties/measures/index.d.ts +4 -1
- package/dist/esm/types/properties/measures/raceDonutMeasure.d.ts +2 -0
- package/dist/esm/types/properties/measures/raceDonutMeasure.js +0 -0
- package/dist/esm/types/properties/measures/raceLineMeasure.d.ts +2 -0
- package/dist/esm/types/properties/measures/raceLineMeasure.js +0 -0
- package/dist/esm/types/properties/measures/racePieMeasure.d.ts +2 -0
- package/dist/esm/types/properties/measures/racePieMeasure.js +0 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +7159 -2695
- package/dist/esm/types/vseed.d.ts +2 -2
- package/dist/esm/types/zVseed.d.ts +2 -5
- package/dist/esm/types/zVseed.js +7 -4
- package/dist/esm/types/zVseed.js.map +1 -1
- package/dist/umd/index.js +1029 -154
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerXY.js.map +0 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerYX.js.map +0 -1
- package/dist/esm/pipeline/spec/chart/pipes/player/playerYY.js.map +0 -1
- package/dist/esm/types/properties/measures/hierarchyMeasures.d.ts +0 -4
- /package/dist/esm/types/{properties/measures/hierarchyMeasures.js → chartType/raceDonut/raceDonut.js} +0 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import type { Player } from '../../types';
|
|
2
|
+
export declare const getRaceLineTheme: () => {
|
|
3
|
+
legend: {
|
|
4
|
+
enable: boolean;
|
|
5
|
+
border?: boolean;
|
|
6
|
+
labelColor?: string;
|
|
7
|
+
pagerIconColor?: string;
|
|
8
|
+
pagerIconDisableColor?: string;
|
|
9
|
+
labelFontSize?: number;
|
|
10
|
+
labelFontColor?: string;
|
|
11
|
+
labelFontWeight?: number | string;
|
|
12
|
+
shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine";
|
|
13
|
+
position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br";
|
|
14
|
+
maxSize?: number;
|
|
15
|
+
};
|
|
16
|
+
xAxis: {
|
|
17
|
+
animation: {
|
|
18
|
+
duration: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
inverse?: boolean;
|
|
22
|
+
zero?: boolean;
|
|
23
|
+
labelAutoHide?: boolean;
|
|
24
|
+
labelAutoHideGap?: number;
|
|
25
|
+
labelAutoRotate?: boolean;
|
|
26
|
+
labelAutoRotateAngleRange?: number[];
|
|
27
|
+
labelAutoLimit?: boolean;
|
|
28
|
+
labelAutoLimitLength?: number;
|
|
29
|
+
label?: {
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
labelColor?: string;
|
|
32
|
+
labelFontSize?: number;
|
|
33
|
+
labelFontWeight?: number;
|
|
34
|
+
labelAngle?: number;
|
|
35
|
+
};
|
|
36
|
+
line?: {
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
lineColor?: string;
|
|
39
|
+
lineWidth?: number;
|
|
40
|
+
};
|
|
41
|
+
tick?: {
|
|
42
|
+
visible?: boolean;
|
|
43
|
+
tickInside?: boolean;
|
|
44
|
+
tickColor?: string;
|
|
45
|
+
tickSize?: number;
|
|
46
|
+
};
|
|
47
|
+
title?: {
|
|
48
|
+
visible?: boolean;
|
|
49
|
+
titleText?: string;
|
|
50
|
+
titleColor?: string;
|
|
51
|
+
titleFontSize?: number;
|
|
52
|
+
titleFontWeight?: number;
|
|
53
|
+
};
|
|
54
|
+
grid?: {
|
|
55
|
+
visible?: boolean;
|
|
56
|
+
gridColor?: string;
|
|
57
|
+
gridWidth?: number;
|
|
58
|
+
gridLineDash?: number[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
label: {
|
|
62
|
+
enable: boolean;
|
|
63
|
+
labelStroke: string;
|
|
64
|
+
wrap: boolean;
|
|
65
|
+
showValue: boolean;
|
|
66
|
+
showValuePercent: boolean;
|
|
67
|
+
labelColorSmartInvert: boolean;
|
|
68
|
+
labelOverlap: boolean;
|
|
69
|
+
};
|
|
70
|
+
yAxis: {
|
|
71
|
+
max: boolean;
|
|
72
|
+
animation: {
|
|
73
|
+
duration: number | undefined;
|
|
74
|
+
easing: string;
|
|
75
|
+
};
|
|
76
|
+
nice: boolean;
|
|
77
|
+
visible?: boolean;
|
|
78
|
+
min?: number;
|
|
79
|
+
log?: boolean;
|
|
80
|
+
logBase?: number;
|
|
81
|
+
inverse?: boolean;
|
|
82
|
+
zero?: boolean;
|
|
83
|
+
autoFormat?: boolean;
|
|
84
|
+
numFormat?: import("../../types").NumFormat;
|
|
85
|
+
label?: {
|
|
86
|
+
visible?: boolean;
|
|
87
|
+
labelColor?: string;
|
|
88
|
+
labelFontSize?: number;
|
|
89
|
+
labelFontWeight?: number;
|
|
90
|
+
labelAngle?: number;
|
|
91
|
+
};
|
|
92
|
+
line?: {
|
|
93
|
+
visible?: boolean;
|
|
94
|
+
lineColor?: string;
|
|
95
|
+
lineWidth?: number;
|
|
96
|
+
};
|
|
97
|
+
tick?: {
|
|
98
|
+
visible?: boolean;
|
|
99
|
+
tickInside?: boolean;
|
|
100
|
+
tickColor?: string;
|
|
101
|
+
tickSize?: number;
|
|
102
|
+
};
|
|
103
|
+
title?: {
|
|
104
|
+
visible?: boolean;
|
|
105
|
+
titleText?: string;
|
|
106
|
+
titleColor?: string;
|
|
107
|
+
titleFontSize?: number;
|
|
108
|
+
titleFontWeight?: number;
|
|
109
|
+
};
|
|
110
|
+
grid?: {
|
|
111
|
+
visible?: boolean;
|
|
112
|
+
gridColor?: string;
|
|
113
|
+
gridWidth?: number;
|
|
114
|
+
gridLineDash?: number[];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
player: Player;
|
|
118
|
+
crosshairLine: {
|
|
119
|
+
visible: boolean;
|
|
120
|
+
labelVisible: boolean;
|
|
121
|
+
labelColor: string;
|
|
122
|
+
labelBackgroundColor: string;
|
|
123
|
+
lineColor: string;
|
|
124
|
+
};
|
|
125
|
+
pivotGrid: {
|
|
126
|
+
borderColor?: string | null | undefined;
|
|
127
|
+
bodyFontColor?: string | null | undefined;
|
|
128
|
+
headerFontColor?: string | null | undefined;
|
|
129
|
+
headerBackgroundColor?: string | null | undefined;
|
|
130
|
+
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
131
|
+
hoverHeaderInlineBackgroundColor?: string | null | undefined;
|
|
132
|
+
outlineBorderLineWidth?: number | null | undefined;
|
|
133
|
+
frameCornerRadius?: number | null | undefined;
|
|
134
|
+
minChartWidth?: number | null | undefined;
|
|
135
|
+
minChartHeight?: number | null | undefined;
|
|
136
|
+
titleFontColor?: string | null | undefined;
|
|
137
|
+
titleFontSize?: number | null | undefined;
|
|
138
|
+
titleFontWeight?: string | null | undefined;
|
|
139
|
+
chartGridColor?: string | null | undefined;
|
|
140
|
+
axisLabelColor?: string | null | undefined;
|
|
141
|
+
};
|
|
142
|
+
annotation: {
|
|
143
|
+
annotationPoint: import("../../types").AnnotationPointConfig;
|
|
144
|
+
annotationHorizontalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
145
|
+
annotationVerticalLine: import("../../types").AnnotationHorizontalLineConfig;
|
|
146
|
+
annotationArea: import("../../types").AnnotationAreaConfig;
|
|
147
|
+
};
|
|
148
|
+
backgroundColor: string;
|
|
149
|
+
color: {
|
|
150
|
+
linearColorScheme: string[];
|
|
151
|
+
colorScheme: string[];
|
|
152
|
+
positiveColor: string;
|
|
153
|
+
negativeColor: string;
|
|
154
|
+
};
|
|
155
|
+
tooltip: {
|
|
156
|
+
enable?: boolean | null | undefined;
|
|
157
|
+
borderColor?: string | null | undefined;
|
|
158
|
+
borderWidth?: number | null | undefined;
|
|
159
|
+
borderRadius?: number | null | undefined;
|
|
160
|
+
padding?: number | number[] | null | undefined;
|
|
161
|
+
backgroundColor?: string | null | undefined;
|
|
162
|
+
lineHeight?: number | null | undefined;
|
|
163
|
+
fontSize?: number | null | undefined;
|
|
164
|
+
lineSpace?: number | null | undefined;
|
|
165
|
+
keyColor?: string | null | undefined;
|
|
166
|
+
valueColor?: string | null | undefined;
|
|
167
|
+
titleColor?: string | null | undefined;
|
|
168
|
+
};
|
|
169
|
+
brush: {
|
|
170
|
+
enable: boolean;
|
|
171
|
+
inBrushStyle?: {
|
|
172
|
+
opacity?: number | undefined;
|
|
173
|
+
stroke?: string | undefined;
|
|
174
|
+
lineWidth?: number | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
outOfBrushStyle?: {
|
|
177
|
+
opacity?: number | undefined;
|
|
178
|
+
stroke?: string | undefined;
|
|
179
|
+
lineWidth?: number | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { getLineTheme } from "./line.js";
|
|
2
|
+
import { getLightPlayer } from "../common/index.js";
|
|
3
|
+
const getRaceLineTheme = ()=>{
|
|
4
|
+
const lineTheme = getLineTheme();
|
|
5
|
+
const player = getLightPlayer();
|
|
6
|
+
return {
|
|
7
|
+
...lineTheme,
|
|
8
|
+
legend: {
|
|
9
|
+
...lineTheme.legend,
|
|
10
|
+
enable: false
|
|
11
|
+
},
|
|
12
|
+
xAxis: {
|
|
13
|
+
...lineTheme.xAxis,
|
|
14
|
+
animation: {
|
|
15
|
+
duration: player.interval
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
...lineTheme.label,
|
|
20
|
+
enable: false
|
|
21
|
+
},
|
|
22
|
+
yAxis: {
|
|
23
|
+
...lineTheme.yAxis,
|
|
24
|
+
max: true,
|
|
25
|
+
animation: {
|
|
26
|
+
duration: player.interval,
|
|
27
|
+
easing: 'linear'
|
|
28
|
+
},
|
|
29
|
+
nice: true
|
|
30
|
+
},
|
|
31
|
+
player: {
|
|
32
|
+
...player,
|
|
33
|
+
maxCount: false
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export { getRaceLineTheme };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=raceLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme/light/raceLine.js","sources":["webpack://@visactor/vseed/./src/theme/light/raceLine.ts"],"sourcesContent":["import type { Player } from 'src/types'\nimport { getLineTheme } from './line'\nimport { getLightPlayer } from '../common'\n\nexport const getRaceLineTheme = () => {\n const lineTheme = getLineTheme()\n const player = getLightPlayer() as Player\n\n return {\n ...lineTheme,\n legend: {\n ...lineTheme.legend,\n enable: false,\n },\n xAxis: {\n ...lineTheme.xAxis,\n animation: {\n duration: player.interval,\n },\n },\n label: {\n ...lineTheme.label,\n enable: false,\n },\n yAxis: {\n ...lineTheme.yAxis,\n max: true,\n animation: {\n duration: player.interval,\n easing: 'linear',\n },\n nice: true,\n },\n player: {\n ...player,\n maxCount: false as const,\n } as Player,\n }\n}\n"],"names":["getRaceLineTheme","lineTheme","getLineTheme","player","getLightPlayer"],"mappings":";;AAIO,MAAMA,mBAAmB;IAC9B,MAAMC,YAAYC;IAClB,MAAMC,SAASC;IAEf,OAAO;QACL,GAAGH,SAAS;QACZ,QAAQ;YACN,GAAGA,UAAU,MAAM;YACnB,QAAQ;QACV;QACA,OAAO;YACL,GAAGA,UAAU,KAAK;YAClB,WAAW;gBACT,UAAUE,OAAO,QAAQ;YAC3B;QACF;QACA,OAAO;YACL,GAAGF,UAAU,KAAK;YAClB,QAAQ;QACV;QACA,OAAO;YACL,GAAGA,UAAU,KAAK;YAClB,KAAK;YACL,WAAW;gBACT,UAAUE,OAAO,QAAQ;gBACzB,QAAQ;YACV;YACA,MAAM;QACR;QACA,QAAQ;YACN,GAAGA,MAAM;YACT,UAAU;QACZ;IACF;AACF"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { Player } from '../../types';
|
|
2
|
+
export declare const getRacePieTheme: () => {
|
|
3
|
+
legend: {
|
|
4
|
+
enable: boolean;
|
|
5
|
+
border?: boolean;
|
|
6
|
+
labelColor?: string;
|
|
7
|
+
pagerIconColor?: string;
|
|
8
|
+
pagerIconDisableColor?: string;
|
|
9
|
+
labelFontSize?: number;
|
|
10
|
+
labelFontColor?: string;
|
|
11
|
+
labelFontWeight?: number | string;
|
|
12
|
+
shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine";
|
|
13
|
+
position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br";
|
|
14
|
+
maxSize?: number;
|
|
15
|
+
};
|
|
16
|
+
player: Player;
|
|
17
|
+
label: {
|
|
18
|
+
showValuePercent: boolean;
|
|
19
|
+
labelLayout: "arc";
|
|
20
|
+
showDimension: boolean;
|
|
21
|
+
labelStroke: string;
|
|
22
|
+
enable: boolean;
|
|
23
|
+
wrap: boolean;
|
|
24
|
+
showValue: boolean;
|
|
25
|
+
labelColorSmartInvert: boolean;
|
|
26
|
+
labelOverlap: boolean;
|
|
27
|
+
};
|
|
28
|
+
pivotGrid: {
|
|
29
|
+
borderColor?: string | null | undefined;
|
|
30
|
+
bodyFontColor?: string | null | undefined;
|
|
31
|
+
headerFontColor?: string | null | undefined;
|
|
32
|
+
headerBackgroundColor?: string | null | undefined;
|
|
33
|
+
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
34
|
+
hoverHeaderInlineBackgroundColor?: string | null | undefined;
|
|
35
|
+
outlineBorderLineWidth?: number | null | undefined;
|
|
36
|
+
frameCornerRadius?: number | null | undefined;
|
|
37
|
+
minChartWidth?: number | null | undefined;
|
|
38
|
+
minChartHeight?: number | null | undefined;
|
|
39
|
+
titleFontColor?: string | null | undefined;
|
|
40
|
+
titleFontSize?: number | null | undefined;
|
|
41
|
+
titleFontWeight?: string | null | undefined;
|
|
42
|
+
chartGridColor?: string | null | undefined;
|
|
43
|
+
axisLabelColor?: string | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
backgroundColor: string;
|
|
46
|
+
color: {
|
|
47
|
+
linearColorScheme: string[];
|
|
48
|
+
colorScheme: string[];
|
|
49
|
+
positiveColor: string;
|
|
50
|
+
negativeColor: string;
|
|
51
|
+
};
|
|
52
|
+
tooltip: {
|
|
53
|
+
enable?: boolean | null | undefined;
|
|
54
|
+
borderColor?: string | null | undefined;
|
|
55
|
+
borderWidth?: number | null | undefined;
|
|
56
|
+
borderRadius?: number | null | undefined;
|
|
57
|
+
padding?: number | number[] | null | undefined;
|
|
58
|
+
backgroundColor?: string | null | undefined;
|
|
59
|
+
lineHeight?: number | null | undefined;
|
|
60
|
+
fontSize?: number | null | undefined;
|
|
61
|
+
lineSpace?: number | null | undefined;
|
|
62
|
+
keyColor?: string | null | undefined;
|
|
63
|
+
valueColor?: string | null | undefined;
|
|
64
|
+
titleColor?: string | null | undefined;
|
|
65
|
+
};
|
|
66
|
+
brush: {
|
|
67
|
+
enable: boolean;
|
|
68
|
+
inBrushStyle?: {
|
|
69
|
+
opacity?: number | undefined;
|
|
70
|
+
stroke?: string | undefined;
|
|
71
|
+
lineWidth?: number | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
outOfBrushStyle?: {
|
|
74
|
+
opacity?: number | undefined;
|
|
75
|
+
stroke?: string | undefined;
|
|
76
|
+
lineWidth?: number | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const getRaceDonutTheme: () => {
|
|
81
|
+
legend: {
|
|
82
|
+
enable: boolean;
|
|
83
|
+
border?: boolean;
|
|
84
|
+
labelColor?: string;
|
|
85
|
+
pagerIconColor?: string;
|
|
86
|
+
pagerIconDisableColor?: string;
|
|
87
|
+
labelFontSize?: number;
|
|
88
|
+
labelFontColor?: string;
|
|
89
|
+
labelFontWeight?: number | string;
|
|
90
|
+
shapeType?: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine";
|
|
91
|
+
position?: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br";
|
|
92
|
+
maxSize?: number;
|
|
93
|
+
};
|
|
94
|
+
player: Player;
|
|
95
|
+
label: {
|
|
96
|
+
showValuePercent: boolean;
|
|
97
|
+
labelLayout: "arc";
|
|
98
|
+
showDimension: boolean;
|
|
99
|
+
labelStroke: string;
|
|
100
|
+
enable: boolean;
|
|
101
|
+
wrap: boolean;
|
|
102
|
+
showValue: boolean;
|
|
103
|
+
labelColorSmartInvert: boolean;
|
|
104
|
+
labelOverlap: boolean;
|
|
105
|
+
};
|
|
106
|
+
pivotGrid: {
|
|
107
|
+
borderColor?: string | null | undefined;
|
|
108
|
+
bodyFontColor?: string | null | undefined;
|
|
109
|
+
headerFontColor?: string | null | undefined;
|
|
110
|
+
headerBackgroundColor?: string | null | undefined;
|
|
111
|
+
hoverHeaderBackgroundColor?: string | null | undefined;
|
|
112
|
+
hoverHeaderInlineBackgroundColor?: string | null | undefined;
|
|
113
|
+
outlineBorderLineWidth?: number | null | undefined;
|
|
114
|
+
frameCornerRadius?: number | null | undefined;
|
|
115
|
+
minChartWidth?: number | null | undefined;
|
|
116
|
+
minChartHeight?: number | null | undefined;
|
|
117
|
+
titleFontColor?: string | null | undefined;
|
|
118
|
+
titleFontSize?: number | null | undefined;
|
|
119
|
+
titleFontWeight?: string | null | undefined;
|
|
120
|
+
chartGridColor?: string | null | undefined;
|
|
121
|
+
axisLabelColor?: string | null | undefined;
|
|
122
|
+
};
|
|
123
|
+
backgroundColor: string;
|
|
124
|
+
color: {
|
|
125
|
+
linearColorScheme: string[];
|
|
126
|
+
colorScheme: string[];
|
|
127
|
+
positiveColor: string;
|
|
128
|
+
negativeColor: string;
|
|
129
|
+
};
|
|
130
|
+
tooltip: {
|
|
131
|
+
enable?: boolean | null | undefined;
|
|
132
|
+
borderColor?: string | null | undefined;
|
|
133
|
+
borderWidth?: number | null | undefined;
|
|
134
|
+
borderRadius?: number | null | undefined;
|
|
135
|
+
padding?: number | number[] | null | undefined;
|
|
136
|
+
backgroundColor?: string | null | undefined;
|
|
137
|
+
lineHeight?: number | null | undefined;
|
|
138
|
+
fontSize?: number | null | undefined;
|
|
139
|
+
lineSpace?: number | null | undefined;
|
|
140
|
+
keyColor?: string | null | undefined;
|
|
141
|
+
valueColor?: string | null | undefined;
|
|
142
|
+
titleColor?: string | null | undefined;
|
|
143
|
+
};
|
|
144
|
+
brush: {
|
|
145
|
+
enable: boolean;
|
|
146
|
+
inBrushStyle?: {
|
|
147
|
+
opacity?: number | undefined;
|
|
148
|
+
stroke?: string | undefined;
|
|
149
|
+
lineWidth?: number | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
outOfBrushStyle?: {
|
|
152
|
+
opacity?: number | undefined;
|
|
153
|
+
stroke?: string | undefined;
|
|
154
|
+
lineWidth?: number | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getPieTheme } from "./pie.js";
|
|
2
|
+
import { getLightPlayer } from "../common/index.js";
|
|
3
|
+
const getRacePieTheme = ()=>{
|
|
4
|
+
const pieTheme = getPieTheme();
|
|
5
|
+
const player = getLightPlayer();
|
|
6
|
+
return {
|
|
7
|
+
...pieTheme,
|
|
8
|
+
legend: {
|
|
9
|
+
...pieTheme.legend,
|
|
10
|
+
enable: false
|
|
11
|
+
},
|
|
12
|
+
player
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
const getRaceDonutTheme = ()=>getRacePieTheme();
|
|
16
|
+
export { getRaceDonutTheme, getRacePieTheme };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=racePie.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme/light/racePie.js","sources":["webpack://@visactor/vseed/./src/theme/light/racePie.ts"],"sourcesContent":["import type { Player } from 'src/types'\nimport { getPieTheme } from './pie'\nimport { getLightPlayer } from '../common'\n\nexport const getRacePieTheme = () => {\n const pieTheme = getPieTheme()\n const player = getLightPlayer() as Player\n\n return {\n ...pieTheme,\n legend: {\n ...pieTheme.legend,\n enable: false,\n },\n player,\n }\n}\n\nexport const getRaceDonutTheme = () => {\n return getRacePieTheme()\n}\n"],"names":["getRacePieTheme","pieTheme","getPieTheme","player","getLightPlayer","getRaceDonutTheme"],"mappings":";;AAIO,MAAMA,kBAAkB;IAC7B,MAAMC,WAAWC;IACjB,MAAMC,SAASC;IAEf,OAAO;QACL,GAAGH,QAAQ;QACX,QAAQ;YACN,GAAGA,SAAS,MAAM;YAClB,QAAQ;QACV;QACAE;IACF;AACF;AAEO,MAAME,oBAAoB,IACxBL"}
|
|
@@ -4,10 +4,10 @@ import type { VSeed } from '../vseed';
|
|
|
4
4
|
import type { AdvancedPipeline, SpecPipeline } from '../pipeline';
|
|
5
5
|
import type { AdvancedVSeed } from '../advancedVSeed';
|
|
6
6
|
export declare abstract class VSeedBuilder {
|
|
7
|
-
abstract prepare: () => Promise<void>;
|
|
8
7
|
abstract build: () => Spec;
|
|
9
8
|
abstract buildAdvanced: () => AdvancedVSeed | null;
|
|
10
9
|
abstract buildSpec: (advancedVSeed: AdvancedVSeed) => Spec;
|
|
10
|
+
abstract prepare: () => Promise<void>;
|
|
11
11
|
static getAdvancedPipeline: (chartType: ChartType) => AdvancedPipeline;
|
|
12
12
|
static getSpecPipeline: (chartType: ChartType) => SpecPipeline;
|
|
13
13
|
static getTheme: (themeKey: string) => CustomThemeConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/builder/builder.js","sources":["webpack://@visactor/vseed/./src/types/builder/builder.ts"],"sourcesContent":["import type { Spec } from 'src/types'\nimport type { ChartType, CustomThemeConfig } from '../properties'\nimport type { VSeed } from '../vseed'\nimport type { AdvancedPipeline, SpecPipeline } from '../pipeline'\nimport type { AdvancedVSeed } from '../advancedVSeed'\n\nexport abstract class VSeedBuilder {\n abstract
|
|
1
|
+
{"version":3,"file":"types/builder/builder.js","sources":["webpack://@visactor/vseed/./src/types/builder/builder.ts"],"sourcesContent":["import type { Spec } from 'src/types'\nimport type { ChartType, CustomThemeConfig } from '../properties'\nimport type { VSeed } from '../vseed'\nimport type { AdvancedPipeline, SpecPipeline } from '../pipeline'\nimport type { AdvancedVSeed } from '../advancedVSeed'\n\nexport abstract class VSeedBuilder {\n abstract build: () => Spec\n abstract buildAdvanced: () => AdvancedVSeed | null\n abstract buildSpec: (advancedVSeed: AdvancedVSeed) => Spec\n abstract prepare: () => Promise<void>\n\n static getAdvancedPipeline: (chartType: ChartType) => AdvancedPipeline\n static getSpecPipeline: (chartType: ChartType) => SpecPipeline\n static getTheme: (themeKey: string) => CustomThemeConfig\n static getThemeMap: () => Record<string, CustomThemeConfig>\n\n abstract getColorItems: () => { id: string; alias: string }[]\n abstract getColorIdMap: () => Record<string, { id: string; alias: string }>\n\n abstract get spec(): Spec | null\n abstract set spec(value: Spec | null)\n abstract get vseed(): VSeed\n abstract set vseed(value: VSeed)\n abstract get advancedVSeed(): AdvancedVSeed | null\n abstract set advancedVSeed(value: AdvancedVSeed | null)\n}\n"],"names":["VSeedBuilder"],"mappings":"AAMO,MAAeA;IAMpB,OAAO,oBAA+D;IACtE,OAAO,gBAAuD;IAC9D,OAAO,SAAiD;IACxD,OAAO,YAAoD;AAW7D"}
|
|
@@ -147,6 +147,7 @@ export declare const zColumn: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>>>;
|
|
148
148
|
player: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
149
149
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
maxCount: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
150
151
|
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
151
152
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
152
153
|
position: z.ZodOptional<z.ZodEnum<{
|
|
@@ -147,6 +147,7 @@ export declare const zColumnParallel: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>>>;
|
|
148
148
|
player: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
149
149
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
maxCount: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
150
151
|
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
151
152
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
152
153
|
position: z.ZodOptional<z.ZodEnum<{
|
|
@@ -8,6 +8,7 @@ export * from './bar';
|
|
|
8
8
|
export * from './raceBar';
|
|
9
9
|
export * from './raceColumn';
|
|
10
10
|
export * from './raceScatter';
|
|
11
|
+
export * from './raceLine';
|
|
11
12
|
export * from './barParallel';
|
|
12
13
|
export * from './barPercent';
|
|
13
14
|
export * from './area';
|
|
@@ -23,6 +24,12 @@ export * from './radar';
|
|
|
23
24
|
export * from './treeMap';
|
|
24
25
|
export * from './sunburst';
|
|
25
26
|
export * from './circlePacking';
|
|
27
|
+
export * from './raceLine';
|
|
28
|
+
export * from './raceBar';
|
|
29
|
+
export * from './raceColumn';
|
|
30
|
+
export * from './raceScatter';
|
|
31
|
+
export * from './racePie';
|
|
32
|
+
export * from './raceDonut';
|
|
26
33
|
export * from './funnel';
|
|
27
34
|
export * from './heatmap';
|
|
28
35
|
export * from './histogram';
|
|
@@ -8,6 +8,7 @@ export * from "./bar/index.js";
|
|
|
8
8
|
export * from "./raceBar/index.js";
|
|
9
9
|
export * from "./raceColumn/index.js";
|
|
10
10
|
export * from "./raceScatter/index.js";
|
|
11
|
+
export * from "./raceLine/index.js";
|
|
11
12
|
export * from "./barParallel/index.js";
|
|
12
13
|
export * from "./barPercent/index.js";
|
|
13
14
|
export * from "./area/index.js";
|
|
@@ -23,6 +24,8 @@ export * from "./radar/index.js";
|
|
|
23
24
|
export * from "./treeMap/index.js";
|
|
24
25
|
export * from "./sunburst/index.js";
|
|
25
26
|
export * from "./circlePacking/index.js";
|
|
27
|
+
export * from "./racePie/index.js";
|
|
28
|
+
export * from "./raceDonut/index.js";
|
|
26
29
|
export * from "./funnel/index.js";
|
|
27
30
|
export * from "./heatmap/index.js";
|
|
28
31
|
export * from "./boxPlot/index.js";
|
|
@@ -59,11 +59,11 @@ export interface RaceBar {
|
|
|
59
59
|
*/
|
|
60
60
|
brush?: Brush;
|
|
61
61
|
/**
|
|
62
|
-
* @description x
|
|
62
|
+
* @description x轴配置,为数值轴,展示指标值
|
|
63
63
|
*/
|
|
64
64
|
xAxis?: XLinearAxis;
|
|
65
65
|
/**
|
|
66
|
-
* @description y
|
|
66
|
+
* @description y轴配置,为类目轴,展示维度值,柱子竖向排列
|
|
67
67
|
*/
|
|
68
68
|
yAxis?: YBandAxis;
|
|
69
69
|
/**
|
|
@@ -147,6 +147,7 @@ export declare const zRaceBar: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>>>;
|
|
148
148
|
player: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
149
149
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
maxCount: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
150
151
|
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
151
152
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
152
153
|
position: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1,31 +1,134 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
|
-
import type { BarMaxWidth, RaceColumnDimension, DimensionLinkage, Sort, SortLegend, Player, AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip,
|
|
2
|
+
import type { BarMaxWidth, RaceColumnDimension, DimensionLinkage, Sort, SortLegend, Player, AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, BarStyle, Color, CrosshairRect, Dataset, Label, Legend, StackCornerRadius, Theme, Tooltip, Page, ColumnMeasure, XBandAxis, YLinearAxis } from '../../properties';
|
|
3
|
+
/**
|
|
4
|
+
* @description 动态柱状图 (Race Column Chart)
|
|
5
|
+
* 适用于展示数据随时间变化的排名情况,柱子竖向排列
|
|
6
|
+
* 适用场景:
|
|
7
|
+
* - 数据项名称较长时
|
|
8
|
+
* - 需要直观比较不同类别的数值大小并展示其随时间的变化排序
|
|
9
|
+
* - 展示时间序列数据变化趋势,并动态更新柱子排序
|
|
10
|
+
* @note
|
|
11
|
+
* 动态柱状图:
|
|
12
|
+
* - X轴为类目轴(分类数据),展示维度值
|
|
13
|
+
* - Y轴为数值轴(连续数据),展示指标值
|
|
14
|
+
* - 支持通过播放器控制时间维度,动态展示数据变化
|
|
15
|
+
* - 柱子在动画中根据数值大小动态排序
|
|
16
|
+
*/
|
|
3
17
|
export interface RaceColumn {
|
|
18
|
+
/**
|
|
19
|
+
* @description 动态柱状图,适用于展示数据随时间变化的排名情况
|
|
20
|
+
* @type {'raceColumn'}
|
|
21
|
+
*/
|
|
4
22
|
chartType: 'raceColumn';
|
|
23
|
+
/**
|
|
24
|
+
* @description 符合TidyData规范的且已经聚合的数据集
|
|
25
|
+
* @type {Array<Record<string|number, any>>}
|
|
26
|
+
* @example [{category:'A', value:100, date: '2020'}, {category:'B', value:200, date: '2020'}]
|
|
27
|
+
*/
|
|
5
28
|
dataset: Dataset;
|
|
29
|
+
/**
|
|
30
|
+
* 维度
|
|
31
|
+
* @description 第一个维度映射到player,第二个维度映射到X轴
|
|
32
|
+
*/
|
|
6
33
|
dimensions?: RaceColumnDimension[];
|
|
34
|
+
/**
|
|
35
|
+
* 指标
|
|
36
|
+
* @description 动态柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
|
37
|
+
* @example [{id: "value", alias: "数值"}]
|
|
38
|
+
*/
|
|
7
39
|
measures?: ColumnMeasure[];
|
|
40
|
+
/**
|
|
41
|
+
* @description 播放器配置,用于指定时间维度,是动态柱状图的核心配置
|
|
42
|
+
* 通过播放器控制时间维度的播放进度,实现数据的动态更新和排序变化
|
|
43
|
+
*/
|
|
8
44
|
player?: Player;
|
|
45
|
+
/**
|
|
46
|
+
* @description 排序配置,动态柱状图通常需要根据数值动态排序
|
|
47
|
+
* 控制柱子在X轴上的排序方式
|
|
48
|
+
*/
|
|
9
49
|
sort?: Sort;
|
|
50
|
+
/**
|
|
51
|
+
* @description 分页配置,用于处理数据量较大的场景
|
|
52
|
+
*/
|
|
10
53
|
page?: Page;
|
|
54
|
+
/**
|
|
55
|
+
* @description 背景颜色配置
|
|
56
|
+
*/
|
|
11
57
|
backgroundColor?: BackgroundColor;
|
|
58
|
+
/**
|
|
59
|
+
* @description 颜色配置,用于区分不同的维度或指标
|
|
60
|
+
*/
|
|
12
61
|
color?: Color;
|
|
62
|
+
/**
|
|
63
|
+
* @description 标签配置,用于在柱子上显示数据标签
|
|
64
|
+
*/
|
|
13
65
|
label?: Label;
|
|
66
|
+
/**
|
|
67
|
+
* @description 图例配置
|
|
68
|
+
*/
|
|
14
69
|
legend?: Legend;
|
|
70
|
+
/**
|
|
71
|
+
* @description 提示信息配置,用于鼠标悬停时展示详细信息
|
|
72
|
+
*/
|
|
15
73
|
tooltip?: Tooltip;
|
|
74
|
+
/**
|
|
75
|
+
* @description 框选配置,用于支持框选交互
|
|
76
|
+
*/
|
|
16
77
|
brush?: Brush;
|
|
17
|
-
|
|
18
|
-
|
|
78
|
+
/**
|
|
79
|
+
* @description X轴配置,为类目轴,展示维度值,柱子竖向排列
|
|
80
|
+
*/
|
|
81
|
+
xAxis?: XBandAxis;
|
|
82
|
+
/**
|
|
83
|
+
* @description Y轴配置,为数值轴,展示指标值
|
|
84
|
+
*/
|
|
85
|
+
yAxis?: YLinearAxis;
|
|
86
|
+
/**
|
|
87
|
+
* @description 十字线配置,用于展示数据的精确值
|
|
88
|
+
*/
|
|
19
89
|
crosshairRect?: CrosshairRect;
|
|
90
|
+
/**
|
|
91
|
+
* @description 堆叠圆角配置
|
|
92
|
+
*/
|
|
20
93
|
stackCornerRadius?: StackCornerRadius;
|
|
94
|
+
/**
|
|
95
|
+
* @description 矩形的最大宽度配置
|
|
96
|
+
*/
|
|
21
97
|
barMaxWidth?: BarMaxWidth;
|
|
98
|
+
/**
|
|
99
|
+
* @description 图例排序配置
|
|
100
|
+
*/
|
|
22
101
|
sortLegend?: SortLegend;
|
|
102
|
+
/**
|
|
103
|
+
* @description 主题配置
|
|
104
|
+
*/
|
|
23
105
|
theme?: Theme;
|
|
106
|
+
/**
|
|
107
|
+
* @description 柱形样式配置,可以为单个样式或数组形式
|
|
108
|
+
*/
|
|
24
109
|
barStyle?: BarStyle | BarStyle[];
|
|
110
|
+
/**
|
|
111
|
+
* @description 标注点配置,用于在特定数据点上添加标记
|
|
112
|
+
*/
|
|
25
113
|
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
|
114
|
+
/**
|
|
115
|
+
* @description 数值标注线,竖向标注线,标记特定的X轴数值
|
|
116
|
+
*/
|
|
26
117
|
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
|
118
|
+
/**
|
|
119
|
+
* @description 维度值标注线,横向标注线,标记特定的Y轴类别
|
|
120
|
+
*/
|
|
27
121
|
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
|
122
|
+
/**
|
|
123
|
+
* @description 标注区域配置,用于突出显示特定的数据范围
|
|
124
|
+
*/
|
|
28
125
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
|
126
|
+
/**
|
|
127
|
+
* @description 维度联动配置,支持多个图表间的维度联动交互
|
|
128
|
+
*/
|
|
29
129
|
dimensionLinkage?: DimensionLinkage;
|
|
130
|
+
/**
|
|
131
|
+
* @description 语言配置
|
|
132
|
+
*/
|
|
30
133
|
locale?: Locale;
|
|
31
134
|
}
|
|
@@ -147,6 +147,7 @@ export declare const zRaceColumn: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>>>;
|
|
148
148
|
player: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
149
149
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
maxCount: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>;
|
|
150
151
|
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
151
152
|
loop: z.ZodOptional<z.ZodBoolean>;
|
|
152
153
|
position: z.ZodOptional<z.ZodEnum<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./zRaceDonut.js";
|