@visactor/vseed 0.0.19 → 0.0.21
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/builder/builder/advanced/colorItems.d.ts +2 -0
- package/dist/builder/builder/advanced/index.d.ts +1 -0
- package/dist/builder/builder/builder.d.ts +259 -145
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/builder/register/index.d.ts +1 -1
- package/dist/dataReshape/foldMeasures.d.ts +3 -3
- package/dist/index.cjs +930 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +845 -135
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/area.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/areaPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/bar.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/column.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/donut.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/line.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/pie.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/rose.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/annotation/annotation.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/config/config.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingFunnel.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingPie.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingRose.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingXY.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYX.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYY.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/index.d.ts +0 -1
- package/dist/pipeline/advanced/chart/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/markStyle/markStyle.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/pivotAdapter.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/theme/theme.d.ts +2 -0
- package/dist/pipeline/advanced/index.d.ts +2 -1
- package/dist/pipeline/advanced/table/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/index.d.ts +5 -0
- package/dist/pipeline/advanced/table/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/records/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/records/records.d.ts +2 -0
- package/dist/pipeline/spec/chart/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/area.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/areaPercent.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/column.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/donut.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/line.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/pie.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/rose.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipes/index.d.ts +14 -0
- package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/index.d.ts +1 -0
- package/dist/pipeline/spec/index.d.ts +2 -1
- package/dist/pipeline/spec/table/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +3 -0
- package/dist/pipeline/spec/table/pipes/columns/pivotColumns.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/index.d.ts +5 -0
- package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/indicators/pivotIndicators.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/rows/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/rows/pivotRows.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
- package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +4 -2
- package/dist/pipeline/utils/dimensions/find.d.ts +4 -0
- package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
- package/dist/pipeline/utils/index.d.ts +2 -0
- package/dist/pipeline/utils/measures/find.d.ts +4 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -1
- package/dist/pipeline/utils/tree/index.d.ts +1 -0
- package/dist/pipeline/utils/tree/traverse.d.ts +11 -0
- package/dist/types/advancedVSeed.d.ts +57 -52
- package/dist/types/builder/builder.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts +12 -51
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +12 -51
- package/dist/types/chartType/bar/bar.d.ts +13 -51
- package/dist/types/chartType/barParallel/barParallel.d.ts +12 -51
- package/dist/types/chartType/barPercent/barPercent.d.ts +12 -51
- package/dist/types/chartType/column/column.d.ts +12 -51
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +12 -51
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +12 -51
- package/dist/types/chartType/donut/donut.d.ts +12 -51
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +3 -3
- package/dist/types/chartType/funnel/funnel.d.ts +12 -51
- package/dist/types/chartType/index.d.ts +3 -3
- package/dist/types/chartType/line/line.d.ts +12 -51
- package/dist/types/chartType/pie/pie.d.ts +12 -51
- package/dist/types/chartType/pivotTable/index.d.ts +1 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +58 -2
- package/dist/types/chartType/rose/rose.d.ts +12 -50
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +13 -51
- package/dist/types/chartType/scatter/scatter.d.ts +12 -51
- package/dist/types/chartType/table/index.d.ts +1 -1
- package/dist/types/chartType/table/table.d.ts +60 -4
- package/dist/types/properties/config/config.d.ts +50 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +28 -10
- package/dist/types/properties/dimensions/index.d.ts +1 -2
- package/dist/types/properties/measures/measures.d.ts +44 -84
- package/dist/types/properties/theme/customTheme.d.ts +48 -4
- package/dist/types/vseed.d.ts +241 -720
- package/dist/umd/index.js +1202 -144
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/utils.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/theme/theme.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/area.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/bar.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/column.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/donut.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/line.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/pie.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/rose.d.ts +0 -1
- package/dist/pipeline/spec/pipes/index.d.ts +0 -14
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +0 -3
- /package/dist/pipeline/advanced/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/config/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/init/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/theme/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationArea.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationAreaBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationHorizontalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationPoint.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationVerticalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/utils.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/a.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/angle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/radius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/background.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/color.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/dataset.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/datasetPivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/area.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/bar.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/barParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/column.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/columnParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/donut.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/funnel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/line.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pie.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/rose.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/roseParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/scatter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/label.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/discreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/pivotDiscreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/areaStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/barStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/lineStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointState.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/percent.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotAdapter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotColumnDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotGridStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotIndicators.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotRowDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stack.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stackCornerRadius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/tooltip.d.ts +0 -0
- /package/dist/pipeline/{constant.d.ts → utils/constant.d.ts} +0 -0
package/dist/index.js
CHANGED
@@ -1,24 +1,29 @@
|
|
1
1
|
import { clone, groupBy, isArray, isEmpty, isNullish, isNumber, isString, mergeDeep, omit, pick, unique } from "remeda";
|
2
|
+
import { color as external_d3_color_color } from "d3-color";
|
2
3
|
import { z } from "zod";
|
3
4
|
const initAdvancedVSeed = (advancedVSeed, context)=>{
|
4
5
|
const { vseed } = context;
|
5
|
-
const { chartType } = vseed;
|
6
|
+
const { chartType, locale } = vseed;
|
6
7
|
return {
|
7
8
|
...advancedVSeed,
|
8
|
-
chartType
|
9
|
+
chartType,
|
10
|
+
locale: locale || 'zh-CN'
|
9
11
|
};
|
10
12
|
};
|
11
13
|
const execPipeline = (pipeline, context, initialValue = {})=>{
|
12
14
|
const result = pipeline.reduce((prev, cur)=>cur(prev, context), initialValue);
|
13
15
|
return result;
|
14
16
|
};
|
17
|
+
const isTable = (vseed)=>'table' === vseed.chartType;
|
18
|
+
const isPivotTable = (vseed)=>'pivotTable' === vseed.chartType;
|
15
19
|
const isVTable = (vseed)=>[
|
16
20
|
'table',
|
17
21
|
'pivotTable'
|
18
22
|
].includes(vseed.chartType);
|
19
23
|
const isVChart = (vseed)=>!isVTable(vseed);
|
20
24
|
const isPivotChart = (vseed)=>{
|
21
|
-
|
25
|
+
if (isVTable(vseed)) return false;
|
26
|
+
const { measures = [], dimensions = [] } = vseed;
|
22
27
|
const hasRowOrColumnDimension = dimensions && dimensions.some((dimension)=>'rowDimension' === dimension.location || 'columnDimension' === dimension.location);
|
23
28
|
const hasMeasureGroup = measures && measures.find((measure)=>measure && measure.children);
|
24
29
|
return hasRowOrColumnDimension || hasMeasureGroup;
|
@@ -108,32 +113,92 @@ const autoNumFormatter = (value, locale = intl.getLocale())=>{
|
|
108
113
|
};
|
109
114
|
const createFormatter = (format)=>createNumFormatter(format);
|
110
115
|
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
111
|
-
const
|
112
|
-
if (!
|
116
|
+
const preorderTraverse = (tree, callback)=>{
|
117
|
+
if (!tree || 0 === tree.length) return;
|
113
118
|
const stack = [
|
114
|
-
...
|
115
|
-
];
|
119
|
+
...tree
|
120
|
+
].reverse();
|
116
121
|
while(stack.length > 0){
|
117
|
-
const
|
118
|
-
|
119
|
-
if (
|
120
|
-
if ('children' in
|
122
|
+
const node = stack.pop();
|
123
|
+
const stop = callback(node);
|
124
|
+
if (true === stop) return;
|
125
|
+
if (!('children' in node)) continue;
|
126
|
+
const children = node.children;
|
127
|
+
if (children && children.length > 0) for(let i = children.length - 1; i >= 0; i--){
|
128
|
+
const child = children[i];
|
129
|
+
stack.push(child);
|
130
|
+
}
|
121
131
|
}
|
122
132
|
};
|
133
|
+
const findMeasureById = (measures = [], id)=>{
|
134
|
+
if (!measures) return;
|
135
|
+
let result;
|
136
|
+
preorderTraverse(measures, (node)=>{
|
137
|
+
if (!('children' in node)) {
|
138
|
+
if (node.id === id) {
|
139
|
+
result = node;
|
140
|
+
return true;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
return false;
|
144
|
+
});
|
145
|
+
return result;
|
146
|
+
};
|
123
147
|
const findFirstMeasure = (measures = [])=>{
|
124
148
|
if (!measures) return;
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
if (!current) continue;
|
131
|
-
if (!('children' in current)) return current;
|
132
|
-
if ('children' in current && current.children) {
|
133
|
-
const children = (current.children || []).reverse();
|
134
|
-
stack.push(...children);
|
149
|
+
let result;
|
150
|
+
preorderTraverse(measures, (node)=>{
|
151
|
+
if (!('children' in node)) {
|
152
|
+
result = node;
|
153
|
+
return true;
|
135
154
|
}
|
136
|
-
|
155
|
+
return false;
|
156
|
+
});
|
157
|
+
return result;
|
158
|
+
};
|
159
|
+
const findAllMeasures = (measures = [])=>{
|
160
|
+
if (!measures) return [];
|
161
|
+
const result = [];
|
162
|
+
preorderTraverse(measures, (node)=>{
|
163
|
+
if (!('children' in node)) result.push(node);
|
164
|
+
return false;
|
165
|
+
});
|
166
|
+
return result;
|
167
|
+
};
|
168
|
+
const findDimensionById = (dimensions = [], id)=>{
|
169
|
+
if (!dimensions) return;
|
170
|
+
let result;
|
171
|
+
preorderTraverse(dimensions, (node)=>{
|
172
|
+
if (!('children' in node)) {
|
173
|
+
if (node.id === id) {
|
174
|
+
result = node;
|
175
|
+
return true;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
return false;
|
179
|
+
});
|
180
|
+
return result;
|
181
|
+
};
|
182
|
+
const findFirstDimension = (dimensions = [])=>{
|
183
|
+
if (!dimensions) return;
|
184
|
+
let result;
|
185
|
+
preorderTraverse(dimensions, (node)=>{
|
186
|
+
if (!('children' in node)) {
|
187
|
+
result = node;
|
188
|
+
return true;
|
189
|
+
}
|
190
|
+
return false;
|
191
|
+
});
|
192
|
+
return result;
|
193
|
+
};
|
194
|
+
const findAllDimensions = (dimensions = [])=>{
|
195
|
+
if (!dimensions) return [];
|
196
|
+
const result = [];
|
197
|
+
preorderTraverse(dimensions, (node)=>{
|
198
|
+
if (!('children' in node)) result.push(node);
|
199
|
+
return false;
|
200
|
+
});
|
201
|
+
return result;
|
137
202
|
};
|
138
203
|
const autoMeasures = (advancedVSeed, context)=>{
|
139
204
|
const result = {
|
@@ -212,7 +277,7 @@ const autoDimensions = (advancedVSeed, context)=>{
|
|
212
277
|
};
|
213
278
|
const { vseed } = context;
|
214
279
|
const { dimensions, dataset } = vseed;
|
215
|
-
const
|
280
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
216
281
|
if (!dataset) throw new Error('dataset is required');
|
217
282
|
if (0 === dataset.length) return result;
|
218
283
|
if (dimensions) {
|
@@ -265,7 +330,10 @@ const unfoldDimensions = (dataset, dimensions, measures, unfoldStartIndex = 0, u
|
|
265
330
|
for(let i = 0; i < dataset.length; i++){
|
266
331
|
const datum = dataset[i];
|
267
332
|
const colorName = generateDimGroupName(dimensionsToBeUnfolded, datum, dimensionsSeparator);
|
268
|
-
const colorId =
|
333
|
+
const colorId = [
|
334
|
+
colorName,
|
335
|
+
datum[foldMeasureId] || 'id'
|
336
|
+
].join(dimensionsSeparator);
|
269
337
|
datum[unfoldGroupName] = colorName;
|
270
338
|
datum[unfoldGroupId] = colorId;
|
271
339
|
colorItems.push(colorId);
|
@@ -565,7 +633,8 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
565
633
|
};
|
566
634
|
const { vseed } = context;
|
567
635
|
const { dataset } = vseed;
|
568
|
-
const {
|
636
|
+
const { measures } = advancedVSeed;
|
637
|
+
const dimensions = advancedVSeed.dimensions;
|
569
638
|
if (!measures || !dimensions) return result;
|
570
639
|
const measureGroups = [];
|
571
640
|
if (measures) measures.forEach((measure)=>{
|
@@ -604,7 +673,8 @@ const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
|
604
673
|
};
|
605
674
|
const { vseed } = context;
|
606
675
|
const { dataset } = vseed;
|
607
|
-
const {
|
676
|
+
const { measures } = advancedVSeed;
|
677
|
+
const dimensions = advancedVSeed.dimensions;
|
608
678
|
if (!measures || !dimensions) return result;
|
609
679
|
const measureGroups = [];
|
610
680
|
if (measures) measures.forEach((measure)=>{
|
@@ -643,7 +713,8 @@ const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
|
643
713
|
};
|
644
714
|
const { vseed } = context;
|
645
715
|
const { dataset } = vseed;
|
646
|
-
const {
|
716
|
+
const { measures } = advancedVSeed;
|
717
|
+
const dimensions = advancedVSeed.dimensions;
|
647
718
|
if (!measures || !dimensions) return result;
|
648
719
|
const measureGroups = [];
|
649
720
|
if (measures) measures.forEach((measure)=>{
|
@@ -748,6 +819,42 @@ const encodingYX = (advancedVSeed)=>{
|
|
748
819
|
encoding
|
749
820
|
};
|
750
821
|
};
|
822
|
+
const encodingYY = (advancedVSeed)=>{
|
823
|
+
const result = {
|
824
|
+
...advancedVSeed
|
825
|
+
};
|
826
|
+
const { datasetReshapeInfo, measures } = advancedVSeed;
|
827
|
+
if (!datasetReshapeInfo || !measures) return result;
|
828
|
+
const firstMeasure = findFirstMeasure(measures);
|
829
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
830
|
+
const { foldInfo, unfoldInfo } = cur;
|
831
|
+
const x = [
|
832
|
+
firstMeasure?.id
|
833
|
+
];
|
834
|
+
const y = [
|
835
|
+
foldInfo.measureValue
|
836
|
+
];
|
837
|
+
const group = [
|
838
|
+
unfoldInfo.groupId
|
839
|
+
];
|
840
|
+
const color = [
|
841
|
+
unfoldInfo.groupId
|
842
|
+
];
|
843
|
+
return [
|
844
|
+
...prev,
|
845
|
+
{
|
846
|
+
x,
|
847
|
+
y,
|
848
|
+
group,
|
849
|
+
color
|
850
|
+
}
|
851
|
+
];
|
852
|
+
}, []);
|
853
|
+
return {
|
854
|
+
...result,
|
855
|
+
encoding
|
856
|
+
};
|
857
|
+
};
|
751
858
|
const encodingRose = (advancedVSeed)=>{
|
752
859
|
const result = {
|
753
860
|
...advancedVSeed
|
@@ -988,17 +1095,8 @@ const annotation_annotation = (advancedVSeed, context)=>{
|
|
988
1095
|
annotation
|
989
1096
|
};
|
990
1097
|
};
|
991
|
-
const locale_locale = (advancedVSeed, context)=>{
|
992
|
-
const { vseed } = context;
|
993
|
-
const { locale } = vseed;
|
994
|
-
return {
|
995
|
-
...advancedVSeed,
|
996
|
-
locale: locale || 'zh-CN'
|
997
|
-
};
|
998
|
-
};
|
999
1098
|
const lineAdvancedPipeline = [
|
1000
1099
|
initAdvancedVSeed,
|
1001
|
-
locale_locale,
|
1002
1100
|
autoMeasures,
|
1003
1101
|
autoDimensions,
|
1004
1102
|
pivotAdapter([
|
@@ -1014,7 +1112,6 @@ const lineAdvancedPipeline = [
|
|
1014
1112
|
];
|
1015
1113
|
const barAdvancedPipeline = [
|
1016
1114
|
initAdvancedVSeed,
|
1017
|
-
locale_locale,
|
1018
1115
|
autoMeasures,
|
1019
1116
|
autoDimensions,
|
1020
1117
|
pivotAdapter([
|
@@ -1030,7 +1127,6 @@ const barAdvancedPipeline = [
|
|
1030
1127
|
];
|
1031
1128
|
const barParallelAdvancedPipeline = [
|
1032
1129
|
initAdvancedVSeed,
|
1033
|
-
locale_locale,
|
1034
1130
|
autoMeasures,
|
1035
1131
|
autoDimensions,
|
1036
1132
|
pivotAdapter([
|
@@ -1046,7 +1142,6 @@ const barParallelAdvancedPipeline = [
|
|
1046
1142
|
];
|
1047
1143
|
const barPercentAdvancedPipeline = [
|
1048
1144
|
initAdvancedVSeed,
|
1049
|
-
locale_locale,
|
1050
1145
|
autoMeasures,
|
1051
1146
|
autoDimensions,
|
1052
1147
|
pivotAdapter([
|
@@ -1062,7 +1157,6 @@ const barPercentAdvancedPipeline = [
|
|
1062
1157
|
];
|
1063
1158
|
const columnAdvancedPipeline = [
|
1064
1159
|
initAdvancedVSeed,
|
1065
|
-
locale_locale,
|
1066
1160
|
autoMeasures,
|
1067
1161
|
autoDimensions,
|
1068
1162
|
pivotAdapter([
|
@@ -1078,7 +1172,6 @@ const columnAdvancedPipeline = [
|
|
1078
1172
|
];
|
1079
1173
|
const columnParallelAdvancedPipeline = [
|
1080
1174
|
initAdvancedVSeed,
|
1081
|
-
locale_locale,
|
1082
1175
|
autoMeasures,
|
1083
1176
|
autoDimensions,
|
1084
1177
|
pivotAdapter([
|
@@ -1094,7 +1187,6 @@ const columnParallelAdvancedPipeline = [
|
|
1094
1187
|
];
|
1095
1188
|
const columnPercentAdvancedPipeline = [
|
1096
1189
|
initAdvancedVSeed,
|
1097
|
-
locale_locale,
|
1098
1190
|
autoMeasures,
|
1099
1191
|
autoDimensions,
|
1100
1192
|
pivotAdapter([
|
@@ -1110,7 +1202,6 @@ const columnPercentAdvancedPipeline = [
|
|
1110
1202
|
];
|
1111
1203
|
const areaAdvancedPipeline = [
|
1112
1204
|
initAdvancedVSeed,
|
1113
|
-
locale_locale,
|
1114
1205
|
autoMeasures,
|
1115
1206
|
autoDimensions,
|
1116
1207
|
pivotAdapter([
|
@@ -1126,7 +1217,6 @@ const areaAdvancedPipeline = [
|
|
1126
1217
|
];
|
1127
1218
|
const areaPercentAdvancedPipeline = [
|
1128
1219
|
initAdvancedVSeed,
|
1129
|
-
locale_locale,
|
1130
1220
|
autoMeasures,
|
1131
1221
|
autoDimensions,
|
1132
1222
|
pivotAdapter([
|
@@ -1142,7 +1232,6 @@ const areaPercentAdvancedPipeline = [
|
|
1142
1232
|
];
|
1143
1233
|
const pieAdvancedPipeline = [
|
1144
1234
|
initAdvancedVSeed,
|
1145
|
-
locale_locale,
|
1146
1235
|
autoMeasures,
|
1147
1236
|
autoDimensions,
|
1148
1237
|
pivotAdapter([
|
@@ -1157,7 +1246,6 @@ const pieAdvancedPipeline = [
|
|
1157
1246
|
];
|
1158
1247
|
const donutAdvancedPipeline = [
|
1159
1248
|
initAdvancedVSeed,
|
1160
|
-
locale_locale,
|
1161
1249
|
autoMeasures,
|
1162
1250
|
autoDimensions,
|
1163
1251
|
pivotAdapter([
|
@@ -1172,7 +1260,6 @@ const donutAdvancedPipeline = [
|
|
1172
1260
|
];
|
1173
1261
|
const roseAdvancedPipeline = [
|
1174
1262
|
initAdvancedVSeed,
|
1175
|
-
locale_locale,
|
1176
1263
|
autoMeasures,
|
1177
1264
|
autoDimensions,
|
1178
1265
|
pivotAdapter([
|
@@ -1188,7 +1275,6 @@ const roseAdvancedPipeline = [
|
|
1188
1275
|
];
|
1189
1276
|
const roseParallelAdvancedPipeline = [
|
1190
1277
|
initAdvancedVSeed,
|
1191
|
-
locale_locale,
|
1192
1278
|
autoMeasures,
|
1193
1279
|
autoDimensions,
|
1194
1280
|
pivotAdapter([
|
@@ -1204,7 +1290,6 @@ const roseParallelAdvancedPipeline = [
|
|
1204
1290
|
];
|
1205
1291
|
const funnelAdvancedPipeline = [
|
1206
1292
|
initAdvancedVSeed,
|
1207
|
-
locale_locale,
|
1208
1293
|
autoMeasures,
|
1209
1294
|
autoDimensions,
|
1210
1295
|
pivotAdapter([
|
@@ -1217,45 +1302,8 @@ const funnelAdvancedPipeline = [
|
|
1217
1302
|
theme_theme,
|
1218
1303
|
annotation_annotation
|
1219
1304
|
];
|
1220
|
-
const encodingYY = (advancedVSeed)=>{
|
1221
|
-
const result = {
|
1222
|
-
...advancedVSeed
|
1223
|
-
};
|
1224
|
-
const { datasetReshapeInfo, measures } = advancedVSeed;
|
1225
|
-
if (!datasetReshapeInfo || !measures) return result;
|
1226
|
-
const firstMeasure = findFirstMeasure(measures);
|
1227
|
-
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1228
|
-
const { foldInfo, unfoldInfo } = cur;
|
1229
|
-
const x = [
|
1230
|
-
firstMeasure?.id
|
1231
|
-
];
|
1232
|
-
const y = [
|
1233
|
-
foldInfo.measureValue
|
1234
|
-
];
|
1235
|
-
const group = [
|
1236
|
-
unfoldInfo.groupId
|
1237
|
-
];
|
1238
|
-
const color = [
|
1239
|
-
unfoldInfo.groupId
|
1240
|
-
];
|
1241
|
-
return [
|
1242
|
-
...prev,
|
1243
|
-
{
|
1244
|
-
x,
|
1245
|
-
y,
|
1246
|
-
group,
|
1247
|
-
color
|
1248
|
-
}
|
1249
|
-
];
|
1250
|
-
}, []);
|
1251
|
-
return {
|
1252
|
-
...result,
|
1253
|
-
encoding
|
1254
|
-
};
|
1255
|
-
};
|
1256
1305
|
const scatterAdvancedPipeline = [
|
1257
1306
|
initAdvancedVSeed,
|
1258
|
-
locale_locale,
|
1259
1307
|
autoMeasures,
|
1260
1308
|
autoDimensions,
|
1261
1309
|
pivotAdapter([
|
@@ -1269,6 +1317,158 @@ const scatterAdvancedPipeline = [
|
|
1269
1317
|
markStyle_markStyle,
|
1270
1318
|
annotation_annotation
|
1271
1319
|
];
|
1320
|
+
const autoMeasures_autoMeasures = (advancedVSeed, context)=>{
|
1321
|
+
const result = {
|
1322
|
+
...advancedVSeed
|
1323
|
+
};
|
1324
|
+
const { vseed } = context;
|
1325
|
+
const { measures, dataset } = vseed;
|
1326
|
+
if (!dataset) throw new Error('dataset is required');
|
1327
|
+
if (0 === dataset.length) return result;
|
1328
|
+
if (measures && measures.length > 0) {
|
1329
|
+
result.measures = measures;
|
1330
|
+
return result;
|
1331
|
+
}
|
1332
|
+
const top100dataset = dataset.slice(0, 100);
|
1333
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1334
|
+
...prev,
|
1335
|
+
...cur
|
1336
|
+
}), {});
|
1337
|
+
result.measures = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'number' == typeof item[key]) && ![
|
1338
|
+
'',
|
1339
|
+
null,
|
1340
|
+
void 0
|
1341
|
+
].includes(key)).map((measure)=>({
|
1342
|
+
id: measure,
|
1343
|
+
alias: measure
|
1344
|
+
}));
|
1345
|
+
return result;
|
1346
|
+
};
|
1347
|
+
const autoDimensions_autoDimensions = (advancedVSeed, context)=>{
|
1348
|
+
const result = {
|
1349
|
+
...advancedVSeed
|
1350
|
+
};
|
1351
|
+
const { vseed } = context;
|
1352
|
+
const { dimensions, dataset } = vseed;
|
1353
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
1354
|
+
if (!dataset) throw new Error('dataset is required');
|
1355
|
+
if (0 === dataset.length) return result;
|
1356
|
+
if (dimensions && dimensions.length > 0) {
|
1357
|
+
result.dimensions = dimensions;
|
1358
|
+
return result;
|
1359
|
+
}
|
1360
|
+
const top100dataset = dataset.slice(0, 100);
|
1361
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1362
|
+
...prev,
|
1363
|
+
...cur
|
1364
|
+
}), {});
|
1365
|
+
result.dimensions = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'string' == typeof item[key]) && ![
|
1366
|
+
'',
|
1367
|
+
null,
|
1368
|
+
void 0
|
1369
|
+
].includes(key) && !measures.some((measure)=>measure.id === key)).map((dim)=>({
|
1370
|
+
id: dim,
|
1371
|
+
alias: dim,
|
1372
|
+
location: 'dimension'
|
1373
|
+
}));
|
1374
|
+
return result;
|
1375
|
+
};
|
1376
|
+
const autoPivotDimensions = (advancedVSeed, context)=>{
|
1377
|
+
const result = {
|
1378
|
+
...advancedVSeed
|
1379
|
+
};
|
1380
|
+
const { vseed } = context;
|
1381
|
+
const { dimensions, dataset } = vseed;
|
1382
|
+
const measures = findAllMeasures(advancedVSeed.measures);
|
1383
|
+
if (!dataset) throw new Error('dataset is required');
|
1384
|
+
if (0 === dataset.length) return result;
|
1385
|
+
if (dimensions && dimensions.length > 0) {
|
1386
|
+
const newDimensions = findAllDimensions(dimensions);
|
1387
|
+
result.dimensions = newDimensions.map((item, index)=>{
|
1388
|
+
if ('rowDimension' === item.location || 'columnDimension' === item.location) return item;
|
1389
|
+
return {
|
1390
|
+
...item,
|
1391
|
+
location: index % 2 === 0 ? 'columnDimension' : 'rowDimension'
|
1392
|
+
};
|
1393
|
+
});
|
1394
|
+
return result;
|
1395
|
+
}
|
1396
|
+
const top100dataset = dataset.slice(0, 100);
|
1397
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1398
|
+
...prev,
|
1399
|
+
...cur
|
1400
|
+
}), {});
|
1401
|
+
let i = 0;
|
1402
|
+
result.dimensions = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'string' == typeof item[key]) && ![
|
1403
|
+
'',
|
1404
|
+
null,
|
1405
|
+
void 0
|
1406
|
+
].includes(key) && !measures.some((measure)=>measure.id === key)).map((dim)=>({
|
1407
|
+
id: dim,
|
1408
|
+
alias: dim,
|
1409
|
+
location: i++ % 2 === 0 ? 'columnDimension' : 'rowDimension'
|
1410
|
+
}));
|
1411
|
+
return result;
|
1412
|
+
};
|
1413
|
+
const autoPivotMeasures = (advancedVSeed, context)=>{
|
1414
|
+
const result = {
|
1415
|
+
...advancedVSeed
|
1416
|
+
};
|
1417
|
+
const { vseed } = context;
|
1418
|
+
const { dataset } = vseed;
|
1419
|
+
const measures = findAllMeasures(vseed.measures);
|
1420
|
+
if (!dataset) throw new Error('dataset is required');
|
1421
|
+
if (0 === dataset.length) return result;
|
1422
|
+
if (measures && measures.length > 0) {
|
1423
|
+
result.measures = findAllMeasures(measures);
|
1424
|
+
return result;
|
1425
|
+
}
|
1426
|
+
const top100dataset = dataset.slice(0, 100);
|
1427
|
+
const sample = top100dataset.reduce((prev, cur)=>({
|
1428
|
+
...prev,
|
1429
|
+
...cur
|
1430
|
+
}), {});
|
1431
|
+
result.measures = Object.keys(sample).filter((key)=>top100dataset.some((item)=>'number' == typeof item[key]) && ![
|
1432
|
+
'',
|
1433
|
+
null,
|
1434
|
+
void 0
|
1435
|
+
].includes(key)).map((measure)=>({
|
1436
|
+
id: measure,
|
1437
|
+
alias: measure
|
1438
|
+
}));
|
1439
|
+
return result;
|
1440
|
+
};
|
1441
|
+
const initAdvancedVSeed_initAdvancedVSeed = (advancedVSeed, context)=>{
|
1442
|
+
const { vseed } = context;
|
1443
|
+
const { chartType, locale } = vseed;
|
1444
|
+
return {
|
1445
|
+
...advancedVSeed,
|
1446
|
+
chartType,
|
1447
|
+
locale: locale || 'zh-CN'
|
1448
|
+
};
|
1449
|
+
};
|
1450
|
+
const records_records = (advancedVSeed, context)=>{
|
1451
|
+
const { vseed } = context;
|
1452
|
+
const { dataset } = vseed;
|
1453
|
+
return {
|
1454
|
+
...advancedVSeed,
|
1455
|
+
dataset
|
1456
|
+
};
|
1457
|
+
};
|
1458
|
+
const pivotTableAdvancedPipeline = [
|
1459
|
+
initAdvancedVSeed_initAdvancedVSeed,
|
1460
|
+
autoPivotMeasures,
|
1461
|
+
autoPivotDimensions,
|
1462
|
+
records_records,
|
1463
|
+
theme_theme
|
1464
|
+
];
|
1465
|
+
const tableAdvancedPipeline = [
|
1466
|
+
initAdvancedVSeed_initAdvancedVSeed,
|
1467
|
+
autoMeasures_autoMeasures,
|
1468
|
+
autoDimensions_autoDimensions,
|
1469
|
+
records_records,
|
1470
|
+
theme_theme
|
1471
|
+
];
|
1272
1472
|
const dataset_dataset = (spec, context)=>{
|
1273
1473
|
const { advancedVSeed } = context;
|
1274
1474
|
const { encoding } = advancedVSeed;
|
@@ -1646,6 +1846,27 @@ const initFunnel = (spec, context)=>{
|
|
1646
1846
|
result.animation = true;
|
1647
1847
|
return result;
|
1648
1848
|
};
|
1849
|
+
const initScatter = (spec, context)=>{
|
1850
|
+
const result = {
|
1851
|
+
...spec
|
1852
|
+
};
|
1853
|
+
const { advancedVSeed } = context;
|
1854
|
+
const { encoding } = advancedVSeed;
|
1855
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
1856
|
+
result.type = 'scatter';
|
1857
|
+
result.direction = 'vertical';
|
1858
|
+
result.xField = encoding[0].x[0];
|
1859
|
+
result.yField = encoding[0].y[0];
|
1860
|
+
result.seriesField = encoding[0].group[0];
|
1861
|
+
result.padding = 0;
|
1862
|
+
result.region = [
|
1863
|
+
{
|
1864
|
+
clip: true
|
1865
|
+
}
|
1866
|
+
];
|
1867
|
+
result.animation = true;
|
1868
|
+
return result;
|
1869
|
+
};
|
1649
1870
|
const xBand = (spec, context)=>{
|
1650
1871
|
const result = {
|
1651
1872
|
...spec
|
@@ -2641,7 +2862,7 @@ const pivotColumnDimensions = (spec, context)=>{
|
|
2641
2862
|
...spec
|
2642
2863
|
};
|
2643
2864
|
const { advancedVSeed } = context;
|
2644
|
-
const
|
2865
|
+
const dimensions = advancedVSeed.dimensions;
|
2645
2866
|
if (!dimensions) return result;
|
2646
2867
|
const columnDimensions = dimensions.filter((dim)=>'columnDimension' === dim.location);
|
2647
2868
|
const columns = columnDimensions.map((dim)=>({
|
@@ -2658,7 +2879,7 @@ const pivotRowDimensions = (spec, context)=>{
|
|
2658
2879
|
...spec
|
2659
2880
|
};
|
2660
2881
|
const { advancedVSeed } = context;
|
2661
|
-
const
|
2882
|
+
const dimensions = advancedVSeed.dimensions;
|
2662
2883
|
if (!dimensions) return result;
|
2663
2884
|
const rowDimensions = dimensions.filter((dim)=>'rowDimension' === dim.location);
|
2664
2885
|
const rows = rowDimensions.map((dim)=>({
|
@@ -4295,27 +4516,6 @@ const pivotFunnel = [
|
|
4295
4516
|
const funnelSpecPipeline = [
|
4296
4517
|
pivotAdapter_pivotAdapter(funnel, pivotFunnel)
|
4297
4518
|
];
|
4298
|
-
const initScatter = (spec, context)=>{
|
4299
|
-
const result = {
|
4300
|
-
...spec
|
4301
|
-
};
|
4302
|
-
const { advancedVSeed } = context;
|
4303
|
-
const { encoding } = advancedVSeed;
|
4304
|
-
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
4305
|
-
result.type = 'scatter';
|
4306
|
-
result.direction = 'vertical';
|
4307
|
-
result.xField = encoding[0].x[0];
|
4308
|
-
result.yField = encoding[0].y[0];
|
4309
|
-
result.seriesField = encoding[0].group[0];
|
4310
|
-
result.padding = 0;
|
4311
|
-
result.region = [
|
4312
|
-
{
|
4313
|
-
clip: true
|
4314
|
-
}
|
4315
|
-
];
|
4316
|
-
result.animation = true;
|
4317
|
-
return result;
|
4318
|
-
};
|
4319
4519
|
const scatter = [
|
4320
4520
|
initScatter,
|
4321
4521
|
color_color,
|
@@ -4365,6 +4565,425 @@ const pivotScatter = [
|
|
4365
4565
|
const scatterSpecPipeline = [
|
4366
4566
|
pivotAdapter_pivotAdapter(scatter, pivotScatter)
|
4367
4567
|
];
|
4568
|
+
const initTable = (spec, context)=>{
|
4569
|
+
const { advancedVSeed } = context;
|
4570
|
+
const { dataset } = advancedVSeed;
|
4571
|
+
return {
|
4572
|
+
...spec,
|
4573
|
+
records: dataset,
|
4574
|
+
widthMode: 'standard',
|
4575
|
+
heightMode: 'autoHeight',
|
4576
|
+
autoWrapText: true,
|
4577
|
+
columnResizeMode: 'all',
|
4578
|
+
showHeader: true,
|
4579
|
+
tooltip: {
|
4580
|
+
isShowOverflowTextTooltip: true
|
4581
|
+
},
|
4582
|
+
animationAppear: {
|
4583
|
+
duration: 300,
|
4584
|
+
delay: 250,
|
4585
|
+
type: 'one-by-one',
|
4586
|
+
direction: 'row'
|
4587
|
+
},
|
4588
|
+
theme: {
|
4589
|
+
underlayBackgroundColor: 'transparent'
|
4590
|
+
}
|
4591
|
+
};
|
4592
|
+
};
|
4593
|
+
const initPivotTable = (spec, context)=>{
|
4594
|
+
const { advancedVSeed } = context;
|
4595
|
+
const { dataset } = advancedVSeed;
|
4596
|
+
return {
|
4597
|
+
...spec,
|
4598
|
+
records: dataset,
|
4599
|
+
widthMode: 'standard',
|
4600
|
+
heightMode: 'autoHeight',
|
4601
|
+
autoWrapText: true,
|
4602
|
+
columnResizeMode: 'all',
|
4603
|
+
columnResizeType: 'column',
|
4604
|
+
showColumnHeader: true,
|
4605
|
+
showRowHeader: true,
|
4606
|
+
select: {
|
4607
|
+
highlightMode: 'cell',
|
4608
|
+
headerSelectMode: 'inline'
|
4609
|
+
},
|
4610
|
+
hover: {
|
4611
|
+
highlightMode: 'cross'
|
4612
|
+
},
|
4613
|
+
tooltip: {
|
4614
|
+
isShowOverflowTextTooltip: true
|
4615
|
+
},
|
4616
|
+
widthAdaptiveMode: 'all',
|
4617
|
+
animationAppear: {
|
4618
|
+
duration: 300,
|
4619
|
+
delay: 250,
|
4620
|
+
type: 'one-by-one',
|
4621
|
+
direction: 'row'
|
4622
|
+
},
|
4623
|
+
theme: {
|
4624
|
+
underlayBackgroundColor: 'transparent'
|
4625
|
+
}
|
4626
|
+
};
|
4627
|
+
};
|
4628
|
+
const measureTreeToColumns = (spec, context)=>{
|
4629
|
+
const { advancedVSeed } = context;
|
4630
|
+
const measures = advancedVSeed.measures;
|
4631
|
+
const result = {
|
4632
|
+
...spec
|
4633
|
+
};
|
4634
|
+
const eachNode = (node)=>{
|
4635
|
+
if ('children' in node) return {};
|
4636
|
+
return {
|
4637
|
+
width: 'auto'
|
4638
|
+
};
|
4639
|
+
};
|
4640
|
+
const columns = treeTreeToColumns(measures, eachNode);
|
4641
|
+
return {
|
4642
|
+
...result,
|
4643
|
+
columns: [
|
4644
|
+
...result.columns || [],
|
4645
|
+
...columns
|
4646
|
+
]
|
4647
|
+
};
|
4648
|
+
};
|
4649
|
+
const dimensionTreeToColumns = (spec, context)=>{
|
4650
|
+
const { advancedVSeed } = context;
|
4651
|
+
const dimensions = advancedVSeed.dimensions;
|
4652
|
+
const result = {
|
4653
|
+
...spec
|
4654
|
+
};
|
4655
|
+
const eachNode = (node)=>{
|
4656
|
+
if ('children' in node) return {};
|
4657
|
+
return {
|
4658
|
+
width: 'auto'
|
4659
|
+
};
|
4660
|
+
};
|
4661
|
+
const columns = treeTreeToColumns(dimensions, eachNode);
|
4662
|
+
return {
|
4663
|
+
...result,
|
4664
|
+
columns: [
|
4665
|
+
...result.columns || [],
|
4666
|
+
...columns
|
4667
|
+
]
|
4668
|
+
};
|
4669
|
+
};
|
4670
|
+
const treeTreeToColumns = (tree, callback)=>{
|
4671
|
+
const result = tree.map((item)=>{
|
4672
|
+
if ('children' in item && Array.isArray(item.children)) {
|
4673
|
+
const groupNode = item;
|
4674
|
+
const field = groupNode.id;
|
4675
|
+
const title = groupNode.alias ?? groupNode.id;
|
4676
|
+
const props = callback?.(groupNode) || {};
|
4677
|
+
return {
|
4678
|
+
field,
|
4679
|
+
title,
|
4680
|
+
columns: treeTreeToColumns(item.children, callback),
|
4681
|
+
...props
|
4682
|
+
};
|
4683
|
+
}
|
4684
|
+
{
|
4685
|
+
const field = item.id;
|
4686
|
+
const title = item.alias ?? item.id;
|
4687
|
+
const props = callback?.(item) || {};
|
4688
|
+
return {
|
4689
|
+
field,
|
4690
|
+
title,
|
4691
|
+
...props
|
4692
|
+
};
|
4693
|
+
}
|
4694
|
+
});
|
4695
|
+
return result || [];
|
4696
|
+
};
|
4697
|
+
const pivotColumns = (spec, context)=>{
|
4698
|
+
const { advancedVSeed } = context;
|
4699
|
+
const dimensions = advancedVSeed.dimensions;
|
4700
|
+
const columns = dimensions.filter((item)=>'columnDimension' === item['location']);
|
4701
|
+
return {
|
4702
|
+
...spec,
|
4703
|
+
columns: columns.map((item)=>({
|
4704
|
+
dimensionKey: item.id,
|
4705
|
+
title: item.alias || item.id,
|
4706
|
+
width: 'auto'
|
4707
|
+
}))
|
4708
|
+
};
|
4709
|
+
};
|
4710
|
+
const pivotRows = (spec, context)=>{
|
4711
|
+
const { advancedVSeed } = context;
|
4712
|
+
const dimensions = advancedVSeed.dimensions;
|
4713
|
+
const rows = dimensions.filter((item)=>'rowDimension' === item['location']);
|
4714
|
+
return {
|
4715
|
+
...spec,
|
4716
|
+
rows: rows.map((item)=>({
|
4717
|
+
dimensionKey: item.id,
|
4718
|
+
title: item.alias || item.id,
|
4719
|
+
width: 'auto'
|
4720
|
+
}))
|
4721
|
+
};
|
4722
|
+
};
|
4723
|
+
const pivotIndicators_pivotIndicators = (spec, context)=>{
|
4724
|
+
const { advancedVSeed } = context;
|
4725
|
+
const measures = advancedVSeed.measures;
|
4726
|
+
return {
|
4727
|
+
...spec,
|
4728
|
+
indicatorsAsCol: true,
|
4729
|
+
indicatorTitle: intl.i18n`指标名称`,
|
4730
|
+
indicators: measures.map((item)=>({
|
4731
|
+
cellType: 'text',
|
4732
|
+
indicatorKey: item.id,
|
4733
|
+
title: item.alias || item.id,
|
4734
|
+
width: 'auto'
|
4735
|
+
}))
|
4736
|
+
};
|
4737
|
+
};
|
4738
|
+
const bodyStyle = (spec, context)=>{
|
4739
|
+
const result = {
|
4740
|
+
...spec
|
4741
|
+
};
|
4742
|
+
const { advancedVSeed } = context;
|
4743
|
+
const { customTheme, chartType } = advancedVSeed;
|
4744
|
+
const themConfig = customTheme?.config?.[chartType];
|
4745
|
+
if (!result.theme || !themConfig) return result;
|
4746
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4747
|
+
const backgroundColor = themConfig.bodyBackgroundColor || '#fff';
|
4748
|
+
const fontColor = themConfig.bodyFontColor || '#1B1F23';
|
4749
|
+
const fontSize = themConfig.bodyFontSize || 12;
|
4750
|
+
const hoverCellBgColor = themConfig.hoverBodyBackgroundColor || '#bedaff';
|
4751
|
+
const hoverInlineColor = external_d3_color_color(hoverCellBgColor)?.copy({
|
4752
|
+
opacity: 0.1
|
4753
|
+
}).toString();
|
4754
|
+
result.theme.bodyStyle = {
|
4755
|
+
borderColor: borderColor,
|
4756
|
+
borderLineWidth: 1,
|
4757
|
+
padding: [
|
4758
|
+
8.6,
|
4759
|
+
12,
|
4760
|
+
8.6,
|
4761
|
+
12
|
4762
|
+
],
|
4763
|
+
textAlign: 'right',
|
4764
|
+
hover: {
|
4765
|
+
cellBgColor: hoverCellBgColor,
|
4766
|
+
inlineRowBgColor: hoverInlineColor,
|
4767
|
+
inlineColumnBgColor: hoverInlineColor
|
4768
|
+
},
|
4769
|
+
color: fontColor,
|
4770
|
+
fontSize: fontSize,
|
4771
|
+
fontStyle: 'normal',
|
4772
|
+
fontWeight: 'normal',
|
4773
|
+
fontVariant: 'normal',
|
4774
|
+
bgColor: backgroundColor,
|
4775
|
+
lineHeight: 1.5 * fontSize
|
4776
|
+
};
|
4777
|
+
return result;
|
4778
|
+
};
|
4779
|
+
const headerStyle = (spec, context)=>{
|
4780
|
+
const result = {
|
4781
|
+
...spec
|
4782
|
+
};
|
4783
|
+
const { advancedVSeed } = context;
|
4784
|
+
const { customTheme, chartType } = advancedVSeed;
|
4785
|
+
const themConfig = customTheme?.config?.[chartType];
|
4786
|
+
if (!result.theme || !themConfig) return result;
|
4787
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4788
|
+
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
4789
|
+
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
4790
|
+
const fontSize = themConfig.headerFontSize || 12;
|
4791
|
+
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
4792
|
+
const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
|
4793
|
+
result.theme.headerStyle = {
|
4794
|
+
borderColor: borderColor,
|
4795
|
+
borderLineWidth: 1,
|
4796
|
+
padding: [
|
4797
|
+
8,
|
4798
|
+
12,
|
4799
|
+
8,
|
4800
|
+
12
|
4801
|
+
],
|
4802
|
+
textAlign: 'center',
|
4803
|
+
hover: {
|
4804
|
+
cellBgColor: external_d3_color_color(hoverCellBgColor)?.copy({
|
4805
|
+
opacity: 1
|
4806
|
+
}).brighter(0.5).toString(),
|
4807
|
+
inlineRowBgColor: hoverInlineColor,
|
4808
|
+
inlineColumnBgColor: hoverInlineColor
|
4809
|
+
},
|
4810
|
+
frameStyle: {
|
4811
|
+
borderColor: [
|
4812
|
+
null,
|
4813
|
+
null,
|
4814
|
+
borderColor,
|
4815
|
+
null
|
4816
|
+
],
|
4817
|
+
borderLineWidth: 1
|
4818
|
+
},
|
4819
|
+
fontSize: fontSize,
|
4820
|
+
fontVariant: 'normal',
|
4821
|
+
fontStyle: 'normal',
|
4822
|
+
fontWeight: 'bold',
|
4823
|
+
color: fontColor,
|
4824
|
+
bgColor: backgroundColor,
|
4825
|
+
lineHeight: 1.5 * fontSize
|
4826
|
+
};
|
4827
|
+
return result;
|
4828
|
+
};
|
4829
|
+
const rowHeaderStyle = (spec, context)=>{
|
4830
|
+
const result = {
|
4831
|
+
...spec
|
4832
|
+
};
|
4833
|
+
const { advancedVSeed } = context;
|
4834
|
+
const { customTheme, chartType } = advancedVSeed;
|
4835
|
+
const themConfig = customTheme?.config?.[chartType];
|
4836
|
+
if (!result.theme || !themConfig) return result;
|
4837
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4838
|
+
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
4839
|
+
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
4840
|
+
const fontSize = themConfig.headerFontSize || 12;
|
4841
|
+
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
4842
|
+
const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
|
4843
|
+
result.theme.rowHeaderStyle = {
|
4844
|
+
borderColor: borderColor,
|
4845
|
+
borderLineWidth: 1,
|
4846
|
+
padding: [
|
4847
|
+
8.6,
|
4848
|
+
12,
|
4849
|
+
8.6,
|
4850
|
+
12
|
4851
|
+
],
|
4852
|
+
textAlign: 'left',
|
4853
|
+
hover: {
|
4854
|
+
cellBgColor: external_d3_color_color(hoverCellBgColor)?.copy({
|
4855
|
+
opacity: 1
|
4856
|
+
}).brighter(0.5).toString(),
|
4857
|
+
inlineRowBgColor: hoverInlineColor,
|
4858
|
+
inlineColumnBgColor: hoverInlineColor
|
4859
|
+
},
|
4860
|
+
frameStyle: {
|
4861
|
+
borderColor: [
|
4862
|
+
null,
|
4863
|
+
borderColor,
|
4864
|
+
null,
|
4865
|
+
null
|
4866
|
+
],
|
4867
|
+
borderLineWidth: 1
|
4868
|
+
},
|
4869
|
+
fontSize: fontSize,
|
4870
|
+
fontVariant: 'normal',
|
4871
|
+
fontStyle: 'normal',
|
4872
|
+
fontWeight: 'bold',
|
4873
|
+
color: fontColor,
|
4874
|
+
bgColor: backgroundColor,
|
4875
|
+
lineHeight: 1.5 * fontSize
|
4876
|
+
};
|
4877
|
+
return result;
|
4878
|
+
};
|
4879
|
+
const cornerHeaderStyle = (spec, context)=>{
|
4880
|
+
const result = {
|
4881
|
+
...spec
|
4882
|
+
};
|
4883
|
+
const { advancedVSeed } = context;
|
4884
|
+
const { customTheme, chartType } = advancedVSeed;
|
4885
|
+
const themConfig = customTheme?.config?.[chartType];
|
4886
|
+
if (!result.theme || !themConfig) return result;
|
4887
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4888
|
+
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
4889
|
+
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
4890
|
+
const fontSize = themConfig.headerFontSize || 12;
|
4891
|
+
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
4892
|
+
const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
|
4893
|
+
result.theme.cornerHeaderStyle = {
|
4894
|
+
borderColor: [
|
4895
|
+
borderColor,
|
4896
|
+
borderColor
|
4897
|
+
],
|
4898
|
+
borderLineWidth: 1,
|
4899
|
+
padding: [
|
4900
|
+
8,
|
4901
|
+
12,
|
4902
|
+
8,
|
4903
|
+
12
|
4904
|
+
],
|
4905
|
+
textAlign: 'left',
|
4906
|
+
hover: {
|
4907
|
+
cellBgColor: external_d3_color_color(hoverCellBgColor)?.copy({
|
4908
|
+
opacity: 1
|
4909
|
+
}).brighter(0.5).toString(),
|
4910
|
+
inlineRowBgColor: hoverInlineColor,
|
4911
|
+
inlineColumnBgColor: hoverInlineColor
|
4912
|
+
},
|
4913
|
+
frameStyle: {
|
4914
|
+
borderColor: [
|
4915
|
+
null,
|
4916
|
+
borderColor,
|
4917
|
+
borderColor,
|
4918
|
+
null
|
4919
|
+
],
|
4920
|
+
borderLineWidth: 1
|
4921
|
+
},
|
4922
|
+
fontSize: fontSize,
|
4923
|
+
fontVariant: 'normal',
|
4924
|
+
fontStyle: 'normal',
|
4925
|
+
fontWeight: 'bold',
|
4926
|
+
color: fontColor,
|
4927
|
+
bgColor: backgroundColor,
|
4928
|
+
lineHeight: 1.5 * fontSize
|
4929
|
+
};
|
4930
|
+
return result;
|
4931
|
+
};
|
4932
|
+
const frameStyle = (spec, context)=>{
|
4933
|
+
const result = {
|
4934
|
+
...spec
|
4935
|
+
};
|
4936
|
+
const { advancedVSeed } = context;
|
4937
|
+
const { customTheme, chartType } = advancedVSeed;
|
4938
|
+
const themConfig = customTheme?.config?.[chartType];
|
4939
|
+
if (!result.theme || !themConfig) return result;
|
4940
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4941
|
+
result.theme.frameStyle = {
|
4942
|
+
borderColor,
|
4943
|
+
borderLineWidth: 0,
|
4944
|
+
cornerRadius: 0
|
4945
|
+
};
|
4946
|
+
return result;
|
4947
|
+
};
|
4948
|
+
const selectionStyle = (spec, context)=>{
|
4949
|
+
const result = {
|
4950
|
+
...spec
|
4951
|
+
};
|
4952
|
+
const { advancedVSeed } = context;
|
4953
|
+
const { customTheme, chartType } = advancedVSeed;
|
4954
|
+
const themConfig = customTheme?.config?.[chartType];
|
4955
|
+
if (!result.theme || !themConfig) return result;
|
4956
|
+
const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
|
4957
|
+
result.theme.selectionStyle = {
|
4958
|
+
cellBorderColor: borderColor,
|
4959
|
+
cellBorderLineWidth: 2,
|
4960
|
+
cellBgColor: external_d3_color_color(borderColor)?.copy({
|
4961
|
+
opacity: 0.15
|
4962
|
+
}).toString()
|
4963
|
+
};
|
4964
|
+
return result;
|
4965
|
+
};
|
4966
|
+
const tableSpecPipeline = [
|
4967
|
+
initTable,
|
4968
|
+
dimensionTreeToColumns,
|
4969
|
+
measureTreeToColumns,
|
4970
|
+
bodyStyle,
|
4971
|
+
headerStyle,
|
4972
|
+
frameStyle,
|
4973
|
+
selectionStyle
|
4974
|
+
];
|
4975
|
+
const pivotTableSpecPipeline = [
|
4976
|
+
initPivotTable,
|
4977
|
+
pivotColumns,
|
4978
|
+
pivotRows,
|
4979
|
+
pivotIndicators_pivotIndicators,
|
4980
|
+
bodyStyle,
|
4981
|
+
headerStyle,
|
4982
|
+
rowHeaderStyle,
|
4983
|
+
cornerHeaderStyle,
|
4984
|
+
frameStyle,
|
4985
|
+
selectionStyle
|
4986
|
+
];
|
4368
4987
|
const buildAdvanced = (builder)=>{
|
4369
4988
|
const { chartType } = builder.vseed;
|
4370
4989
|
if (!chartType) throw new Error('chartType is nil in buildAdvanced');
|
@@ -4405,6 +5024,17 @@ const build = (builder)=>{
|
|
4405
5024
|
builder.spec = spec;
|
4406
5025
|
return spec;
|
4407
5026
|
};
|
5027
|
+
const getColorItems = (builder)=>{
|
5028
|
+
const advancedVSeed = builder.advancedVSeed;
|
5029
|
+
if (!advancedVSeed) return [];
|
5030
|
+
const { datasetReshapeInfo } = advancedVSeed;
|
5031
|
+
const colorItems = unique(datasetReshapeInfo.flatMap((d)=>d.unfoldInfo.colorItems));
|
5032
|
+
const colorIdMap = datasetReshapeInfo.reduce((prev, cur)=>({
|
5033
|
+
...prev,
|
5034
|
+
...cur.unfoldInfo.colorIdMap
|
5035
|
+
}), {});
|
5036
|
+
return colorItems.map((d)=>colorIdMap[d]);
|
5037
|
+
};
|
4408
5038
|
class Builder {
|
4409
5039
|
_vseed;
|
4410
5040
|
_advancedVSeed = null;
|
@@ -4420,6 +5050,7 @@ class Builder {
|
|
4420
5050
|
getSpecPipeline = (chartType)=>Builder._specPipelineMap[chartType];
|
4421
5051
|
getTheme = (themeKey)=>Builder._themeMap[themeKey];
|
4422
5052
|
getThemeMap = ()=>Builder._themeMap;
|
5053
|
+
getColorItems = ()=>getColorItems(this);
|
4423
5054
|
get vseed() {
|
4424
5055
|
return this._vseed;
|
4425
5056
|
}
|
@@ -4503,6 +5134,14 @@ const registerScatter = ()=>{
|
|
4503
5134
|
Builder._advancedPipelineMap.scatter = scatterAdvancedPipeline;
|
4504
5135
|
Builder._specPipelineMap.scatter = scatterSpecPipeline;
|
4505
5136
|
};
|
5137
|
+
const registerTable = ()=>{
|
5138
|
+
Builder._advancedPipelineMap.table = tableAdvancedPipeline;
|
5139
|
+
Builder._specPipelineMap.table = tableSpecPipeline;
|
5140
|
+
};
|
5141
|
+
const registerPivotTable = ()=>{
|
5142
|
+
Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
|
5143
|
+
Builder._specPipelineMap.pivotTable = pivotTableSpecPipeline;
|
5144
|
+
};
|
4506
5145
|
const darkTheme = ()=>{
|
4507
5146
|
const linearAxis = {
|
4508
5147
|
nice: true,
|
@@ -4640,8 +5279,22 @@ const darkTheme = ()=>{
|
|
4640
5279
|
labelFontWeight: 400
|
4641
5280
|
}
|
4642
5281
|
};
|
5282
|
+
const tableConfig = {
|
5283
|
+
borderColor: '#4b4e53',
|
5284
|
+
bodyFontSize: 12,
|
5285
|
+
bodyFontColor: '#fdfdfd',
|
5286
|
+
bodyBackgroundColor: 'transparent',
|
5287
|
+
headerFontSize: 12,
|
5288
|
+
headerFontColor: '#fdfdfd',
|
5289
|
+
headerBackgroundColor: '#36393e',
|
5290
|
+
hoverBodyBackgroundColor: '#4284ff66',
|
5291
|
+
hoverHeaderBackgroundColor: '#5f5f5f88',
|
5292
|
+
selectedBorderColor: '#3073F2'
|
5293
|
+
};
|
4643
5294
|
return {
|
4644
5295
|
config: {
|
5296
|
+
table: tableConfig,
|
5297
|
+
pivotTable: tableConfig,
|
4645
5298
|
line: {
|
4646
5299
|
...baseConfig,
|
4647
5300
|
xAxis: bandAxis,
|
@@ -4920,8 +5573,22 @@ const lightTheme = ()=>{
|
|
4920
5573
|
labelFontWeight: 400
|
4921
5574
|
}
|
4922
5575
|
};
|
5576
|
+
const tableConfig = {
|
5577
|
+
borderColor: '#e3e5eb',
|
5578
|
+
bodyFontSize: 12,
|
5579
|
+
bodyFontColor: '#141414',
|
5580
|
+
bodyBackgroundColor: 'transparent',
|
5581
|
+
headerFontSize: 12,
|
5582
|
+
headerFontColor: '#21252c',
|
5583
|
+
headerBackgroundColor: '#f6f7f9',
|
5584
|
+
hoverBodyBackgroundColor: '#bedaff',
|
5585
|
+
hoverHeaderBackgroundColor: '#D9DDE488',
|
5586
|
+
selectedBorderColor: '#4080ff'
|
5587
|
+
};
|
4923
5588
|
return {
|
4924
5589
|
config: {
|
5590
|
+
table: tableConfig,
|
5591
|
+
pivotTable: tableConfig,
|
4925
5592
|
line: {
|
4926
5593
|
...baseConfig,
|
4927
5594
|
xAxis: bandAxis,
|
@@ -5091,6 +5758,8 @@ const registerAll = ()=>{
|
|
5091
5758
|
registerRoseParallel();
|
5092
5759
|
registerFunnel();
|
5093
5760
|
registerScatter();
|
5761
|
+
registerTable();
|
5762
|
+
registerPivotTable();
|
5094
5763
|
registerLightTheme();
|
5095
5764
|
registerDarkTheme();
|
5096
5765
|
};
|
@@ -5119,14 +5788,21 @@ const zDataset = z.array(zDatum);
|
|
5119
5788
|
const zDimension = z.object({
|
5120
5789
|
id: z.string(),
|
5121
5790
|
alias: z.string().optional(),
|
5122
|
-
visible: z.boolean().default(true).optional(),
|
5123
5791
|
location: z["enum"]([
|
5124
5792
|
'dimension',
|
5125
5793
|
'rowDimension',
|
5126
5794
|
'columnDimension'
|
5127
|
-
]).default('dimension')
|
5795
|
+
]).default('dimension')
|
5128
5796
|
});
|
5129
|
-
const
|
5797
|
+
const zDimensionGroup = z.object({
|
5798
|
+
id: z.string(),
|
5799
|
+
alias: z.string().optional(),
|
5800
|
+
get children () {
|
5801
|
+
return z.array(zDimensionGroup.or(zDimension)).optional();
|
5802
|
+
}
|
5803
|
+
});
|
5804
|
+
const zDimensions = z.array(zDimension);
|
5805
|
+
const zDimensionTree = z.array(zDimensionGroup.or(zDimension));
|
5130
5806
|
const zNumFormat = z.object({
|
5131
5807
|
type: z["enum"]([
|
5132
5808
|
'number',
|
@@ -5160,8 +5836,8 @@ const zNumFormat = z.object({
|
|
5160
5836
|
const zMeasure = z.object({
|
5161
5837
|
id: z.string(),
|
5162
5838
|
alias: z.string().optional(),
|
5163
|
-
autoFormat: z.boolean().default(true)
|
5164
|
-
format: zNumFormat["default"]({})
|
5839
|
+
autoFormat: z.boolean().default(true),
|
5840
|
+
format: zNumFormat["default"]({})
|
5165
5841
|
});
|
5166
5842
|
const zMeasureGroup = z.object({
|
5167
5843
|
id: z.string(),
|
@@ -5170,7 +5846,8 @@ const zMeasureGroup = z.object({
|
|
5170
5846
|
return z.array(zMeasureGroup.or(zMeasure)).optional();
|
5171
5847
|
}
|
5172
5848
|
});
|
5173
|
-
const zMeasures = z.array(
|
5849
|
+
const zMeasures = z.array(zMeasure);
|
5850
|
+
const zMeasureTree = z.array(zMeasureGroup.or(zMeasure));
|
5174
5851
|
const zFoldInfo = z.object({
|
5175
5852
|
foldMap: z.record(z.string(), z.string().or(z.undefined())),
|
5176
5853
|
measureId: z.string(),
|
@@ -5368,6 +6045,19 @@ const zLegend = z.object({
|
|
5368
6045
|
const zTooltip = z.object({
|
5369
6046
|
enable: z.boolean().default(true).optional()
|
5370
6047
|
});
|
6048
|
+
const zTableConfig = z.object({
|
6049
|
+
borderColor: z.string().optional(),
|
6050
|
+
bodyFontSize: z.number().optional(),
|
6051
|
+
bodyFontColor: z.string().optional(),
|
6052
|
+
bodyBackgroundColor: z.string().optional(),
|
6053
|
+
hoverBodyBackgroundColor: z.string().optional(),
|
6054
|
+
headerFontSize: z.number().optional(),
|
6055
|
+
headerFontColor: z.string().optional(),
|
6056
|
+
headerBackgroundColor: z.string().optional(),
|
6057
|
+
hoverHeaderBackgroundColor: z.string().optional(),
|
6058
|
+
selectedBorderColor: z.string().optional()
|
6059
|
+
});
|
6060
|
+
const zPivotTableConfig = zTableConfig;
|
5371
6061
|
const zLineConfig = z.object({
|
5372
6062
|
backgroundColor: zBackgroundColor.optional(),
|
5373
6063
|
label: zLabel.optional(),
|
@@ -5456,8 +6146,8 @@ const zFunnelConfig = z.object({
|
|
5456
6146
|
legend: zLegend.optional()
|
5457
6147
|
});
|
5458
6148
|
const zConfig = z.object({
|
5459
|
-
table:
|
5460
|
-
pivotTable:
|
6149
|
+
table: zTableConfig.optional(),
|
6150
|
+
pivotTable: zPivotTableConfig.optional(),
|
5461
6151
|
line: zLineConfig.optional(),
|
5462
6152
|
column: zColumnConfig.optional(),
|
5463
6153
|
columnParallel: zColumnParallelConfig.optional(),
|
@@ -5833,11 +6523,29 @@ const zLocale = z["enum"]([
|
|
5833
6523
|
'zh-CN',
|
5834
6524
|
'en-US'
|
5835
6525
|
]).default('zh-CN');
|
6526
|
+
const zTable = z.object({
|
6527
|
+
chartType: z.literal('table'),
|
6528
|
+
dataset: zDataset.optional(),
|
6529
|
+
dimensions: zDimensions.optional(),
|
6530
|
+
measures: zMeasureTree.optional(),
|
6531
|
+
backgroundColor: zBackgroundColor.optional(),
|
6532
|
+
theme: zTheme.optional(),
|
6533
|
+
locale: zLocale.optional()
|
6534
|
+
});
|
6535
|
+
const zPivotTable = z.object({
|
6536
|
+
chartType: z.literal('pivotTable'),
|
6537
|
+
dataset: zDataset.optional(),
|
6538
|
+
dimensions: zDimensions.optional(),
|
6539
|
+
measures: zMeasures.optional(),
|
6540
|
+
backgroundColor: zBackgroundColor.optional(),
|
6541
|
+
theme: zTheme.optional(),
|
6542
|
+
locale: zLocale.optional()
|
6543
|
+
});
|
5836
6544
|
const zLine = z.object({
|
5837
6545
|
chartType: z.literal('line'),
|
5838
6546
|
dataset: zDataset.optional(),
|
5839
6547
|
dimensions: zDimensions.optional(),
|
5840
|
-
measures:
|
6548
|
+
measures: zMeasureTree.optional(),
|
5841
6549
|
backgroundColor: zBackgroundColor.optional(),
|
5842
6550
|
color: zColor.optional(),
|
5843
6551
|
label: zLabel.optional(),
|
@@ -5859,7 +6567,7 @@ const zColumn = z.object({
|
|
5859
6567
|
chartType: z.literal('column'),
|
5860
6568
|
dataset: zDataset.optional(),
|
5861
6569
|
dimensions: zDimensions.optional(),
|
5862
|
-
measures:
|
6570
|
+
measures: zMeasureTree.optional(),
|
5863
6571
|
backgroundColor: zBackgroundColor.optional(),
|
5864
6572
|
color: zColor.optional(),
|
5865
6573
|
label: zLabel.optional(),
|
@@ -5881,7 +6589,7 @@ const zColumnParallel = z.object({
|
|
5881
6589
|
chartType: z.literal('columnParallel'),
|
5882
6590
|
dataset: zDataset.optional(),
|
5883
6591
|
dimensions: zDimensions.optional(),
|
5884
|
-
measures:
|
6592
|
+
measures: zMeasureTree.optional(),
|
5885
6593
|
backgroundColor: zBackgroundColor.optional(),
|
5886
6594
|
color: zColor.optional(),
|
5887
6595
|
label: zLabel.optional(),
|
@@ -5903,7 +6611,7 @@ const zColumnPercent = z.object({
|
|
5903
6611
|
chartType: z.literal('columnPercent'),
|
5904
6612
|
dataset: zDataset.optional(),
|
5905
6613
|
dimensions: zDimensions.optional(),
|
5906
|
-
measures:
|
6614
|
+
measures: zMeasureTree.optional(),
|
5907
6615
|
backgroundColor: zBackgroundColor.optional(),
|
5908
6616
|
color: zColor.optional(),
|
5909
6617
|
label: zLabel.optional(),
|
@@ -5925,7 +6633,7 @@ const zBar = z.object({
|
|
5925
6633
|
chartType: z.literal('bar'),
|
5926
6634
|
dataset: zDataset.optional(),
|
5927
6635
|
dimensions: zDimensions.optional(),
|
5928
|
-
measures:
|
6636
|
+
measures: zMeasureTree.optional(),
|
5929
6637
|
backgroundColor: zBackgroundColor.optional(),
|
5930
6638
|
color: zColor.optional(),
|
5931
6639
|
label: zLabel.optional(),
|
@@ -5947,7 +6655,7 @@ const zBarParallel = z.object({
|
|
5947
6655
|
chartType: z.literal('barParallel'),
|
5948
6656
|
dataset: zDataset.optional(),
|
5949
6657
|
dimensions: zDimensions.optional(),
|
5950
|
-
measures:
|
6658
|
+
measures: zMeasureTree.optional(),
|
5951
6659
|
backgroundColor: zBackgroundColor.optional(),
|
5952
6660
|
color: zColor.optional(),
|
5953
6661
|
label: zLabel.optional(),
|
@@ -5969,7 +6677,7 @@ const zBarPercent = z.object({
|
|
5969
6677
|
chartType: z.literal('barPercent'),
|
5970
6678
|
dataset: zDataset.optional(),
|
5971
6679
|
dimensions: zDimensions.optional(),
|
5972
|
-
measures:
|
6680
|
+
measures: zMeasureTree.optional(),
|
5973
6681
|
backgroundColor: zBackgroundColor.optional(),
|
5974
6682
|
color: zColor.optional(),
|
5975
6683
|
label: zLabel.optional(),
|
@@ -5991,7 +6699,7 @@ const zArea = z.object({
|
|
5991
6699
|
chartType: z.literal('area'),
|
5992
6700
|
dataset: zDataset.optional(),
|
5993
6701
|
dimensions: zDimensions.optional(),
|
5994
|
-
measures:
|
6702
|
+
measures: zMeasureTree.optional(),
|
5995
6703
|
backgroundColor: zBackgroundColor.optional(),
|
5996
6704
|
color: zColor.optional(),
|
5997
6705
|
label: zLabel.optional(),
|
@@ -6014,7 +6722,7 @@ const zAreaPercent = z.object({
|
|
6014
6722
|
chartType: z.literal('areaPercent'),
|
6015
6723
|
dataset: zDataset.optional(),
|
6016
6724
|
dimensions: zDimensions.optional(),
|
6017
|
-
measures:
|
6725
|
+
measures: zMeasureTree.optional(),
|
6018
6726
|
backgroundColor: zBackgroundColor.optional(),
|
6019
6727
|
color: zColor.optional(),
|
6020
6728
|
label: zLabel.optional(),
|
@@ -6037,7 +6745,7 @@ const zRose = z.object({
|
|
6037
6745
|
chartType: z.literal('rose'),
|
6038
6746
|
dataset: zDataset.optional(),
|
6039
6747
|
dimensions: zDimensions.optional(),
|
6040
|
-
measures:
|
6748
|
+
measures: zMeasureTree.optional(),
|
6041
6749
|
backgroundColor: zBackgroundColor.optional(),
|
6042
6750
|
color: zColor.optional(),
|
6043
6751
|
label: zLabel.optional(),
|
@@ -6050,7 +6758,7 @@ const zRoseParallel = z.object({
|
|
6050
6758
|
chartType: z.literal('roseParallel'),
|
6051
6759
|
dataset: zDataset.optional(),
|
6052
6760
|
dimensions: zDimensions.optional(),
|
6053
|
-
measures:
|
6761
|
+
measures: zMeasureTree.optional(),
|
6054
6762
|
backgroundColor: zBackgroundColor.optional(),
|
6055
6763
|
color: zColor.optional(),
|
6056
6764
|
label: zLabel.optional(),
|
@@ -6063,7 +6771,7 @@ const zPie = z.object({
|
|
6063
6771
|
chartType: z.literal('pie'),
|
6064
6772
|
dataset: zDataset.optional(),
|
6065
6773
|
dimensions: zDimensions.optional(),
|
6066
|
-
measures:
|
6774
|
+
measures: zMeasureTree.optional(),
|
6067
6775
|
backgroundColor: zBackgroundColor.optional(),
|
6068
6776
|
color: zColor.optional(),
|
6069
6777
|
label: zLabel.optional(),
|
@@ -6076,7 +6784,7 @@ const zDonut = z.object({
|
|
6076
6784
|
chartType: z.literal('donut'),
|
6077
6785
|
dataset: zDataset.optional(),
|
6078
6786
|
dimensions: zDimensions.optional(),
|
6079
|
-
measures:
|
6787
|
+
measures: zMeasureTree.optional(),
|
6080
6788
|
backgroundColor: zBackgroundColor.optional(),
|
6081
6789
|
color: zColor.optional(),
|
6082
6790
|
label: zLabel.optional(),
|
@@ -6089,7 +6797,7 @@ const zScatter = z.object({
|
|
6089
6797
|
chartType: z.literal('scatter'),
|
6090
6798
|
dataset: zDataset.optional(),
|
6091
6799
|
dimensions: zDimensions.optional(),
|
6092
|
-
measures:
|
6800
|
+
measures: zMeasureTree.optional(),
|
6093
6801
|
backgroundColor: zBackgroundColor.optional(),
|
6094
6802
|
color: zColor.optional(),
|
6095
6803
|
label: zLabel.optional(),
|
@@ -6110,7 +6818,7 @@ const zFunnel = z.object({
|
|
6110
6818
|
chartType: z.literal('funnel'),
|
6111
6819
|
dataset: zDataset.optional(),
|
6112
6820
|
dimensions: zDimensions.optional(),
|
6113
|
-
measures:
|
6821
|
+
measures: zMeasureTree.optional(),
|
6114
6822
|
backgroundColor: zBackgroundColor.optional(),
|
6115
6823
|
color: zColor.optional(),
|
6116
6824
|
label: zLabel.optional(),
|
@@ -6120,6 +6828,8 @@ const zFunnel = z.object({
|
|
6120
6828
|
locale: zLocale.optional()
|
6121
6829
|
});
|
6122
6830
|
const zVSeed = z.discriminatedUnion('chartType', [
|
6831
|
+
zTable,
|
6832
|
+
zPivotTable,
|
6123
6833
|
zLine,
|
6124
6834
|
zColumn,
|
6125
6835
|
zColumnParallel,
|
@@ -6140,8 +6850,8 @@ const zAdvancedVSeed = z.object({
|
|
6140
6850
|
chartType: zChartType,
|
6141
6851
|
dataset: zDataset,
|
6142
6852
|
datasetReshapeInfo: zDatasetReshapeInfo,
|
6143
|
-
dimensions:
|
6144
|
-
measures:
|
6853
|
+
dimensions: zDimensionTree,
|
6854
|
+
measures: zMeasureTree,
|
6145
6855
|
encoding: zEncoding,
|
6146
6856
|
config: zConfig,
|
6147
6857
|
theme: zTheme,
|
@@ -6150,6 +6860,6 @@ const zAdvancedVSeed = z.object({
|
|
6150
6860
|
annotation: zAnnotation,
|
6151
6861
|
locale: zLocale
|
6152
6862
|
});
|
6153
|
-
export { Builder, FoldMeasureId, FoldMeasureName, FoldMeasureValue, ORIGINAL_DATA, Separator, UnfoldDimensionGroup, UnfoldDimensionGroupId, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeFor1D1M, dataReshapeFor1D2M, dataReshapeFor2D1M, donutAdvancedPipeline, donutSpecPipeline, execPipeline, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, i18n, intl, isPivotChart, isVChart, isVTable, lightTheme, lineAdvancedPipeline, lineSpecPipeline, pieAdvancedPipeline, pieSpecPipeline, registerAll, registerArea, registerAreaPercent, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerLightTheme, registerLine, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, unfoldDimensions, zAdvancedVSeed, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaConfig, zAreaPercent, zAreaPercentConfig, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarConfig, zBarParallel, zBarParallelConfig, zBarPercent, zBarPercentConfig, zBarStyle, zChartType, zColor, zColumn, zColumnConfig, zColumnParallel, zColumnParallelConfig, zColumnPercent, zColumnPercentConfig, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensions, zDonut, zDonutConfig, zDualAxisConfig, zEncoding, zFoldInfo, zFunnel, zFunnelConfig, zLabel, zLegend, zLine, zLineConfig, zLineStyle, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasures, zNumFormat, zPie, zPieConfig, zPointStyle, zRose, zRoseConfig, zRoseParallel, zRoseParallelConfig, zScatter, zScatterConfig, zStackCornerRadius, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
|
6863
|
+
export { Builder, FoldMeasureId, FoldMeasureName, FoldMeasureValue, ORIGINAL_DATA, Separator, UnfoldDimensionGroup, UnfoldDimensionGroupId, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeFor1D1M, dataReshapeFor1D2M, dataReshapeFor2D1M, donutAdvancedPipeline, donutSpecPipeline, execPipeline, findAllDimensions, findAllMeasures, findDimensionById, findFirstDimension, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, i18n, intl, isPivotChart, isPivotTable, isTable, isVChart, isVTable, lightTheme, lineAdvancedPipeline, lineSpecPipeline, pieAdvancedPipeline, pieSpecPipeline, pivotTableAdvancedPipeline, pivotTableSpecPipeline, preorderTraverse, registerAll, registerArea, registerAreaPercent, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerDonut, registerFunnel, registerLightTheme, registerLine, registerPie, registerPivotTable, registerRose, registerRoseParallel, registerScatter, registerTable, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, tableAdvancedPipeline, tableSpecPipeline, unfoldDimensions, zAdvancedVSeed, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaConfig, zAreaPercent, zAreaPercentConfig, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarConfig, zBarParallel, zBarParallelConfig, zBarPercent, zBarPercentConfig, zBarStyle, zChartType, zColor, zColumn, zColumnConfig, zColumnParallel, zColumnParallelConfig, zColumnPercent, zColumnPercentConfig, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensionGroup, zDimensionTree, zDimensions, zDonut, zDonutConfig, zDualAxisConfig, zEncoding, zFoldInfo, zFunnel, zFunnelConfig, zLabel, zLegend, zLine, zLineConfig, zLineStyle, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasureTree, zMeasures, zNumFormat, zPie, zPieConfig, zPivotTable, zPivotTableConfig, zPointStyle, zRose, zRoseConfig, zRoseParallel, zRoseParallelConfig, zScatter, zScatterConfig, zStackCornerRadius, zTable, zTableConfig, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
|
6154
6864
|
|
6155
6865
|
//# sourceMappingURL=index.js.map
|