@visactor/vseed 0.1.1 → 0.1.2

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.
Files changed (52) hide show
  1. package/dist/builder/builder/builder.d.ts +116 -0
  2. package/dist/dataReshape/constant.d.ts +0 -8
  3. package/dist/dataReshape/foldMeasures.d.ts +6 -24
  4. package/dist/index.cjs +495 -266
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +478 -228
  7. package/dist/index.js.map +1 -1
  8. package/dist/pipeline/advanced/chart/pipes/encoding/index.d.ts +1 -0
  9. package/dist/pipeline/advanced/chart/pipes/encoding/line.d.ts +2 -0
  10. package/dist/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +3 -0
  11. package/dist/pipeline/spec/chart/pipes/color/colorAreaStyleFill.d.ts +2 -0
  12. package/dist/pipeline/spec/chart/pipes/color/colorBarStyleFill.d.ts +2 -0
  13. package/dist/pipeline/spec/chart/pipes/color/colorLineStyleFill.d.ts +2 -0
  14. package/dist/pipeline/spec/chart/pipes/color/colorPointStyleFill.d.ts +2 -0
  15. package/dist/pipeline/spec/chart/pipes/color/index.d.ts +6 -0
  16. package/dist/pipeline/spec/chart/pipes/{tooltip/tooltipDisable.d.ts → color/linearColor.d.ts} +1 -1
  17. package/dist/pipeline/spec/chart/pipes/legend/colorLegend.d.ts +2 -0
  18. package/dist/pipeline/spec/chart/pipes/legend/index.d.ts +2 -0
  19. package/dist/pipeline/spec/chart/pipes/legend/pivotColorLegend.d.ts +2 -0
  20. package/dist/pipeline/spec/chart/pipes/tooltip/index.d.ts +0 -1
  21. package/dist/pipeline/utils/dimensions/find.d.ts +0 -2
  22. package/dist/pipeline/utils/dimensions/index.d.ts +0 -1
  23. package/dist/pipeline/utils/dimensions/typeGuard.d.ts +0 -4
  24. package/dist/types/advancedVSeed.d.ts +40 -0
  25. package/dist/types/chartType/area/zArea.d.ts +1 -0
  26. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +1 -0
  27. package/dist/types/chartType/bar/zBar.d.ts +1 -0
  28. package/dist/types/chartType/barParallel/zBarParallel.d.ts +1 -0
  29. package/dist/types/chartType/barPercent/zBarPercent.d.ts +1 -0
  30. package/dist/types/chartType/column/zColumn.d.ts +1 -0
  31. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1 -0
  32. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1 -0
  33. package/dist/types/chartType/donut/zDonut.d.ts +1 -0
  34. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +1 -0
  35. package/dist/types/chartType/funnel/zFunnel.d.ts +2 -0
  36. package/dist/types/chartType/heatmap/zHeatmap.d.ts +2 -0
  37. package/dist/types/chartType/line/zLine.d.ts +1 -0
  38. package/dist/types/chartType/pie/zPie.d.ts +1 -0
  39. package/dist/types/chartType/radar/zRadar.d.ts +1 -0
  40. package/dist/types/chartType/rose/zRose.d.ts +1 -0
  41. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +1 -0
  42. package/dist/types/chartType/scatter/zScatter.d.ts +1 -0
  43. package/dist/types/properties/config/color/color.d.ts +8 -2
  44. package/dist/types/properties/config/config.d.ts +36 -0
  45. package/dist/types/properties/config/legend/legend.d.ts +9 -5
  46. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -0
  47. package/dist/types/properties/datasetReshapeInfo/zDatasetReshapeInfo.d.ts +6 -0
  48. package/dist/types/properties/theme/customTheme.d.ts +36 -0
  49. package/dist/types/zVseed.d.ts +20 -0
  50. package/dist/umd/index.js +495 -252
  51. package/dist/umd/index.js.map +1 -1
  52. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -713,32 +713,6 @@ const autoPivotMeasures = (advancedVSeed, context)=>{
713
713
  }));
714
714
  return result;
715
715
  };
716
- const findDimensionById = (dimensions = [], id)=>{
717
- if (!dimensions) return;
718
- let result;
719
- preorderTraverse(dimensions, (node)=>{
720
- if (!('children' in node)) {
721
- if (node.id === id) {
722
- result = node;
723
- return true;
724
- }
725
- }
726
- return false;
727
- });
728
- return result;
729
- };
730
- const findFirstDimension = (dimensions = [])=>{
731
- if (!dimensions) return;
732
- let result;
733
- preorderTraverse(dimensions, (node)=>{
734
- if (!('children' in node)) {
735
- result = node;
736
- return true;
737
- }
738
- return false;
739
- });
740
- return result;
741
- };
742
716
  const findAllDimensions = (dimensions = [])=>{
743
717
  if (!dimensions) return [];
744
718
  const result = [];
@@ -1194,8 +1168,6 @@ const AngleEncoding = '__Dim_Angle__';
1194
1168
  const DetailEncoding = '__Dim_Detail__';
1195
1169
  const ColorEncoding = '__Dim_Color__';
1196
1170
  const ColorIdEncoding = '__Dim_ColorId__';
1197
- const UnfoldDimensionGroup = '__DimGroup__';
1198
- const UnfoldDimensionGroupId = '__DimGroupID__';
1199
1171
  const autoDimensions_autoDimensions = (advancedVSeed, context)=>{
1200
1172
  const result = {
1201
1173
  ...advancedVSeed
@@ -1235,7 +1207,7 @@ const autoDimensions_autoDimensions = (advancedVSeed, context)=>{
1235
1207
  result.dimensions.push(MeaName);
1236
1208
  return result;
1237
1209
  };
1238
- const encodingForColumn = (advancedVSeed, context)=>{
1210
+ const encodingForLine = (advancedVSeed, context)=>{
1239
1211
  const { vseed } = context;
1240
1212
  const { dimensions } = advancedVSeed;
1241
1213
  if (!dimensions) return advancedVSeed;
@@ -1248,10 +1220,7 @@ const encodingForColumn = (advancedVSeed, context)=>{
1248
1220
  (dimensions[1] || dimensions[0]).id
1249
1221
  ];
1250
1222
  const detail = encoding.detail || [];
1251
- const mergedDetail = unique([
1252
- ...color,
1253
- ...detail
1254
- ]);
1223
+ const mergedDetail = 0 === detail.length ? dimensions.map((d)=>d.id).filter((id)=>!x.includes(id)) : encoding.detail;
1255
1224
  return {
1256
1225
  ...advancedVSeed,
1257
1226
  encoding: {
@@ -1283,11 +1252,21 @@ const pivotAdapter = (pipeline, pivotPipeline)=>(advancedVSeed, context)=>{
1283
1252
  if (usePivotChart) return execPipeline(pivotPipeline, context, advancedVSeed);
1284
1253
  return execPipeline(pipeline, context, advancedVSeed);
1285
1254
  };
1286
- const foldMeasures = (dataset, measures, measureId = FoldMeasureId, measureName = FoldMeasureName, measureValue = FoldMeasureValue)=>{
1255
+ const foldMeasures = (dataset, measures, encoding, options)=>{
1256
+ const { measureId = FoldMeasureId, measureName = FoldMeasureName, measureValue = FoldMeasureValue } = options || {};
1257
+ const colorMeasureId = encoding?.color?.length === 1 && measures.some((m)=>m.id === encoding?.color?.[0]) ? encoding?.color?.[0] : void 0;
1287
1258
  const foldInfo = {
1288
1259
  measureId,
1289
1260
  measureName,
1290
1261
  measureValue,
1262
+ colorRange: [
1263
+ 0,
1264
+ 1
1265
+ ],
1266
+ measureRange: [
1267
+ 0,
1268
+ 1
1269
+ ],
1291
1270
  foldMap: {}
1292
1271
  };
1293
1272
  const result = new Array(dataset.length * measures.length);
@@ -1304,6 +1283,19 @@ const foldMeasures = (dataset, measures, measureId = FoldMeasureId, measureName
1304
1283
  datum[measureId] = id;
1305
1284
  datum[measureName] = alias || id;
1306
1285
  datum[measureValue] = dataset[i][id];
1286
+ if (colorMeasureId) {
1287
+ const value = datum[ORIGINAL_DATA][colorMeasureId];
1288
+ datum[ColorEncoding] = value;
1289
+ datum[ColorIdEncoding] = colorMeasureId;
1290
+ foldInfo.colorRange = [
1291
+ Math.min(foldInfo.colorRange[0] || 1 / 0, Number(value)),
1292
+ Math.max(foldInfo.colorRange[1] || -1 / 0, Number(value))
1293
+ ];
1294
+ }
1295
+ foldInfo.measureRange = [
1296
+ Math.min(foldInfo.measureRange[0] || 1 / 0, Number(datum[id])),
1297
+ Math.max(foldInfo.measureRange[1] || -1 / 0, Number(datum[id]))
1298
+ ];
1307
1299
  foldInfo.foldMap[id] = alias;
1308
1300
  result[index++] = datum;
1309
1301
  }
@@ -1339,7 +1331,7 @@ const unfoldDimensions = (dataset, dimensions, encoding, options)=>{
1339
1331
  applyEncoding(YEncoding, yDimensions, datum, separator);
1340
1332
  applyEncoding(ColorEncoding, colorDimensions, datum, separator);
1341
1333
  applyEncoding(DetailEncoding, detailDimensions, datum, separator);
1342
- if (!datum[ColorEncoding]) continue;
1334
+ if (!colorDimensions.length || !datum[ColorEncoding]) continue;
1343
1335
  const measureId = String(datum[foldMeasureId]);
1344
1336
  const colorItem = String(datum[ColorEncoding]);
1345
1337
  const colorId = colorItemAsId ? colorItem : measureId ? [
@@ -1360,29 +1352,13 @@ const unfoldDimensions = (dataset, dimensions, encoding, options)=>{
1360
1352
  const applyEncoding = (encoding, dimensions, datum, separator)=>{
1361
1353
  if (encoding && dimensions.length) datum[encoding] = dimensions.map((dim)=>String(datum[dim.id])).join(separator);
1362
1354
  };
1363
- const emptyReshapeResult = {
1364
- dataset: [],
1365
- foldInfo: {
1366
- foldMap: {},
1367
- measureId: '',
1368
- measureName: '',
1369
- measureValue: ''
1370
- },
1371
- unfoldInfo: {
1372
- encodingAngle: AngleEncoding,
1373
- encodingX: XEncoding,
1374
- encodingY: YEncoding,
1375
- encodingDetail: DetailEncoding,
1376
- encodingColor: ColorEncoding,
1377
- encodingColorId: ColorIdEncoding,
1378
- colorItems: [],
1379
- colorIdMap: {}
1380
- }
1381
- };
1382
1355
  const dataReshapeByEncoding = (dataset, dimensions, measures, encoding, options)=>{
1383
1356
  const { foldMeasureId = FoldMeasureId, foldMeasureName = FoldMeasureName, foldMeasureValue = FoldMeasureValue, colorItemAsId = false } = options || {};
1384
- if (0 === dimensions.length && 0 === measures.length) return emptyReshapeResult;
1385
- const { dataset: foldedDataset, foldInfo } = foldMeasures(dataset, measures, foldMeasureId, foldMeasureName, foldMeasureValue);
1357
+ const { dataset: foldedDataset, foldInfo } = foldMeasures(dataset, measures, encoding, {
1358
+ measureId: foldMeasureId,
1359
+ measureName: foldMeasureName,
1360
+ measureValue: foldMeasureValue
1361
+ });
1386
1362
  const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, dimensions, encoding, {
1387
1363
  foldMeasureId,
1388
1364
  separator: Separator,
@@ -1648,7 +1624,7 @@ const lineAdvancedPipeline = [
1648
1624
  initAdvancedVSeed_initAdvancedVSeed,
1649
1625
  autoMeasures_autoMeasures,
1650
1626
  autoDimensions_autoDimensions,
1651
- encodingForColumn,
1627
+ encodingForLine,
1652
1628
  pivotAdapter([
1653
1629
  reshapeWithEncoding
1654
1630
  ], [
@@ -1661,6 +1637,17 @@ const lineAdvancedPipeline = [
1661
1637
  markStyle_markStyle,
1662
1638
  annotation_annotation
1663
1639
  ];
1640
+ const colorAdapter = (ordinalPipe, linearPipe)=>(spec, context)=>{
1641
+ const { advancedVSeed } = context;
1642
+ if (isLinearColor(advancedVSeed)) return linearPipe(spec, context);
1643
+ return ordinalPipe(spec, context);
1644
+ };
1645
+ const isLinearColor = (advancedVSeed)=>{
1646
+ const { encoding, measures } = advancedVSeed;
1647
+ const measureIdList = findAllMeasures(measures).map((measure)=>measure.id);
1648
+ const { color } = encoding;
1649
+ return color?.length === 1 && measureIdList.includes(color[0]);
1650
+ };
1664
1651
  const initLine = (spec, context)=>{
1665
1652
  const result = {
1666
1653
  ...spec
@@ -1672,7 +1659,7 @@ const initLine = (spec, context)=>{
1672
1659
  result.direction = 'vertical';
1673
1660
  result.xField = unfoldInfo.encodingX;
1674
1661
  result.yField = foldInfo.measureValue;
1675
- result.seriesField = unfoldInfo.encodingColorId;
1662
+ result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
1676
1663
  result.padding = 0;
1677
1664
  result.region = [
1678
1665
  {
@@ -1733,6 +1720,31 @@ const createSpecifiedForColorMapping = (colorMapping, colorIdMap, colorItems)=>{
1733
1720
  ...accurateMap
1734
1721
  };
1735
1722
  };
1723
+ const linearColor = (spec, context)=>{
1724
+ const result = {
1725
+ ...spec
1726
+ };
1727
+ const { advancedVSeed } = context;
1728
+ const { datasetReshapeInfo, chartType } = advancedVSeed;
1729
+ const { unfoldInfo, id } = datasetReshapeInfo[0];
1730
+ const baseConfig = advancedVSeed.config[chartType];
1731
+ if (!baseConfig || !baseConfig.color) return result;
1732
+ const { color } = baseConfig;
1733
+ const { colorScheme, linearColorScheme } = color;
1734
+ result.color = {
1735
+ type: 'linear',
1736
+ range: linearColorScheme || colorScheme || [],
1737
+ domain: [
1738
+ {
1739
+ dataId: id,
1740
+ fields: [
1741
+ unfoldInfo.encodingColor
1742
+ ]
1743
+ }
1744
+ ]
1745
+ };
1746
+ return result;
1747
+ };
1736
1748
  const background_backgroundColor = (spec, context)=>{
1737
1749
  const result = {
1738
1750
  ...spec
@@ -2240,6 +2252,95 @@ const discreteLegend = (spec, context)=>{
2240
2252
  };
2241
2253
  return result;
2242
2254
  };
2255
+ const colorLegend = (spec, context)=>{
2256
+ const result = {
2257
+ ...spec
2258
+ };
2259
+ const { advancedVSeed } = context;
2260
+ const { datasetReshapeInfo, chartType } = advancedVSeed;
2261
+ const { unfoldInfo } = datasetReshapeInfo[0];
2262
+ const baseConfig = advancedVSeed.config[chartType];
2263
+ if (!baseConfig || !baseConfig.legend) return result;
2264
+ const { legend } = baseConfig;
2265
+ const { enable, position = 'bottom', labelFontColor, labelFontSize = 12, labelFontWeight } = legend || {};
2266
+ const orient = [
2267
+ 'bottom',
2268
+ 'bottomLeft',
2269
+ 'bottomRight',
2270
+ 'bl',
2271
+ 'br'
2272
+ ].includes(position) ? 'bottom' : [
2273
+ 'top',
2274
+ 'topLeft',
2275
+ 'topRight',
2276
+ 'tl',
2277
+ 'tr'
2278
+ ].includes(position) ? 'top' : [
2279
+ 'left',
2280
+ 'leftTop',
2281
+ 'leftBottom',
2282
+ 'lt',
2283
+ 'lb'
2284
+ ].includes(position) ? 'left' : 'right';
2285
+ const legendPosition = [
2286
+ 'topLeft',
2287
+ 'bottomLeft',
2288
+ 'leftTop',
2289
+ 'rightTop',
2290
+ 'lt',
2291
+ 'rt',
2292
+ 'tl',
2293
+ 'bl'
2294
+ ].includes(position) ? 'start' : [
2295
+ 'topRight',
2296
+ 'bottomRight',
2297
+ 'leftBottom',
2298
+ 'rightBottom',
2299
+ 'lb',
2300
+ 'rb',
2301
+ 'rt',
2302
+ 'br'
2303
+ ].includes(position) ? 'end' : 'middle';
2304
+ result.legends = {
2305
+ type: 'color',
2306
+ visible: enable,
2307
+ orient,
2308
+ position: legendPosition,
2309
+ padding: 0,
2310
+ field: unfoldInfo.encodingColor,
2311
+ maxWidth: '30%',
2312
+ startText: {
2313
+ visible: true,
2314
+ style: {
2315
+ fill: labelFontColor,
2316
+ fontSize: labelFontSize,
2317
+ fontWeight: labelFontWeight
2318
+ }
2319
+ },
2320
+ endText: {
2321
+ visible: true,
2322
+ style: {
2323
+ fill: labelFontColor,
2324
+ fontSize: labelFontSize,
2325
+ fontWeight: labelFontWeight
2326
+ }
2327
+ }
2328
+ };
2329
+ return result;
2330
+ };
2331
+ const colorPointStyleFill = (stylePipe)=>(spec, context)=>{
2332
+ const result = stylePipe(spec, context);
2333
+ const { advancedVSeed } = context;
2334
+ const { datasetReshapeInfo } = advancedVSeed;
2335
+ const { unfoldInfo } = datasetReshapeInfo[0];
2336
+ if (isLinearColor(advancedVSeed)) {
2337
+ if (result?.point?.style) result.point.style.fill = {
2338
+ field: unfoldInfo.encodingColor,
2339
+ scale: 'color'
2340
+ };
2341
+ }
2342
+ return result;
2343
+ };
2243
2344
  const selector_selector = (vchartDatum, selector)=>{
2244
2345
  if (!selector) return true;
2245
2346
  const selectorMode = 'And';
@@ -2336,7 +2437,10 @@ const pointStyle_pointStyle = (spec, context)=>{
2336
2437
  const { markStyle } = advancedVSeed;
2337
2438
  const { pointStyle } = markStyle;
2338
2439
  const result = {
2339
- ...spec
2440
+ ...spec,
2441
+ point: {
2442
+ style: {}
2443
+ }
2340
2444
  };
2341
2445
  if (!pointStyle) return result;
2342
2446
  const pointStyles = Array.isArray(pointStyle) ? pointStyle : [
@@ -2380,6 +2484,7 @@ const pointStyle_pointStyle = (spec, context)=>{
2380
2484
  return {
2381
2485
  ...result,
2382
2486
  point: {
2487
+ ...result.point,
2383
2488
  state: {
2384
2489
  ...customMap
2385
2490
  }
@@ -2435,15 +2540,31 @@ const pointStateHover = (spec, context)=>{
2435
2540
  };
2436
2541
  return result;
2437
2542
  };
2543
+ const colorLineStyleFill = (stylePipe)=>(spec, context)=>{
2544
+ const result = stylePipe(spec, context);
2545
+ const { advancedVSeed } = context;
2546
+ const { datasetReshapeInfo } = advancedVSeed;
2547
+ const { unfoldInfo } = datasetReshapeInfo[0];
2548
+ if (isLinearColor(advancedVSeed)) {
2549
+ if (result?.line?.style) result.line.style.stroke = {
2550
+ field: unfoldInfo.encodingColor,
2551
+ scale: 'color'
2552
+ };
2553
+ }
2554
+ return result;
2555
+ };
2438
2556
  const lineStyle_lineStyle = (spec, context)=>{
2439
2557
  const { advancedVSeed } = context;
2440
2558
  const { markStyle, datasetReshapeInfo, dataset } = advancedVSeed;
2441
2559
  const { unfoldInfo } = datasetReshapeInfo[0];
2442
2560
  const { lineStyle } = markStyle;
2443
- if (!lineStyle) return spec;
2444
2561
  const result = {
2445
- ...spec
2562
+ ...spec,
2563
+ line: {
2564
+ style: {}
2565
+ }
2446
2566
  };
2567
+ if (!lineStyle) return result;
2447
2568
  const lineStyles = Array.isArray(lineStyle) ? lineStyle : [
2448
2569
  lineStyle
2449
2570
  ];
@@ -2487,6 +2608,7 @@ const lineStyle_lineStyle = (spec, context)=>{
2487
2608
  return {
2488
2609
  ...result,
2489
2610
  line: {
2611
+ ...result.line,
2490
2612
  state: {
2491
2613
  ...customMap
2492
2614
  }
@@ -3259,7 +3381,7 @@ const pivotAdapter_pivotAdapter = (pipeline, pivotPipeline)=>(spec, context)=>{
3259
3381
  };
3260
3382
  const line_line = [
3261
3383
  initLine,
3262
- color_color,
3384
+ colorAdapter(color_color, linearColor),
3263
3385
  background_backgroundColor,
3264
3386
  datasetXY,
3265
3387
  progressive,
@@ -3268,10 +3390,10 @@ const line_line = [
3268
3390
  label_label,
3269
3391
  tooltip_tooltip,
3270
3392
  verticalCrosshairLine,
3271
- discreteLegend,
3272
- pointStyle_pointStyle,
3393
+ colorAdapter(discreteLegend, colorLegend),
3394
+ colorPointStyleFill(pointStyle_pointStyle),
3273
3395
  pointStateDimensionHover,
3274
- lineStyle_lineStyle,
3396
+ colorLineStyleFill(lineStyle_lineStyle),
3275
3397
  annotationPoint_annotationPoint,
3276
3398
  annotationVerticalLine_annotationVerticalLine,
3277
3399
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3312,6 +3434,48 @@ const registerLine = ()=>{
3312
3434
  Builder._advancedPipelineMap.line = lineAdvancedPipeline;
3313
3435
  Builder._specPipelineMap.line = lineSpecPipeline;
3314
3436
  };
3437
+ const encodingForColumn = (advancedVSeed, context)=>{
3438
+ const { vseed } = context;
3439
+ const { dimensions } = advancedVSeed;
3440
+ if (!dimensions) return advancedVSeed;
3441
+ const encoding = vseed.encoding;
3442
+ if (encoding) {
3443
+ const x = encoding.x || [
3444
+ dimensions[0].id
3445
+ ];
3446
+ const color = encoding.color || [
3447
+ (dimensions[1] || dimensions[0]).id
3448
+ ];
3449
+ const detail = encoding.detail || [];
3450
+ const mergedDetail = 0 === detail.length ? unique([
3451
+ ...color,
3452
+ ...detail
3453
+ ]) : detail;
3454
+ return {
3455
+ ...advancedVSeed,
3456
+ encoding: {
3457
+ ...encoding,
3458
+ x,
3459
+ color,
3460
+ detail: mergedDetail
3461
+ }
3462
+ };
3463
+ }
3464
+ const onlyMeasureName = 1 === dimensions.length && dimensions.find((item)=>item.id === MeasureName);
3465
+ const mergedEncoding = {
3466
+ x: dimensions.slice(0, 1).map((item)=>item.id),
3467
+ color: dimensions.slice(onlyMeasureName ? 0 : 1).map((item)=>item.id),
3468
+ detail: dimensions.slice(onlyMeasureName ? 0 : 1).map((item)=>item.id),
3469
+ tooltip: dimensions.map((item)=>item.id),
3470
+ label: [],
3471
+ row: [],
3472
+ column: []
3473
+ };
3474
+ return {
3475
+ ...advancedVSeed,
3476
+ encoding: mergedEncoding
3477
+ };
3478
+ };
3315
3479
  const columnAdvancedPipeline = [
3316
3480
  initAdvancedVSeed_initAdvancedVSeed,
3317
3481
  autoMeasures_autoMeasures,
@@ -3354,9 +3518,14 @@ const stackCornerRadius_stackCornerRadius = (spec, context)=>{
3354
3518
  const { advancedVSeed, vseed } = context;
3355
3519
  const { chartType } = vseed;
3356
3520
  const stackCornerRadius = advancedVSeed.config?.[chartType]?.stackCornerRadius;
3521
+ const { datasetReshapeInfo } = advancedVSeed;
3522
+ const { foldInfo } = datasetReshapeInfo[0];
3357
3523
  return {
3358
3524
  ...spec,
3359
- stackCornerRadius
3525
+ stackCornerRadius: (_, datum)=>{
3526
+ if (datum[foldInfo.measureValue] > 0) return stackCornerRadius;
3527
+ return 0;
3528
+ }
3360
3529
  };
3361
3530
  };
3362
3531
  const stackInverse = (spec)=>{
@@ -3406,6 +3575,19 @@ const verticalCrosshairRect = (spec, context)=>{
3406
3575
  };
3407
3576
  return result;
3408
3577
  };
3578
+ const colorBarStyleFill = (stylePipe)=>(spec, context)=>{
3579
+ const result = stylePipe(spec, context);
3580
+ const { advancedVSeed } = context;
3581
+ const { datasetReshapeInfo } = advancedVSeed;
3582
+ const { unfoldInfo } = datasetReshapeInfo[0];
3583
+ if (isLinearColor(advancedVSeed)) {
3584
+ if (result?.bar?.style) result.bar.style.fill = {
3585
+ field: unfoldInfo.encodingColor,
3586
+ scale: 'color'
3587
+ };
3588
+ }
3589
+ return result;
3590
+ };
3409
3591
  const barStyle_barStyle = (spec, context)=>{
3410
3592
  const { advancedVSeed } = context;
3411
3593
  const { markStyle, dataset = [] } = advancedVSeed;
@@ -3601,11 +3783,98 @@ const annotationAreaBand = (spec, context)=>{
3601
3783
  markArea: markArea
3602
3784
  };
3603
3785
  };
3786
+ const pivotColorLegend = (spec, context)=>{
3787
+ const result = {
3788
+ ...spec
3789
+ };
3790
+ const { advancedVSeed } = context;
3791
+ const { chartType } = advancedVSeed;
3792
+ const baseConfig = advancedVSeed.config[chartType];
3793
+ if (!baseConfig || !baseConfig.legend) return result;
3794
+ const { datasetReshapeInfo } = advancedVSeed;
3795
+ const max = Math.max(...datasetReshapeInfo.map((d)=>d.foldInfo.colorRange[1]));
3796
+ const min = Math.min(...datasetReshapeInfo.map((d)=>d.foldInfo.colorRange[0]));
3797
+ const { legend, color } = baseConfig;
3798
+ const { colorScheme, linearColorScheme } = color;
3799
+ const { enable, position = 'bottom', labelFontColor, labelFontSize = 12, labelFontWeight = 400 } = legend || {};
3800
+ const orient = [
3801
+ 'bottom',
3802
+ 'bottomLeft',
3803
+ 'bottomRight',
3804
+ 'bl',
3805
+ 'br'
3806
+ ].includes(position) ? 'bottom' : [
3807
+ 'top',
3808
+ 'topLeft',
3809
+ 'topRight',
3810
+ 'tl',
3811
+ 'tr'
3812
+ ].includes(position) ? 'top' : [
3813
+ 'left',
3814
+ 'leftTop',
3815
+ 'leftBottom',
3816
+ 'lt',
3817
+ 'lb'
3818
+ ].includes(position) ? 'left' : 'right';
3819
+ const legendPosition = [
3820
+ 'topLeft',
3821
+ 'bottomLeft',
3822
+ 'leftTop',
3823
+ 'rightTop',
3824
+ 'lt',
3825
+ 'rt',
3826
+ 'tl',
3827
+ 'bl'
3828
+ ].includes(position) ? 'start' : [
3829
+ 'topRight',
3830
+ 'bottomRight',
3831
+ 'leftBottom',
3832
+ 'rightBottom',
3833
+ 'lb',
3834
+ 'rb',
3835
+ 'rt',
3836
+ 'br'
3837
+ ].includes(position) ? 'end' : 'middle';
3838
+ const legends = {
3839
+ visible: enable,
3840
+ type: 'color',
3841
+ orient,
3842
+ position: legendPosition,
3843
+ colors: linearColorScheme || colorScheme || [],
3844
+ value: [
3845
+ min,
3846
+ max
3847
+ ],
3848
+ min: min,
3849
+ max: max,
3850
+ maxWidth: '30%',
3851
+ startText: {
3852
+ visible: true,
3853
+ style: {
3854
+ fill: labelFontColor,
3855
+ fontSize: labelFontSize,
3856
+ fontWeight: labelFontWeight
3857
+ }
3858
+ },
3859
+ endText: {
3860
+ visible: true,
3861
+ style: {
3862
+ fill: labelFontColor,
3863
+ fontSize: labelFontSize,
3864
+ fontWeight: labelFontWeight
3865
+ }
3866
+ }
3867
+ };
3868
+ return {
3869
+ ...result,
3870
+ legends
3871
+ };
3872
+ };
3604
3873
  const column = [
3605
3874
  initColumn,
3606
3875
  stackCornerRadius_stackCornerRadius,
3607
3876
  stackInverse,
3608
- color_color,
3877
+ colorAdapter(color_color, linearColor),
3609
3878
  background_backgroundColor,
3610
3879
  datasetXY,
3611
3880
  progressive,
@@ -3614,8 +3883,8 @@ const column = [
3614
3883
  label_label,
3615
3884
  tooltip_tooltip,
3616
3885
  verticalCrosshairRect,
3617
- discreteLegend,
3618
- barStyle_barStyle,
3886
+ colorAdapter(discreteLegend, colorLegend),
3887
+ colorBarStyleFill(barStyle_barStyle),
3619
3888
  annotationPoint_annotationPoint,
3620
3889
  annotationVerticalLine_annotationVerticalLine,
3621
3890
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3630,7 +3899,7 @@ const pivotColumn = [
3630
3899
  initColumn,
3631
3900
  stackCornerRadius_stackCornerRadius,
3632
3901
  stackInverse,
3633
- color_color,
3902
+ colorAdapter(color_color, linearColor),
3634
3903
  background_backgroundColor,
3635
3904
  datasetXY,
3636
3905
  progressive,
@@ -3639,7 +3908,7 @@ const pivotColumn = [
3639
3908
  label_label,
3640
3909
  tooltip_tooltip,
3641
3910
  verticalCrosshairRect,
3642
- barStyle_barStyle,
3911
+ colorBarStyleFill(barStyle_barStyle),
3643
3912
  annotationPoint_annotationPoint,
3644
3913
  annotationVerticalLine_annotationVerticalLine,
3645
3914
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3647,7 +3916,7 @@ const pivotColumn = [
3647
3916
  ]),
3648
3917
  pivotRowDimensions,
3649
3918
  pivotColumnDimensions,
3650
- pivotDiscreteLegend
3919
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
3651
3920
  ];
3652
3921
  const columnSpecPipeline = [
3653
3922
  pivotAdapter_pivotAdapter(column, pivotColumn)
@@ -3703,7 +3972,7 @@ const initColumnParallel = (spec, context)=>{
3703
3972
  const columnParallel = [
3704
3973
  initColumnParallel,
3705
3974
  stackCornerRadius_stackCornerRadius,
3706
- color_color,
3975
+ colorAdapter(color_color, linearColor),
3707
3976
  background_backgroundColor,
3708
3977
  datasetXY,
3709
3978
  progressive,
@@ -3711,9 +3980,9 @@ const columnParallel = [
3711
3980
  yLinear,
3712
3981
  label_label,
3713
3982
  tooltip_tooltip,
3714
- discreteLegend,
3983
+ colorAdapter(discreteLegend, colorLegend),
3715
3984
  verticalCrosshairRect,
3716
- barStyle_barStyle,
3985
+ colorBarStyleFill(barStyle_barStyle),
3717
3986
  annotationPoint_annotationPoint,
3718
3987
  annotationVerticalLine_annotationVerticalLine,
3719
3988
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3727,7 +3996,7 @@ const pivotColumnParallel = [
3727
3996
  pivotIndicators_pivotIndicators([
3728
3997
  initColumnParallel,
3729
3998
  stackCornerRadius_stackCornerRadius,
3730
- color_color,
3999
+ colorAdapter(color_color, linearColor),
3731
4000
  background_backgroundColor,
3732
4001
  datasetXY,
3733
4002
  progressive,
@@ -3736,7 +4005,7 @@ const pivotColumnParallel = [
3736
4005
  label_label,
3737
4006
  tooltip_tooltip,
3738
4007
  verticalCrosshairRect,
3739
- barStyle_barStyle,
4008
+ colorBarStyleFill(barStyle_barStyle),
3740
4009
  annotationPoint_annotationPoint,
3741
4010
  annotationVerticalLine_annotationVerticalLine,
3742
4011
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3744,7 +4013,7 @@ const pivotColumnParallel = [
3744
4013
  ]),
3745
4014
  pivotRowDimensions,
3746
4015
  pivotColumnDimensions,
3747
- pivotDiscreteLegend
4016
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
3748
4017
  ];
3749
4018
  const columnParallelSpecPipeline = [
3750
4019
  pivotAdapter_pivotAdapter(columnParallel, pivotColumnParallel)
@@ -3781,7 +4050,7 @@ const columnPercent = [
3781
4050
  initColumn,
3782
4051
  stackCornerRadius_stackCornerRadius,
3783
4052
  stackInverse,
3784
- color_color,
4053
+ colorAdapter(color_color, linearColor),
3785
4054
  background_backgroundColor,
3786
4055
  percent,
3787
4056
  datasetXY,
@@ -3790,9 +4059,9 @@ const columnPercent = [
3790
4059
  yLinear,
3791
4060
  label_label,
3792
4061
  tooltip_tooltip,
4062
+ colorAdapter(discreteLegend, colorLegend),
3793
4063
  verticalCrosshairRect,
3794
- discreteLegend,
3795
- barStyle_barStyle,
4064
+ colorBarStyleFill(barStyle_barStyle),
3796
4065
  annotationPoint_annotationPoint,
3797
4066
  annotationVerticalLine_annotationVerticalLine,
3798
4067
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3807,7 +4076,7 @@ const pivotColumnPercent = [
3807
4076
  initColumn,
3808
4077
  stackCornerRadius_stackCornerRadius,
3809
4078
  stackInverse,
3810
- color_color,
4079
+ colorAdapter(color_color, linearColor),
3811
4080
  percent,
3812
4081
  background_backgroundColor,
3813
4082
  datasetXY,
@@ -3817,7 +4086,7 @@ const pivotColumnPercent = [
3817
4086
  label_label,
3818
4087
  tooltip_tooltip,
3819
4088
  verticalCrosshairRect,
3820
- barStyle_barStyle,
4089
+ colorBarStyleFill(barStyle_barStyle),
3821
4090
  annotationPoint_annotationPoint,
3822
4091
  annotationVerticalLine_annotationVerticalLine,
3823
4092
  annotationHorizontalLine_annotationHorizontalLine,
@@ -3825,7 +4094,7 @@ const pivotColumnPercent = [
3825
4094
  ]),
3826
4095
  pivotRowDimensions,
3827
4096
  pivotColumnDimensions,
3828
- pivotDiscreteLegend
4097
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
3829
4098
  ];
3830
4099
  const columnPercentSpecPipeline = [
3831
4100
  pivotAdapter_pivotAdapter(columnPercent, pivotColumnPercent)
@@ -3847,10 +4116,10 @@ const encodingForBar = (advancedVSeed, context)=>{
3847
4116
  (dimensions[1] || dimensions[0]).id
3848
4117
  ];
3849
4118
  const detail = encoding.detail || [];
3850
- const mergedDetail = unique([
4119
+ const mergedDetail = 0 === detail.length ? unique([
3851
4120
  ...color,
3852
4121
  ...detail
3853
- ]);
4122
+ ]) : detail;
3854
4123
  return {
3855
4124
  ...advancedVSeed,
3856
4125
  encoding: {
@@ -4194,7 +4463,7 @@ const horizontalCrosshairRect = (spec, context)=>{
4194
4463
  const bar = [
4195
4464
  initBar,
4196
4465
  stackCornerRadius_stackCornerRadius,
4197
- color_color,
4466
+ colorAdapter(color_color, linearColor),
4198
4467
  background_backgroundColor,
4199
4468
  datasetYX,
4200
4469
  progressive,
@@ -4202,9 +4471,9 @@ const bar = [
4202
4471
  yBand,
4203
4472
  label_label,
4204
4473
  tooltip_tooltip,
4474
+ colorAdapter(discreteLegend, colorLegend),
4205
4475
  horizontalCrosshairRect,
4206
- discreteLegend,
4207
- barStyle_barStyle,
4476
+ colorBarStyleFill(barStyle_barStyle),
4208
4477
  annotationPoint_annotationPoint,
4209
4478
  annotationVerticalLine_annotationVerticalLine,
4210
4479
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4218,7 +4487,7 @@ const pivotBar = [
4218
4487
  pivotIndicators_pivotIndicators([
4219
4488
  initBar,
4220
4489
  stackCornerRadius_stackCornerRadius,
4221
- color_color,
4490
+ colorAdapter(color_color, linearColor),
4222
4491
  background_backgroundColor,
4223
4492
  datasetYX,
4224
4493
  progressive,
@@ -4227,8 +4496,8 @@ const pivotBar = [
4227
4496
  label_label,
4228
4497
  label_label,
4229
4498
  tooltip_tooltip,
4499
+ colorBarStyleFill(barStyle_barStyle),
4230
4500
  horizontalCrosshairRect,
4231
- barStyle_barStyle,
4232
4501
  annotationPoint_annotationPoint,
4233
4502
  annotationVerticalLine_annotationVerticalLine,
4234
4503
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4236,7 +4505,7 @@ const pivotBar = [
4236
4505
  ]),
4237
4506
  pivotRowDimensions,
4238
4507
  pivotColumnDimensions,
4239
- pivotDiscreteLegend
4508
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
4240
4509
  ];
4241
4510
  const barSpecPipeline = [
4242
4511
  pivotAdapter_pivotAdapter(bar, pivotBar)
@@ -4292,7 +4561,7 @@ const initBarParallel = (spec, context)=>{
4292
4561
  const barParallel = [
4293
4562
  initBarParallel,
4294
4563
  stackCornerRadius_stackCornerRadius,
4295
- color_color,
4564
+ colorAdapter(color_color, linearColor),
4296
4565
  background_backgroundColor,
4297
4566
  datasetYX,
4298
4567
  progressive,
@@ -4300,9 +4569,9 @@ const barParallel = [
4300
4569
  yBand,
4301
4570
  label_label,
4302
4571
  tooltip_tooltip,
4572
+ colorAdapter(discreteLegend, colorLegend),
4303
4573
  horizontalCrosshairRect,
4304
- discreteLegend,
4305
- barStyle_barStyle,
4574
+ colorBarStyleFill(barStyle_barStyle),
4306
4575
  annotationPoint_annotationPoint,
4307
4576
  annotationVerticalLine_annotationVerticalLine,
4308
4577
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4316,15 +4585,15 @@ const pivotBarParallel = [
4316
4585
  pivotIndicators_pivotIndicators([
4317
4586
  initBarParallel,
4318
4587
  stackCornerRadius_stackCornerRadius,
4319
- color_color,
4588
+ colorAdapter(color_color, linearColor),
4320
4589
  background_backgroundColor,
4321
4590
  datasetYX,
4322
4591
  xLinear,
4323
4592
  yBand,
4324
4593
  label_label,
4325
4594
  tooltip_tooltip,
4595
+ colorBarStyleFill(barStyle_barStyle),
4326
4596
  horizontalCrosshairRect,
4327
- barStyle_barStyle,
4328
4597
  annotationPoint_annotationPoint,
4329
4598
  annotationVerticalLine_annotationVerticalLine,
4330
4599
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4332,7 +4601,7 @@ const pivotBarParallel = [
4332
4601
  ]),
4333
4602
  pivotRowDimensions,
4334
4603
  pivotColumnDimensions,
4335
- pivotDiscreteLegend
4604
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
4336
4605
  ];
4337
4606
  const barParallelSpecPipeline = [
4338
4607
  pivotAdapter_pivotAdapter(barParallel, pivotBarParallel)
@@ -4361,7 +4630,7 @@ const barPercentAdvancedPipeline = [
4361
4630
  const barPercent = [
4362
4631
  initBar,
4363
4632
  stackCornerRadius_stackCornerRadius,
4364
- color_color,
4633
+ colorAdapter(color_color, linearColor),
4365
4634
  background_backgroundColor,
4366
4635
  percent,
4367
4636
  datasetYX,
@@ -4370,9 +4639,9 @@ const barPercent = [
4370
4639
  yBand,
4371
4640
  label_label,
4372
4641
  tooltip_tooltip,
4642
+ colorAdapter(discreteLegend, colorLegend),
4373
4643
  horizontalCrosshairRect,
4374
- discreteLegend,
4375
- barStyle_barStyle,
4644
+ colorBarStyleFill(barStyle_barStyle),
4376
4645
  annotationPoint_annotationPoint,
4377
4646
  annotationVerticalLine_annotationVerticalLine,
4378
4647
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4386,7 +4655,7 @@ const pivotBarPercent = [
4386
4655
  pivotIndicators_pivotIndicators([
4387
4656
  initBar,
4388
4657
  stackCornerRadius_stackCornerRadius,
4389
- color_color,
4658
+ colorAdapter(color_color, linearColor),
4390
4659
  background_backgroundColor,
4391
4660
  percent,
4392
4661
  datasetYX,
@@ -4394,8 +4663,8 @@ const pivotBarPercent = [
4394
4663
  xLinear,
4395
4664
  label_label,
4396
4665
  tooltip_tooltip,
4666
+ colorBarStyleFill(barStyle_barStyle),
4397
4667
  horizontalCrosshairRect,
4398
- barStyle_barStyle,
4399
4668
  annotationPoint_annotationPoint,
4400
4669
  annotationVerticalLine_annotationVerticalLine,
4401
4670
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4403,7 +4672,7 @@ const pivotBarPercent = [
4403
4672
  ]),
4404
4673
  pivotRowDimensions,
4405
4674
  pivotColumnDimensions,
4406
- pivotDiscreteLegend
4675
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
4407
4676
  ];
4408
4677
  const barPercentSpecPipeline = [
4409
4678
  pivotAdapter_pivotAdapter(barPercent, pivotBarPercent)
@@ -4440,7 +4709,7 @@ const initArea = (spec, context)=>{
4440
4709
  result.direction = 'vertical';
4441
4710
  result.yField = foldInfo.measureValue;
4442
4711
  result.xField = unfoldInfo.encodingX;
4443
- result.seriesField = unfoldInfo.encodingColorId;
4712
+ result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
4444
4713
  result.padding = 0;
4445
4714
  result.region = [
4446
4715
  {
@@ -4450,20 +4719,32 @@ const initArea = (spec, context)=>{
4450
4719
  result.animation = true;
4451
4720
  return result;
4452
4721
  };
4722
+ const colorAreaStyleFill = (stylePipe)=>(spec, context)=>{
4723
+ const result = stylePipe(spec, context);
4724
+ const { advancedVSeed } = context;
4725
+ const { datasetReshapeInfo } = advancedVSeed;
4726
+ const { unfoldInfo } = datasetReshapeInfo[0];
4727
+ if (isLinearColor(advancedVSeed)) {
4728
+ if (result?.area?.style) result.area.style.fill = {
4729
+ field: unfoldInfo.encodingColor,
4730
+ scale: 'color'
4731
+ };
4732
+ }
4733
+ return result;
4734
+ };
4453
4735
  const areaStyle_areaStyle = (spec, context)=>{
4454
4736
  const { advancedVSeed } = context;
4455
4737
  const { markStyle, datasetReshapeInfo, dataset } = advancedVSeed;
4456
4738
  const { areaStyle } = markStyle;
4457
4739
  const { unfoldInfo } = datasetReshapeInfo[0];
4458
- if (!areaStyle) return {
4740
+ const result = {
4459
4741
  ...spec,
4460
4742
  area: {
4461
- visible: true
4743
+ visible: true,
4744
+ style: {}
4462
4745
  }
4463
4746
  };
4464
- const result = {
4465
- ...spec
4466
- };
4747
+ if (!areaStyle) return result;
4467
4748
  const areaStyles = Array.isArray(areaStyle) ? areaStyle : [
4468
4749
  areaStyle
4469
4750
  ];
@@ -4491,6 +4772,7 @@ const areaStyle_areaStyle = (spec, context)=>{
4491
4772
  return {
4492
4773
  ...result,
4493
4774
  area: {
4775
+ ...result.area,
4494
4776
  visible: true,
4495
4777
  state: {
4496
4778
  ...customMap
@@ -4501,7 +4783,7 @@ const areaStyle_areaStyle = (spec, context)=>{
4501
4783
  const area_area = [
4502
4784
  initArea,
4503
4785
  stackInverse,
4504
- color_color,
4786
+ colorAdapter(color_color, linearColor),
4505
4787
  background_backgroundColor,
4506
4788
  datasetXY,
4507
4789
  progressive,
@@ -4509,12 +4791,12 @@ const area_area = [
4509
4791
  yLinear,
4510
4792
  label_label,
4511
4793
  tooltip_tooltip,
4794
+ colorAdapter(discreteLegend, colorLegend),
4512
4795
  verticalCrosshairLine,
4513
- discreteLegend,
4514
- pointStyle_pointStyle,
4796
+ colorPointStyleFill(pointStyle_pointStyle),
4515
4797
  pointStateDimensionHover,
4516
- lineStyle_lineStyle,
4517
- areaStyle_areaStyle,
4798
+ colorLineStyleFill(lineStyle_lineStyle),
4799
+ colorAreaStyleFill(areaStyle_areaStyle),
4518
4800
  annotationPoint_annotationPoint,
4519
4801
  annotationVerticalLine_annotationVerticalLine,
4520
4802
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4527,7 +4809,7 @@ const pivotArea = [
4527
4809
  datasetPivot,
4528
4810
  pivotIndicators_pivotIndicators([
4529
4811
  initArea,
4530
- color_color,
4812
+ colorAdapter(color_color, linearColor),
4531
4813
  background_backgroundColor,
4532
4814
  stackInverse,
4533
4815
  datasetXY,
@@ -4537,10 +4819,10 @@ const pivotArea = [
4537
4819
  label_label,
4538
4820
  tooltip_tooltip,
4539
4821
  verticalCrosshairLine,
4540
- pointStyle_pointStyle,
4822
+ colorPointStyleFill(pointStyle_pointStyle),
4541
4823
  pointStateDimensionHover,
4542
- lineStyle_lineStyle,
4543
- areaStyle_areaStyle,
4824
+ colorLineStyleFill(lineStyle_lineStyle),
4825
+ colorAreaStyleFill(areaStyle_areaStyle),
4544
4826
  annotationPoint_annotationPoint,
4545
4827
  annotationVerticalLine_annotationVerticalLine,
4546
4828
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4548,7 +4830,7 @@ const pivotArea = [
4548
4830
  ]),
4549
4831
  pivotRowDimensions,
4550
4832
  pivotColumnDimensions,
4551
- pivotDiscreteLegend
4833
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
4552
4834
  ];
4553
4835
  const areaSpecPipeline = [
4554
4836
  pivotAdapter_pivotAdapter(area_area, pivotArea)
@@ -4577,7 +4859,7 @@ const areaPercentAdvancedPipeline = [
4577
4859
  const areaPercent = [
4578
4860
  initArea,
4579
4861
  stackInverse,
4580
- color_color,
4862
+ colorAdapter(color_color, linearColor),
4581
4863
  background_backgroundColor,
4582
4864
  percent,
4583
4865
  datasetXY,
@@ -4586,11 +4868,12 @@ const areaPercent = [
4586
4868
  yLinear,
4587
4869
  label_label,
4588
4870
  tooltip_tooltip,
4871
+ colorAdapter(discreteLegend, colorLegend),
4589
4872
  verticalCrosshairLine,
4590
- discreteLegend,
4591
- pointStyle_pointStyle,
4592
- lineStyle_lineStyle,
4593
- areaStyle_areaStyle,
4873
+ colorPointStyleFill(pointStyle_pointStyle),
4874
+ pointStateDimensionHover,
4875
+ colorLineStyleFill(lineStyle_lineStyle),
4876
+ colorAreaStyleFill(areaStyle_areaStyle),
4594
4877
  annotationPoint_annotationPoint,
4595
4878
  annotationVerticalLine_annotationVerticalLine,
4596
4879
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4604,7 +4887,7 @@ const pivotAreaPercent = [
4604
4887
  pivotIndicators_pivotIndicators([
4605
4888
  initArea,
4606
4889
  stackInverse,
4607
- color_color,
4890
+ colorAdapter(color_color, linearColor),
4608
4891
  background_backgroundColor,
4609
4892
  percent,
4610
4893
  datasetXY,
@@ -4614,9 +4897,10 @@ const pivotAreaPercent = [
4614
4897
  label_label,
4615
4898
  tooltip_tooltip,
4616
4899
  verticalCrosshairLine,
4617
- pointStyle_pointStyle,
4618
- lineStyle_lineStyle,
4619
- areaStyle_areaStyle,
4900
+ colorPointStyleFill(pointStyle_pointStyle),
4901
+ pointStateDimensionHover,
4902
+ colorLineStyleFill(lineStyle_lineStyle),
4903
+ colorAreaStyleFill(areaStyle_areaStyle),
4620
4904
  annotationPoint_annotationPoint,
4621
4905
  annotationVerticalLine_annotationVerticalLine,
4622
4906
  annotationHorizontalLine_annotationHorizontalLine,
@@ -4624,7 +4908,7 @@ const pivotAreaPercent = [
4624
4908
  ]),
4625
4909
  pivotRowDimensions,
4626
4910
  pivotColumnDimensions,
4627
- pivotDiscreteLegend
4911
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
4628
4912
  ];
4629
4913
  const areaPercentSpecPipeline = [
4630
4914
  pivotAdapter_pivotAdapter(areaPercent, pivotAreaPercent)
@@ -4732,10 +5016,10 @@ const encodingForScatter = (advancedVSeed, context)=>{
4732
5016
  const color = encoding.color || [
4733
5017
  (dimensions[1] || dimensions[0]).id
4734
5018
  ];
4735
- const mergedDetail = unique([
5019
+ const mergedDetail = 0 === detail.length ? unique([
4736
5020
  ...color,
4737
5021
  ...detail
4738
- ]);
5022
+ ]) : detail;
4739
5023
  return {
4740
5024
  ...advancedVSeed,
4741
5025
  encoding: {
@@ -4979,7 +5263,7 @@ const horizontalCrosshairLine = (spec, context)=>{
4979
5263
  };
4980
5264
  const scatter = [
4981
5265
  initScatter,
4982
- color_color,
5266
+ colorAdapter(color_color, linearColor),
4983
5267
  background_backgroundColor,
4984
5268
  datasetScatter,
4985
5269
  progressive,
@@ -4987,10 +5271,10 @@ const scatter = [
4987
5271
  yLinear,
4988
5272
  label_label,
4989
5273
  tooltip_tooltip,
5274
+ colorAdapter(discreteLegend, colorLegend),
4990
5275
  verticalCrosshairLine,
4991
5276
  horizontalCrosshairLine,
4992
- discreteLegend,
4993
- pointStyle_pointStyle,
5277
+ colorPointStyleFill(pointStyle_pointStyle),
4994
5278
  pointStateHover,
4995
5279
  annotationPoint_annotationPoint,
4996
5280
  annotationVerticalLine_annotationVerticalLine,
@@ -5004,7 +5288,7 @@ const pivotScatter = [
5004
5288
  datasetPivot,
5005
5289
  pivotIndicators_pivotIndicators([
5006
5290
  initScatter,
5007
- color_color,
5291
+ colorAdapter(color_color, linearColor),
5008
5292
  background_backgroundColor,
5009
5293
  datasetScatter,
5010
5294
  progressive,
@@ -5014,7 +5298,7 @@ const pivotScatter = [
5014
5298
  tooltip_tooltip,
5015
5299
  verticalCrosshairLine,
5016
5300
  horizontalCrosshairLine,
5017
- pointStyle_pointStyle,
5301
+ colorPointStyleFill(pointStyle_pointStyle),
5018
5302
  pointStateHover,
5019
5303
  annotationPoint_annotationPoint,
5020
5304
  annotationVerticalLine_annotationVerticalLine,
@@ -5134,10 +5418,10 @@ const encodingForDualAxis = (advancedVSeed, context)=>{
5134
5418
  (dimensions[1] || dimensions[0]).id
5135
5419
  ];
5136
5420
  const detail = encoding.detail || [];
5137
- const mergedDetail = unique([
5421
+ const mergedDetail = 0 === detail.length ? unique([
5138
5422
  ...color,
5139
5423
  ...detail
5140
- ]);
5424
+ ]) : detail;
5141
5425
  return {
5142
5426
  ...advancedVSeed,
5143
5427
  encoding: {
@@ -6329,10 +6613,10 @@ const encodingForRose = (advancedVSeed, context)=>{
6329
6613
  (dimensions[1] || dimensions[0]).id
6330
6614
  ];
6331
6615
  const detail = encoding.detail || [];
6332
- const mergedDetail = unique([
6616
+ const mergedDetail = 0 === detail.length ? unique([
6333
6617
  ...color,
6334
6618
  ...detail
6335
- ]);
6619
+ ]) : detail;
6336
6620
  return {
6337
6621
  ...advancedVSeed,
6338
6622
  encoding: {
@@ -6648,10 +6932,10 @@ const encodingForRadar = (advancedVSeed, context)=>{
6648
6932
  (dimensions[1] || dimensions[0]).id
6649
6933
  ];
6650
6934
  const detail = encoding.detail || [];
6651
- const mergedDetail = unique([
6935
+ const mergedDetail = 0 === detail.length ? unique([
6652
6936
  ...color,
6653
6937
  ...detail
6654
- ]);
6938
+ ]) : detail;
6655
6939
  return {
6656
6940
  ...advancedVSeed,
6657
6941
  encoding: {
@@ -6702,7 +6986,7 @@ const initRadar = (spec, context)=>{
6702
6986
  result.type = 'radar';
6703
6987
  result.angleField = unfoldInfo.encodingAngle;
6704
6988
  result.radiusField = foldInfo.measureValue;
6705
- result.seriesField = unfoldInfo.encodingColorId;
6989
+ result.seriesField = isLinearColor(advancedVSeed) ? unfoldInfo.encodingDetail : unfoldInfo.encodingColorId;
6706
6990
  result.padding = 0;
6707
6991
  result.region = [
6708
6992
  {
@@ -6767,7 +7051,7 @@ const radarRadiusAxis = (spec, context)=>{
6767
7051
  };
6768
7052
  const radar = [
6769
7053
  initRadar,
6770
- color_color,
7054
+ colorAdapter(color_color, linearColor),
6771
7055
  background_backgroundColor,
6772
7056
  datasetXY,
6773
7057
  progressive,
@@ -6775,12 +7059,12 @@ const radar = [
6775
7059
  radarRadiusAxis,
6776
7060
  label_label,
6777
7061
  tooltip_tooltip,
7062
+ colorAdapter(discreteLegend, colorLegend),
6778
7063
  verticalCrosshairLine,
6779
- discreteLegend,
6780
- pointStyle_pointStyle,
7064
+ colorPointStyleFill(pointStyle_pointStyle),
6781
7065
  pointStateDimensionHover,
6782
- lineStyle_lineStyle,
6783
- areaStyle_areaStyle
7066
+ colorLineStyleFill(lineStyle_lineStyle),
7067
+ colorAreaStyleFill(areaStyle_areaStyle)
6784
7068
  ];
6785
7069
  const pivotRadar = [
6786
7070
  initPivot,
@@ -6789,7 +7073,7 @@ const pivotRadar = [
6789
7073
  datasetPivot,
6790
7074
  pivotIndicators_pivotIndicators([
6791
7075
  initRadar,
6792
- color_color,
7076
+ colorAdapter(color_color, linearColor),
6793
7077
  background_backgroundColor,
6794
7078
  datasetXY,
6795
7079
  progressive,
@@ -6798,14 +7082,14 @@ const pivotRadar = [
6798
7082
  label_label,
6799
7083
  tooltip_tooltip,
6800
7084
  verticalCrosshairLine,
6801
- pointStyle_pointStyle,
7085
+ colorPointStyleFill(pointStyle_pointStyle),
6802
7086
  pointStateDimensionHover,
6803
- lineStyle_lineStyle,
6804
- areaStyle_areaStyle
7087
+ colorLineStyleFill(lineStyle_lineStyle),
7088
+ colorAreaStyleFill(areaStyle_areaStyle)
6805
7089
  ]),
6806
7090
  pivotRowDimensions,
6807
7091
  pivotColumnDimensions,
6808
- pivotDiscreteLegend
7092
+ colorAdapter(pivotDiscreteLegend, pivotColorLegend)
6809
7093
  ];
6810
7094
  const radarSpecPipeline = [
6811
7095
  pivotAdapter_pivotAdapter(radar, pivotRadar)
@@ -7193,6 +7477,10 @@ const lightTheme = ()=>{
7193
7477
  const baseConfig = {
7194
7478
  backgroundColor: 'transparent',
7195
7479
  color: {
7480
+ linearColorScheme: [
7481
+ '#C2CEFF',
7482
+ '#5766EC'
7483
+ ],
7196
7484
  colorScheme: [
7197
7485
  '#8D72F6',
7198
7486
  '#5766EC',
@@ -7257,8 +7545,8 @@ const lightTheme = ()=>{
7257
7545
  stackCornerRadius: [
7258
7546
  4,
7259
7547
  4,
7260
- 4,
7261
- 4
7548
+ 0,
7549
+ 0
7262
7550
  ]
7263
7551
  },
7264
7552
  columnParallel: {
@@ -7269,8 +7557,8 @@ const lightTheme = ()=>{
7269
7557
  stackCornerRadius: [
7270
7558
  4,
7271
7559
  4,
7272
- 4,
7273
- 4
7560
+ 0,
7561
+ 0
7274
7562
  ]
7275
7563
  },
7276
7564
  columnPercent: {
@@ -7281,8 +7569,8 @@ const lightTheme = ()=>{
7281
7569
  stackCornerRadius: [
7282
7570
  4,
7283
7571
  4,
7284
- 4,
7285
- 4
7572
+ 0,
7573
+ 0
7286
7574
  ]
7287
7575
  },
7288
7576
  bar: {
@@ -7291,10 +7579,10 @@ const lightTheme = ()=>{
7291
7579
  yAxis: barBandAxis,
7292
7580
  crosshairRect,
7293
7581
  stackCornerRadius: [
7582
+ 0,
7294
7583
  4,
7295
7584
  4,
7296
- 4,
7297
- 4
7585
+ 0
7298
7586
  ]
7299
7587
  },
7300
7588
  barParallel: {
@@ -7303,10 +7591,10 @@ const lightTheme = ()=>{
7303
7591
  yAxis: barBandAxis,
7304
7592
  crosshairRect,
7305
7593
  stackCornerRadius: [
7594
+ 0,
7306
7595
  4,
7307
7596
  4,
7308
- 4,
7309
- 4
7597
+ 0
7310
7598
  ]
7311
7599
  },
7312
7600
  barPercent: {
@@ -7315,10 +7603,10 @@ const lightTheme = ()=>{
7315
7603
  yAxis: barBandAxis,
7316
7604
  crosshairRect,
7317
7605
  stackCornerRadius: [
7606
+ 0,
7318
7607
  4,
7319
7608
  4,
7320
- 4,
7321
- 4
7609
+ 0
7322
7610
  ]
7323
7611
  },
7324
7612
  area: {
@@ -7383,38 +7671,10 @@ const lightTheme = ()=>{
7383
7671
  ...baseConfig
7384
7672
  },
7385
7673
  funnel: {
7386
- ...baseConfig,
7387
- color: {
7388
- colorScheme: [
7389
- '#5766EC',
7390
- '#6372F0',
7391
- '#7080F4',
7392
- '#7C8CFA',
7393
- '#8998FF',
7394
- '#95A3FF',
7395
- '#A0AEFF',
7396
- '#ACB9FF',
7397
- '#B7C4FF',
7398
- '#C2CEFF'
7399
- ].reverse()
7400
- }
7674
+ ...baseConfig
7401
7675
  },
7402
7676
  heatmap: {
7403
- ...baseConfig,
7404
- color: {
7405
- colorScheme: [
7406
- '#5766EC',
7407
- '#6372F0',
7408
- '#7080F4',
7409
- '#7C8CFA',
7410
- '#8998FF',
7411
- '#95A3FF',
7412
- '#A0AEFF',
7413
- '#ACB9FF',
7414
- '#B7C4FF',
7415
- '#C2CEFF'
7416
- ].reverse()
7417
- }
7677
+ ...baseConfig
7418
7678
  }
7419
7679
  }
7420
7680
  };
@@ -7526,6 +7786,10 @@ const darkTheme = ()=>{
7526
7786
  const baseConfig = {
7527
7787
  backgroundColor: 'transparent',
7528
7788
  color: {
7789
+ linearColorScheme: [
7790
+ '#A0CEFF',
7791
+ '#2E62F1'
7792
+ ],
7529
7793
  colorScheme: [
7530
7794
  '#2E62F1',
7531
7795
  '#4DC36A',
@@ -7589,8 +7853,8 @@ const darkTheme = ()=>{
7589
7853
  stackCornerRadius: [
7590
7854
  4,
7591
7855
  4,
7592
- 4,
7593
- 4
7856
+ 0,
7857
+ 0
7594
7858
  ]
7595
7859
  },
7596
7860
  columnParallel: {
@@ -7601,8 +7865,8 @@ const darkTheme = ()=>{
7601
7865
  stackCornerRadius: [
7602
7866
  4,
7603
7867
  4,
7604
- 4,
7605
- 4
7868
+ 0,
7869
+ 0
7606
7870
  ]
7607
7871
  },
7608
7872
  columnPercent: {
@@ -7613,8 +7877,8 @@ const darkTheme = ()=>{
7613
7877
  stackCornerRadius: [
7614
7878
  4,
7615
7879
  4,
7616
- 4,
7617
- 4
7880
+ 0,
7881
+ 0
7618
7882
  ]
7619
7883
  },
7620
7884
  bar: {
@@ -7635,10 +7899,10 @@ const darkTheme = ()=>{
7635
7899
  yAxis: barBandAxis,
7636
7900
  crosshairRect: crosshairRect,
7637
7901
  stackCornerRadius: [
7902
+ 0,
7638
7903
  4,
7639
7904
  4,
7640
- 4,
7641
- 4
7905
+ 0
7642
7906
  ]
7643
7907
  },
7644
7908
  barPercent: {
@@ -7647,10 +7911,10 @@ const darkTheme = ()=>{
7647
7911
  yAxis: barBandAxis,
7648
7912
  crosshairRect: crosshairRect,
7649
7913
  stackCornerRadius: [
7914
+ 0,
7650
7915
  4,
7651
7916
  4,
7652
- 4,
7653
- 4
7917
+ 0
7654
7918
  ]
7655
7919
  },
7656
7920
  area: {
@@ -7715,21 +7979,7 @@ const darkTheme = ()=>{
7715
7979
  ...baseConfig
7716
7980
  },
7717
7981
  funnel: {
7718
- ...baseConfig,
7719
- color: {
7720
- colorScheme: [
7721
- '#2E62F1',
7722
- '#3A6EF6',
7723
- '#4780FA',
7724
- '#548CFE',
7725
- '#6198FF',
7726
- '#6FA3FF',
7727
- '#7CACFF',
7728
- '#88B7FF',
7729
- '#94C2FF',
7730
- '#A0CEFF'
7731
- ]
7732
- }
7982
+ ...baseConfig
7733
7983
  },
7734
7984
  heatmap: {
7735
7985
  ...baseConfig
@@ -7780,9 +8030,6 @@ const updateAdvanced = (chartType, advancedPipe)=>{
7780
8030
  const updateSpec = (chartType, specPipe)=>{
7781
8031
  Builder._customSpecPipe[chartType] = specPipe;
7782
8032
  };
7783
- const isDimension = (dimension)=>!('children' in dimension);
7784
- const isDimensionGroup = (dimension)=>'children' in dimension;
7785
- const isDimensions = (dimensions)=>dimensions.every(isDimension);
7786
8033
  const zChartType = z["enum"]([
7787
8034
  'table',
7788
8035
  'pivotTable',
@@ -7900,6 +8147,8 @@ const zScatterMeasure = z.object({
7900
8147
  const zScatterMeasures = z.array(zScatterMeasure);
7901
8148
  const zFoldInfo = z.object({
7902
8149
  foldMap: z.record(z.string(), z.string().or(z.undefined())),
8150
+ colorRange: z.array(z.number()),
8151
+ measureRange: z.array(z.number()),
7903
8152
  measureId: z.string(),
7904
8153
  measureName: z.string(),
7905
8154
  measureValue: z.string()
@@ -8044,10 +8293,11 @@ const zStackCornerRadius = z.number().or(z.array(z.number())).default([
8044
8293
  const zBackgroundColor = z.string().default('transparent').nullish();
8045
8294
  const zColor = z.object({
8046
8295
  colorScheme: z.array(z.string()).nullish(),
8296
+ linearColorScheme: z.array(z.string()).nullish(),
8047
8297
  colorMapping: z.record(z.string(), z.string()).nullish()
8048
8298
  });
8049
8299
  const zLinearColor = z.object({
8050
- colorScheme: z.array(z.string()).nullish()
8300
+ linearColorScheme: z.array(z.string()).nullish()
8051
8301
  });
8052
8302
  const zLabel = z.object({
8053
8303
  enable: z.boolean().default(true).nullish()
@@ -9028,7 +9278,7 @@ const zFunnel = z.object({
9028
9278
  dimensions: zDimensions.nullish(),
9029
9279
  measures: zMeasureTree.nullish(),
9030
9280
  backgroundColor: zBackgroundColor.nullish(),
9031
- color: zLinearColor.nullish(),
9281
+ color: zColor.nullish(),
9032
9282
  label: zLabel.nullish(),
9033
9283
  legend: zColorLegend.nullish(),
9034
9284
  tooltip: zTooltip.nullish(),
@@ -9041,7 +9291,7 @@ const zHeatmap = z.object({
9041
9291
  dimensions: zDimensions.nullish(),
9042
9292
  measures: zMeasureTree.nullish(),
9043
9293
  backgroundColor: zBackgroundColor.nullish(),
9044
- color: zLinearColor.nullish(),
9294
+ color: zColor.nullish(),
9045
9295
  label: zLabel.nullish(),
9046
9296
  legend: zColorLegend.nullish(),
9047
9297
  tooltip: zTooltip.nullish(),
@@ -9086,6 +9336,6 @@ const zAdvancedVSeed = z.object({
9086
9336
  annotation: zAnnotation,
9087
9337
  locale: zLocale
9088
9338
  });
9089
- export { AngleEncoding, Builder, ColorEncoding, ColorIdEncoding, DetailEncoding, FoldMeasureId, FoldMeasureName, FoldMeasureValue, FoldPrimaryMeasureValue, FoldSecondaryMeasureValue, FoldXMeasureValue, FoldYMeasureValue, MeasureName, ORIGINAL_DATA, Separator, UnfoldDimensionGroup, UnfoldDimensionGroupId, XEncoding, YEncoding, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeByEncoding, donutAdvancedPipeline, donutSpecPipeline, dualAxisAdvancedPipeline, dualAxisSpecPipeline, execPipeline, findAllDimensions, findAllMeasures, findDimensionById, findFirstDimension, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, heatmapAdvancedPipeline, heatmapSpecPipeline, i18n, intl, isDimension, isDimensionGroup, isDimensionSelector, isDimensions, isMeasure, isMeasureGroup, isMeasureSelector, isMeasures, isPartialDatumSelector, isPivotChart, isPivotTable, isTable, isVChart, isVTable, isValueSelector, lightTheme, lineAdvancedPipeline, lineSpecPipeline, measureDepth, pieAdvancedPipeline, pieSpecPipeline, pivotTableAdvancedPipeline, pivotTableSpecPipeline, preorderTraverse, radarAdvancedPipeline, radarSpecPipeline, registerAll, registerArea, registerAreaPercent, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerDonut, registerFunnel, registerHeatmap, registerLightTheme, registerLine, registerPie, registerPivotTable, registerRadar, registerRose, registerRoseParallel, registerScatter, registerTable, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, selector_selector as selector, tableAdvancedPipeline, tableSpecPipeline, unfoldDimensions, updateAdvanced, updateSpec, zAdvancedVSeed, zAnalysis, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaConfig, zAreaPercent, zAreaPercentConfig, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarConfig, zBarParallel, zBarParallelConfig, zBarPercent, zBarPercentConfig, zBarStyle, zChartType, zColor, zColorLegend, zColumn, zColumnConfig, zColumnParallel, zColumnParallelConfig, zColumnPercent, zColumnPercentConfig, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensionGroup, zDimensionTree, zDimensions, zDonut, zDonutConfig, zDualAxis, zDualAxisConfig, zDualChartType, zDualMeasure, zDualMeasures, zEncoding, zEncodings, zFoldInfo, zFunnel, zFunnelConfig, zHeatmap, zHeatmapConfig, zLabel, zLegend, zLine, zLineConfig, zLineStyle, zLinearColor, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasureTree, zMeasures, zNumFormat, zPie, zPieConfig, zPivotTable, zPivotTableConfig, zPointStyle, zRadar, zRadarConfig, zRose, zRoseConfig, zRoseParallel, zRoseParallelConfig, zScatter, zScatterConfig, zScatterMeasure, zScatterMeasures, zSort, zSortLegend, zStackCornerRadius, zTable, zTableConfig, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
9339
+ export { AngleEncoding, Builder, ColorEncoding, ColorIdEncoding, DetailEncoding, FoldMeasureId, FoldMeasureName, FoldMeasureValue, FoldPrimaryMeasureValue, FoldSecondaryMeasureValue, FoldXMeasureValue, FoldYMeasureValue, MeasureName, ORIGINAL_DATA, Separator, XEncoding, YEncoding, areaAdvancedPipeline, areaPercentAdvancedPipeline, areaPercentSpecPipeline, areaSpecPipeline, autoFormatter, autoNumFormatter, barAdvancedPipeline, barParallelAdvancedPipeline, barParallelSpecPipeline, barPercentAdvancedPipeline, barPercentSpecPipeline, barSpecPipeline, columnAdvancedPipeline, columnParallelAdvancedPipeline, columnParallelSpecPipeline, columnPercentAdvancedPipeline, columnPercentSpecPipeline, columnSpecPipeline, createFormatter, createNumFormatter, darkTheme, dataReshapeByEncoding, donutAdvancedPipeline, donutSpecPipeline, dualAxisAdvancedPipeline, dualAxisSpecPipeline, execPipeline, findAllDimensions, findAllMeasures, findFirstMeasure, findMeasureById, foldMeasures, funnelAdvancedPipeline, funnelSpecPipeline, heatmapAdvancedPipeline, heatmapSpecPipeline, i18n, intl, isDimensionSelector, isMeasure, isMeasureGroup, isMeasureSelector, isMeasures, isPartialDatumSelector, isPivotChart, isPivotTable, isTable, isVChart, isVTable, isValueSelector, lightTheme, lineAdvancedPipeline, lineSpecPipeline, measureDepth, pieAdvancedPipeline, pieSpecPipeline, pivotTableAdvancedPipeline, pivotTableSpecPipeline, preorderTraverse, radarAdvancedPipeline, radarSpecPipeline, registerAll, registerArea, registerAreaPercent, registerBar, registerBarParallel, registerBarPercent, registerColumn, registerColumnParallel, registerColumnPercent, registerCustomTheme, registerDarkTheme, registerDonut, registerFunnel, registerHeatmap, registerLightTheme, registerLine, registerPie, registerPivotTable, registerRadar, registerRose, registerRoseParallel, registerScatter, registerTable, roseAdvancedPipeline, roseParallelAdvancedPipeline, roseParallelSpecPipeline, roseSpecPipeline, scatterAdvancedPipeline, scatterSpecPipeline, selector_selector as selector, tableAdvancedPipeline, tableSpecPipeline, unfoldDimensions, updateAdvanced, updateSpec, zAdvancedVSeed, zAnalysis, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zArea, zAreaConfig, zAreaPercent, zAreaPercentConfig, zAreaStyle, zAxis, zBackgroundColor, zBar, zBarConfig, zBarParallel, zBarParallelConfig, zBarPercent, zBarPercentConfig, zBarStyle, zChartType, zColor, zColorLegend, zColumn, zColumnConfig, zColumnParallel, zColumnParallelConfig, zColumnPercent, zColumnPercentConfig, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensionGroup, zDimensionTree, zDimensions, zDonut, zDonutConfig, zDualAxis, zDualAxisConfig, zDualChartType, zDualMeasure, zDualMeasures, zEncoding, zEncodings, zFoldInfo, zFunnel, zFunnelConfig, zHeatmap, zHeatmapConfig, zLabel, zLegend, zLine, zLineConfig, zLineStyle, zLinearColor, zLocale, zMarkStyle, zMeasure, zMeasureGroup, zMeasureTree, zMeasures, zNumFormat, zPie, zPieConfig, zPivotTable, zPivotTableConfig, zPointStyle, zRadar, zRadarConfig, zRose, zRoseConfig, zRoseParallel, zRoseParallelConfig, zScatter, zScatterConfig, zScatterMeasure, zScatterMeasures, zSort, zSortLegend, zStackCornerRadius, zTable, zTableConfig, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
9090
9340
 
9091
9341
  //# sourceMappingURL=index.js.map