@visactor/vseed 0.0.15 → 0.0.17
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/build.d.ts +1 -0
- package/dist/builder/builder/build.d.ts.map +1 -0
- package/dist/builder/builder/buildAdvanced.d.ts +1 -0
- package/dist/builder/builder/buildAdvanced.d.ts.map +1 -0
- package/dist/builder/builder/buildSpec.d.ts +1 -0
- package/dist/builder/builder/buildSpec.d.ts.map +1 -0
- package/dist/builder/builder/builder.d.ts +830 -130
- package/dist/builder/builder/builder.d.ts.map +1 -0
- package/dist/builder/builder/index.d.ts +1 -0
- package/dist/builder/builder/index.d.ts.map +1 -0
- package/dist/builder/index.d.ts +1 -0
- package/dist/builder/index.d.ts.map +1 -0
- package/dist/builder/register/all.d.ts +1 -0
- package/dist/builder/register/all.d.ts.map +1 -0
- package/dist/builder/register/chartType.d.ts +6 -1
- package/dist/builder/register/chartType.d.ts.map +1 -0
- package/dist/builder/register/index.d.ts +1 -0
- package/dist/builder/register/index.d.ts.map +1 -0
- package/dist/builder/register/theme.d.ts +1 -0
- package/dist/builder/register/theme.d.ts.map +1 -0
- package/dist/dataReshape/constant.d.ts +1 -0
- package/dist/dataReshape/constant.d.ts.map +1 -0
- package/dist/dataReshape/dataReshapeFor1D1M.d.ts +1 -0
- package/dist/dataReshape/dataReshapeFor1D1M.d.ts.map +1 -0
- package/dist/dataReshape/dataReshapeFor1D2M.d.ts +20 -0
- package/dist/dataReshape/dataReshapeFor1D2M.d.ts.map +1 -0
- package/dist/dataReshape/dataReshapeFor2D1M.d.ts +1 -0
- package/dist/dataReshape/dataReshapeFor2D1M.d.ts.map +1 -0
- package/dist/dataReshape/foldMeasures.d.ts +1 -0
- package/dist/dataReshape/foldMeasures.d.ts.map +1 -0
- package/dist/dataReshape/index.d.ts +2 -0
- package/dist/dataReshape/index.d.ts.map +1 -0
- package/dist/dataReshape/unfoldDimensions.d.ts +1 -0
- package/dist/dataReshape/unfoldDimensions.d.ts.map +1 -0
- package/dist/dataSelector/index.d.ts +1 -0
- package/dist/dataSelector/index.d.ts.map +1 -0
- package/dist/dataSelector/selector.d.ts +1 -0
- package/dist/dataSelector/selector.d.ts.map +1 -0
- package/dist/i18n/i18n.d.ts +1 -0
- package/dist/i18n/i18n.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/index.cjs +1251 -184
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1228 -197
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/index.d.ts +1 -0
- package/dist/pipeline/advanced/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/area.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/area.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/areaPercent.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/areaPercent.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/bar.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/bar.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/barParallel.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/barParallel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/barPercent.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/barPercent.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/column.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/column.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/columnParallel.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/columnParallel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/columnPercent.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/columnPercent.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/donut.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/donut.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/funnel.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/funnel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/index.d.ts +6 -0
- package/dist/pipeline/advanced/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/line.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/line.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/pie.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/pie.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/rose.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/rose.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/roseParallel.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/roseParallel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipeline/scatter.d.ts +3 -0
- package/dist/pipeline/advanced/pipeline/scatter.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/annotation/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/annotation/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/baseConfig/baseConfig.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/baseConfig/baseConfig.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/baseConfig/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/baseConfig/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/config/config.d.ts +6 -0
- package/dist/pipeline/advanced/pipes/config/config.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/config/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/config/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts +4 -1
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/init/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/init/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/init/utils.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/init/utils.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/markStyle/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/markStyle/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/pivot/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/pivot/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/pivot/pivotAdapter.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/pivot/pivotAdapter.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/index.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/reshape/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D1M.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D1M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D2M.d.ts +9 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo1D2M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo2D1M.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/reshape/pivotReshapeTo2D1M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D1M.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D1M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D2M.d.ts +9 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D2M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo2D1M.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo2D1M.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/theme/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/theme/index.d.ts.map +1 -0
- package/dist/pipeline/advanced/pipes/theme/theme.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/theme/theme.d.ts.map +1 -0
- package/dist/pipeline/constant.d.ts +1 -0
- package/dist/pipeline/constant.d.ts.map +1 -0
- package/dist/pipeline/index.d.ts +1 -0
- package/dist/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/spec/index.d.ts +1 -0
- package/dist/pipeline/spec/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/area.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/area.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/bar.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/bar.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/barParallel.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/barParallel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/barPercent.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/barPercent.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/column.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/column.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/columnParallel.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/columnParallel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/columnPercent.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/columnPercent.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/donut.d.ts +3 -0
- package/dist/pipeline/spec/pipeline/donut.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/funnel.d.ts +3 -0
- package/dist/pipeline/spec/pipeline/funnel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/index.d.ts +6 -0
- package/dist/pipeline/spec/pipeline/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/line.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/line.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/pie.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/pie.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/rose.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/rose.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/roseParallel.d.ts +3 -0
- package/dist/pipeline/spec/pipeline/roseParallel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipeline/scatter.d.ts +3 -0
- package/dist/pipeline/spec/pipeline/scatter.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/index.d.ts +15 -14
- package/dist/pipeline/spec/pipes/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationArea.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationArea.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationAreaBand.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationAreaBand.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationHorizontalLine.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationHorizontalLine.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationPoint.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationPoint.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationVerticalLine.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/annotationVerticalLine.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{annotation → vchart/annotation}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/utils.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/annotation/utils.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/a.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/a.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/angle.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/angle.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{axes → vchart/axes}/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/radius.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/radius.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/xBand.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/xBand.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/xLinear.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/xLinear.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/yBand.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/yBand.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/axes/yLinear.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/axes/yLinear.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/backgroundColor/background.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/backgroundColor/background.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{backgroundColor → vchart/backgroundColor}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/backgroundColor/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/color/color.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/color/color.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/color/index.d.ts +2 -0
- package/dist/pipeline/spec/pipes/vchart/color/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/horizontalCrosshairLine.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/horizontalCrosshairLine.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/horizontalCrosshairRect.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/horizontalCrosshairRect.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{crosshair → vchart/crosshair}/index.d.ts +2 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/verticalCrosshairLine.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/verticalCrosshairLine.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/verticalCrosshairRect.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/crosshair/verticalCrosshairRect.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/dataset/dataset.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/dataset/dataset.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{dataset → vchart/dataset}/datasetPivot.d.ts +2 -1
- package/dist/pipeline/spec/pipes/vchart/dataset/datasetPivot.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{dataset → vchart/dataset}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/dataset/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/area.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/area.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/bar.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/bar.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/barParallel.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/barParallel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/column.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/column.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/columnParallel.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/columnParallel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/donut.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/donut.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/funnel.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/funnel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{init → vchart/init}/index.d.ts +5 -0
- package/dist/pipeline/spec/pipes/vchart/init/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/line.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/line.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/pie.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/pie.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{init → vchart/init}/pivot.d.ts +2 -1
- package/dist/pipeline/spec/pipes/vchart/init/pivot.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/rose.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/rose.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/roseParallel.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/roseParallel.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/init/scatter.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/init/scatter.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/label/index.d.ts +2 -0
- package/dist/pipeline/spec/pipes/vchart/label/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/label/label.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/label/label.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/legend/discreteLegend.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/legend/discreteLegend.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{legend → vchart/legend}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/legend/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/legend/pivotDiscreteLegend.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/legend/pivotDiscreteLegend.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/areaStyle.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/areaStyle.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/barStyle.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/barStyle.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{markStyle → vchart/markStyle}/index.d.ts +2 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/lineStyle.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/lineStyle.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointState.d.ts +4 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointState.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointStyle.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/markStyle/pointStyle.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{percent → vchart/percent}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/percent/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/percent/percent.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/percent/percent.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{pivotChart → vchart/pivotChart}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotAdapter.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotAdapter.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotColumnDimensions.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotColumnDimensions.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotGridStyle.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotGridStyle.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{pivotChart → vchart/pivotChart}/pivotIndicators.d.ts +2 -1
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotIndicators.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotRowDimensions.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/pivotChart/pivotRowDimensions.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{stack → vchart/stack}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/stack/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/stack/stack.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/stack/stack.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/stack/stackCornerRadius.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/stack/stackCornerRadius.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/{tooltip → vchart/tooltip}/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/vchart/tooltip/index.d.ts.map +1 -0
- package/dist/pipeline/spec/pipes/vchart/tooltip/tooltip.d.ts +3 -0
- package/dist/pipeline/spec/pipes/vchart/tooltip/tooltip.d.ts.map +1 -0
- package/dist/pipeline/utils/chatType.d.ts +1 -0
- package/dist/pipeline/utils/chatType.d.ts.map +1 -0
- package/dist/pipeline/utils/format/createFormatter.d.ts +1 -0
- package/dist/pipeline/utils/format/createFormatter.d.ts.map +1 -0
- package/dist/pipeline/utils/format/createNumFormatter.d.ts +1 -0
- package/dist/pipeline/utils/format/createNumFormatter.d.ts.map +1 -0
- package/dist/pipeline/utils/format/index.d.ts +1 -0
- package/dist/pipeline/utils/format/index.d.ts.map +1 -0
- package/dist/pipeline/utils/index.d.ts +1 -0
- package/dist/pipeline/utils/index.d.ts.map +1 -0
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +3 -1
- package/dist/pipeline/utils/measures/findMeasureById.d.ts.map +1 -0
- package/dist/pipeline/utils/measures/index.d.ts +2 -1
- package/dist/pipeline/utils/measures/index.d.ts.map +1 -0
- package/dist/pipeline/utils/pipeline.d.ts +1 -0
- package/dist/pipeline/utils/pipeline.d.ts.map +1 -0
- package/dist/theme/dark.d.ts +1 -0
- package/dist/theme/dark.d.ts.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/light.d.ts +1 -0
- package/dist/theme/light.d.ts.map +1 -0
- package/dist/types/advancedVSeed.d.ts +185 -6
- package/dist/types/advancedVSeed.d.ts.map +1 -0
- package/dist/types/builder/builder.d.ts +2 -1
- package/dist/types/builder/builder.d.ts.map +1 -0
- package/dist/types/builder/index.d.ts +1 -0
- package/dist/types/builder/index.d.ts.map +1 -0
- package/dist/types/builder/spec.d.ts +1 -0
- package/dist/types/builder/spec.d.ts.map +1 -0
- package/dist/types/chartType/area/area.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts.map +1 -0
- package/dist/types/chartType/area/index.d.ts +1 -0
- package/dist/types/chartType/area/index.d.ts.map +1 -0
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +1 -0
- package/dist/types/chartType/areaPercent/areaPercent.d.ts.map +1 -0
- package/dist/types/chartType/areaPercent/index.d.ts +1 -0
- package/dist/types/chartType/areaPercent/index.d.ts.map +1 -0
- package/dist/types/chartType/bar/bar.d.ts +1 -0
- package/dist/types/chartType/bar/bar.d.ts.map +1 -0
- package/dist/types/chartType/bar/index.d.ts +1 -0
- package/dist/types/chartType/bar/index.d.ts.map +1 -0
- package/dist/types/chartType/barParallel/barParallel.d.ts +1 -0
- package/dist/types/chartType/barParallel/barParallel.d.ts.map +1 -0
- package/dist/types/chartType/barParallel/index.d.ts +1 -0
- package/dist/types/chartType/barParallel/index.d.ts.map +1 -0
- package/dist/types/chartType/barPercent/barPercent.d.ts +1 -0
- package/dist/types/chartType/barPercent/barPercent.d.ts.map +1 -0
- package/dist/types/chartType/barPercent/index.d.ts +1 -0
- package/dist/types/chartType/barPercent/index.d.ts.map +1 -0
- package/dist/types/chartType/column/column.d.ts +1 -0
- package/dist/types/chartType/column/column.d.ts.map +1 -0
- package/dist/types/chartType/column/index.d.ts +1 -0
- package/dist/types/chartType/column/index.d.ts.map +1 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +1 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts.map +1 -0
- package/dist/types/chartType/columnParallel/index.d.ts +1 -0
- package/dist/types/chartType/columnParallel/index.d.ts.map +1 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +1 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts.map +1 -0
- package/dist/types/chartType/columnPercent/index.d.ts +1 -0
- package/dist/types/chartType/columnPercent/index.d.ts.map +1 -0
- package/dist/types/chartType/donut/donut.d.ts +139 -1
- package/dist/types/chartType/donut/donut.d.ts.map +1 -0
- package/dist/types/chartType/donut/index.d.ts +2 -1
- package/dist/types/chartType/donut/index.d.ts.map +1 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +1 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts.map +1 -0
- package/dist/types/chartType/dualAxis/index.d.ts +1 -0
- package/dist/types/chartType/dualAxis/index.d.ts.map +1 -0
- package/dist/types/chartType/funnel/funnel.d.ts +224 -0
- package/dist/types/chartType/funnel/funnel.d.ts.map +1 -0
- package/dist/types/chartType/funnel/index.d.ts +2 -0
- package/dist/types/chartType/funnel/index.d.ts.map +1 -0
- package/dist/types/chartType/index.d.ts +7 -4
- package/dist/types/chartType/index.d.ts.map +1 -0
- package/dist/types/chartType/line/index.d.ts +1 -0
- package/dist/types/chartType/line/index.d.ts.map +1 -0
- package/dist/types/chartType/line/line.d.ts +1 -0
- package/dist/types/chartType/line/line.d.ts.map +1 -0
- package/dist/types/chartType/pie/index.d.ts +1 -0
- package/dist/types/chartType/pie/index.d.ts.map +1 -0
- package/dist/types/chartType/pie/pie.d.ts +2 -1
- package/dist/types/chartType/pie/pie.d.ts.map +1 -0
- package/dist/types/chartType/pivotTable/index.d.ts +1 -0
- package/dist/types/chartType/pivotTable/index.d.ts.map +1 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +1 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts.map +1 -0
- package/dist/types/chartType/rose/index.d.ts +2 -1
- package/dist/types/chartType/rose/index.d.ts.map +1 -0
- package/dist/types/chartType/rose/rose.d.ts +144 -6
- package/dist/types/chartType/rose/rose.d.ts.map +1 -0
- package/dist/types/chartType/roseParallel/index.d.ts +2 -0
- package/dist/types/chartType/roseParallel/index.d.ts.map +1 -0
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +225 -0
- package/dist/types/chartType/roseParallel/roseParallel.d.ts.map +1 -0
- package/dist/types/chartType/scatter/index.d.ts +2 -0
- package/dist/types/chartType/scatter/index.d.ts.map +1 -0
- package/dist/types/chartType/scatter/scatter.d.ts +843 -0
- package/dist/types/chartType/scatter/scatter.d.ts.map +1 -0
- package/dist/types/chartType/table/index.d.ts +1 -0
- package/dist/types/chartType/table/index.d.ts.map +1 -0
- package/dist/types/chartType/table/table.d.ts +1 -0
- package/dist/types/chartType/table/table.d.ts.map +1 -0
- package/dist/types/dataSelector/index.d.ts +1 -0
- package/dist/types/dataSelector/index.d.ts.map +1 -0
- package/dist/types/dataSelector/selector.d.ts +1 -0
- package/dist/types/dataSelector/selector.d.ts.map +1 -0
- package/dist/types/i18n/i18n.d.ts +1 -0
- package/dist/types/i18n/i18n.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +1 -0
- package/dist/types/i18n/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/pipeline/advancedVSeed/advancedVSeed.d.ts +2 -1
- package/dist/types/pipeline/advancedVSeed/advancedVSeed.d.ts.map +1 -0
- package/dist/types/pipeline/advancedVSeed/index.d.ts +1 -0
- package/dist/types/pipeline/advancedVSeed/index.d.ts.map +1 -0
- package/dist/types/pipeline/index.d.ts +1 -0
- package/dist/types/pipeline/index.d.ts.map +1 -0
- package/dist/types/pipeline/pipeline.d.ts +1 -0
- package/dist/types/pipeline/pipeline.d.ts.map +1 -0
- package/dist/types/pipeline/spec/index.d.ts +1 -0
- package/dist/types/pipeline/spec/index.d.ts.map +1 -0
- package/dist/types/pipeline/spec/spec.d.ts +2 -1
- package/dist/types/pipeline/spec/spec.d.ts.map +1 -0
- package/dist/types/properties/annotation/annotation.d.ts +1 -0
- package/dist/types/properties/annotation/annotation.d.ts.map +1 -0
- package/dist/types/properties/annotation/annotationArea.d.ts +1 -0
- package/dist/types/properties/annotation/annotationArea.d.ts.map +1 -0
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +1 -0
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts.map +1 -0
- package/dist/types/properties/annotation/annotationPoint.d.ts +1 -0
- package/dist/types/properties/annotation/annotationPoint.d.ts.map +1 -0
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +1 -0
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts.map +1 -0
- package/dist/types/properties/annotation/index.d.ts +1 -0
- package/dist/types/properties/annotation/index.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/backgroundColor.d.ts +1 -0
- package/dist/types/properties/baseConfig/backgroundColor.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/baseConfig.d.ts +1 -0
- package/dist/types/properties/baseConfig/baseConfig.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/color.d.ts +3 -2
- package/dist/types/properties/baseConfig/color.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/index.d.ts +1 -0
- package/dist/types/properties/baseConfig/index.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/label.d.ts +1 -0
- package/dist/types/properties/baseConfig/label.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/legend.d.ts +1 -0
- package/dist/types/properties/baseConfig/legend.d.ts.map +1 -0
- package/dist/types/properties/baseConfig/tooltip.d.ts +1 -0
- package/dist/types/properties/baseConfig/tooltip.d.ts.map +1 -0
- package/dist/types/properties/chartType/chartType.d.ts +9 -2
- package/dist/types/properties/chartType/chartType.d.ts.map +1 -0
- package/dist/types/properties/chartType/index.d.ts +1 -0
- package/dist/types/properties/chartType/index.d.ts.map +1 -0
- package/dist/types/properties/config/axis.d.ts +1 -0
- package/dist/types/properties/config/axis.d.ts.map +1 -0
- package/dist/types/properties/config/bandAxis.d.ts +1 -0
- package/dist/types/properties/config/bandAxis.d.ts.map +1 -0
- package/dist/types/properties/config/config.d.ts +91 -3
- package/dist/types/properties/config/config.d.ts.map +1 -0
- package/dist/types/properties/config/crosshair.d.ts +1 -0
- package/dist/types/properties/config/crosshair.d.ts.map +1 -0
- package/dist/types/properties/config/index.d.ts +1 -0
- package/dist/types/properties/config/index.d.ts.map +1 -0
- package/dist/types/properties/config/linearAxis.d.ts +1 -0
- package/dist/types/properties/config/linearAxis.d.ts.map +1 -0
- package/dist/types/properties/config/stackCornerRadius.d.ts +1 -0
- package/dist/types/properties/config/stackCornerRadius.d.ts.map +1 -0
- package/dist/types/properties/dataset/dataset.d.ts +1 -0
- package/dist/types/properties/dataset/dataset.d.ts.map +1 -0
- package/dist/types/properties/dataset/index.d.ts +1 -0
- package/dist/types/properties/dataset/index.d.ts.map +1 -0
- package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +1 -0
- package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts.map +1 -0
- package/dist/types/properties/datasetReshapeInfo/index.d.ts +1 -0
- package/dist/types/properties/datasetReshapeInfo/index.d.ts.map +1 -0
- package/dist/types/properties/dimensions/dimensions.d.ts +1 -0
- package/dist/types/properties/dimensions/dimensions.d.ts.map +1 -0
- package/dist/types/properties/dimensions/index.d.ts +1 -0
- package/dist/types/properties/dimensions/index.d.ts.map +1 -0
- package/dist/types/properties/encoding/encoding.d.ts +3 -0
- package/dist/types/properties/encoding/encoding.d.ts.map +1 -0
- package/dist/types/properties/encoding/index.d.ts +1 -0
- package/dist/types/properties/encoding/index.d.ts.map +1 -0
- package/dist/types/properties/index.d.ts +1 -0
- package/dist/types/properties/index.d.ts.map +1 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts +1 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts.map +1 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +1 -0
- package/dist/types/properties/markStyle/barStyle.d.ts.map +1 -0
- package/dist/types/properties/markStyle/index.d.ts +1 -0
- package/dist/types/properties/markStyle/index.d.ts.map +1 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts +1 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts.map +1 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +1 -0
- package/dist/types/properties/markStyle/markStyle.d.ts.map +1 -0
- package/dist/types/properties/markStyle/pointStyle.d.ts +1 -0
- package/dist/types/properties/markStyle/pointStyle.d.ts.map +1 -0
- package/dist/types/properties/measures/format/formatter.d.ts +1 -0
- package/dist/types/properties/measures/format/formatter.d.ts.map +1 -0
- package/dist/types/properties/measures/format/index.d.ts +1 -0
- package/dist/types/properties/measures/format/index.d.ts.map +1 -0
- package/dist/types/properties/measures/format/numFormat.d.ts +1 -0
- package/dist/types/properties/measures/format/numFormat.d.ts.map +1 -0
- package/dist/types/properties/measures/index.d.ts +1 -0
- package/dist/types/properties/measures/index.d.ts.map +1 -0
- package/dist/types/properties/measures/measures.d.ts +1 -0
- package/dist/types/properties/measures/measures.d.ts.map +1 -0
- package/dist/types/properties/theme/customTheme.d.ts +181 -6
- package/dist/types/properties/theme/customTheme.d.ts.map +1 -0
- package/dist/types/properties/theme/index.d.ts +1 -0
- package/dist/types/properties/theme/index.d.ts.map +1 -0
- package/dist/types/properties/theme/theme.d.ts +1 -0
- package/dist/types/properties/theme/theme.d.ts.map +1 -0
- package/dist/types/vseed.d.ts +1256 -3
- package/dist/types/vseed.d.ts.map +1 -0
- package/dist/umd/index.js +1227 -184
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/pipes/encoding/encodingPolar.d.ts +0 -2
- package/dist/pipeline/spec/pipes/annotation/annotationArea.d.ts +0 -2
- package/dist/pipeline/spec/pipes/annotation/annotationAreaBand.d.ts +0 -2
- package/dist/pipeline/spec/pipes/annotation/annotationHorizontalLine.d.ts +0 -2
- package/dist/pipeline/spec/pipes/annotation/annotationPoint.d.ts +0 -2
- package/dist/pipeline/spec/pipes/annotation/annotationVerticalLine.d.ts +0 -2
- package/dist/pipeline/spec/pipes/annotation/utils.d.ts +0 -2
- package/dist/pipeline/spec/pipes/axes/xBand.d.ts +0 -2
- package/dist/pipeline/spec/pipes/axes/xLinear.d.ts +0 -2
- package/dist/pipeline/spec/pipes/axes/yBand.d.ts +0 -2
- package/dist/pipeline/spec/pipes/axes/yLinear.d.ts +0 -2
- package/dist/pipeline/spec/pipes/backgroundColor/background.d.ts +0 -2
- package/dist/pipeline/spec/pipes/color/color.d.ts +0 -2
- package/dist/pipeline/spec/pipes/color/index.d.ts +0 -1
- package/dist/pipeline/spec/pipes/crosshair/horizontalCrosshairRect.d.ts +0 -2
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairLine.d.ts +0 -2
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairRect.d.ts +0 -2
- package/dist/pipeline/spec/pipes/dataset/dataset.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/area.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/bar.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/barParallel.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/column.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/columnParallel.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/line.d.ts +0 -2
- package/dist/pipeline/spec/pipes/init/pie.d.ts +0 -2
- package/dist/pipeline/spec/pipes/label/index.d.ts +0 -1
- package/dist/pipeline/spec/pipes/label/label.d.ts +0 -2
- package/dist/pipeline/spec/pipes/legend/discreteLegend.d.ts +0 -2
- package/dist/pipeline/spec/pipes/legend/pivotDiscreteLegend.d.ts +0 -2
- package/dist/pipeline/spec/pipes/markStyle/areaStyle.d.ts +0 -2
- package/dist/pipeline/spec/pipes/markStyle/barStyle.d.ts +0 -2
- package/dist/pipeline/spec/pipes/markStyle/lineStyle.d.ts +0 -2
- package/dist/pipeline/spec/pipes/markStyle/pointStyle.d.ts +0 -2
- package/dist/pipeline/spec/pipes/percent/percent.d.ts +0 -2
- package/dist/pipeline/spec/pipes/pivotChart/pivotAdapter.d.ts +0 -2
- package/dist/pipeline/spec/pipes/pivotChart/pivotColumnDimensions.d.ts +0 -2
- package/dist/pipeline/spec/pipes/pivotChart/pivotGridStyle.d.ts +0 -2
- package/dist/pipeline/spec/pipes/pivotChart/pivotRowDimensions.d.ts +0 -2
- package/dist/pipeline/spec/pipes/stack/stack.d.ts +0 -2
- package/dist/pipeline/spec/pipes/stack/stackCornerRadius.d.ts +0 -2
- package/dist/pipeline/spec/pipes/tooltip/tooltip.d.ts +0 -2
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@ import { clone as external_remeda_clone, groupBy, isArray, isEmpty, isNullish, i
|
|
2
2
|
import { z } from "zod";
|
3
3
|
const initAdvancedVSeed = (advancedVSeed, context)=>{
|
4
4
|
const { vseed } = context;
|
5
|
-
const { chartType
|
5
|
+
const { chartType } = vseed;
|
6
6
|
return {
|
7
7
|
...advancedVSeed,
|
8
8
|
chartType
|
@@ -150,7 +150,7 @@ const NUMBER_FORMAT_RULES = {
|
|
150
150
|
};
|
151
151
|
const createFormatter = (format)=>createNumFormatter(format);
|
152
152
|
const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
|
153
|
-
|
153
|
+
const findMeasureById = (measures, id)=>{
|
154
154
|
if (!measures) return;
|
155
155
|
const stack = [
|
156
156
|
...measures
|
@@ -161,7 +161,22 @@ function findMeasureById(measures, id) {
|
|
161
161
|
if (current.id === id && !('children' in current)) return current;
|
162
162
|
if ('children' in current && current.children) stack.push(...current.children);
|
163
163
|
}
|
164
|
-
}
|
164
|
+
};
|
165
|
+
const findFirstMeasure = (measures)=>{
|
166
|
+
if (!measures) return;
|
167
|
+
const stack = [
|
168
|
+
...measures
|
169
|
+
].reverse();
|
170
|
+
while(stack.length > 0){
|
171
|
+
const current = stack.pop();
|
172
|
+
if (!current) continue;
|
173
|
+
if (!('children' in current)) return current;
|
174
|
+
if ('children' in current && current.children) {
|
175
|
+
const children = (current.children || []).reverse();
|
176
|
+
stack.push(...children);
|
177
|
+
}
|
178
|
+
}
|
179
|
+
};
|
165
180
|
const autoMeasures = (advancedVSeed, context)=>{
|
166
181
|
const result = {
|
167
182
|
...advancedVSeed
|
@@ -458,6 +473,60 @@ const dataReshapeFor1D1M = (dataset, dimensions, measures, options)=>{
|
|
458
473
|
};
|
459
474
|
}
|
460
475
|
};
|
476
|
+
const dataReshapeFor1D2M_emptyReshapeResult = {
|
477
|
+
dataset: [],
|
478
|
+
foldInfo: {
|
479
|
+
foldMap: {},
|
480
|
+
measureId: '',
|
481
|
+
measureName: '',
|
482
|
+
measureValue: ''
|
483
|
+
},
|
484
|
+
unfoldInfo: {
|
485
|
+
groupName: '',
|
486
|
+
groupId: '',
|
487
|
+
colorItems: [],
|
488
|
+
colorIdMap: {}
|
489
|
+
}
|
490
|
+
};
|
491
|
+
const dataReshapeFor1D2M = (dataset, dimensions, measures, options)=>{
|
492
|
+
const { foldMeasureId = FoldMeasureId, foldMeasureName = FoldMeasureName, foldMeasureValue = FoldMeasureValue, unfoldDimensionGroup = UnfoldDimensionGroup, unfoldDimensionGroupId = UnfoldDimensionGroupId } = options || {};
|
493
|
+
if (0 === dimensions.length && 0 === measures.length) return dataReshapeFor1D2M_emptyReshapeResult;
|
494
|
+
const { dataset: foldedDataset, foldInfo } = foldMeasures(dataset, measures.length > 1 ? measures.slice(1) : measures, foldMeasureId, foldMeasureName, foldMeasureValue);
|
495
|
+
if (0 === dimensions.length) {
|
496
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, [
|
497
|
+
{
|
498
|
+
id: foldMeasureValue,
|
499
|
+
alias: i18n`指标值`,
|
500
|
+
location: 'dimension'
|
501
|
+
}
|
502
|
+
], [
|
503
|
+
{
|
504
|
+
id: foldMeasureValue,
|
505
|
+
alias: i18n`指标值`
|
506
|
+
}
|
507
|
+
], 0, unfoldDimensionGroup, unfoldDimensionGroupId, foldMeasureId);
|
508
|
+
return {
|
509
|
+
dataset: finalDataset,
|
510
|
+
foldInfo,
|
511
|
+
unfoldInfo
|
512
|
+
};
|
513
|
+
}
|
514
|
+
{
|
515
|
+
const { dataset: finalDataset, unfoldInfo } = unfoldDimensions(foldedDataset, [
|
516
|
+
...dimensions
|
517
|
+
], [
|
518
|
+
{
|
519
|
+
id: foldMeasureValue,
|
520
|
+
alias: i18n`指标值`
|
521
|
+
}
|
522
|
+
], 0, unfoldDimensionGroup, unfoldDimensionGroupId, foldMeasureId);
|
523
|
+
return {
|
524
|
+
dataset: finalDataset,
|
525
|
+
foldInfo,
|
526
|
+
unfoldInfo
|
527
|
+
};
|
528
|
+
}
|
529
|
+
};
|
461
530
|
const reshapeTo2D1M = (advancedVSeed, context)=>{
|
462
531
|
const result = {
|
463
532
|
...advancedVSeed
|
@@ -504,6 +573,28 @@ const reshapeTo1D1M = (advancedVSeed, context)=>{
|
|
504
573
|
]
|
505
574
|
};
|
506
575
|
};
|
576
|
+
const reshapeTo1D2M = (advancedVSeed, context)=>{
|
577
|
+
const result = {
|
578
|
+
...advancedVSeed
|
579
|
+
};
|
580
|
+
const { vseed } = context;
|
581
|
+
const { dataset } = vseed;
|
582
|
+
const { dimensions, measures } = advancedVSeed;
|
583
|
+
if (!measures || !dimensions || !dataset) return result;
|
584
|
+
if (0 === measures.length) throw new Error('measures can not be empty');
|
585
|
+
const { dataset: newDatasets, foldInfo, unfoldInfo } = dataReshapeFor1D2M(dataset, dimensions, measures);
|
586
|
+
return {
|
587
|
+
...result,
|
588
|
+
dataset: newDatasets,
|
589
|
+
datasetReshapeInfo: [
|
590
|
+
{
|
591
|
+
id: '1D2M',
|
592
|
+
foldInfo,
|
593
|
+
unfoldInfo
|
594
|
+
}
|
595
|
+
]
|
596
|
+
};
|
597
|
+
};
|
507
598
|
const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
508
599
|
const result = {
|
509
600
|
...advancedVSeed
|
@@ -543,6 +634,45 @@ const pivotReshapeTo1D1M = (advancedVSeed, context)=>{
|
|
543
634
|
datasetReshapeInfo: datasetReshapeInfo
|
544
635
|
};
|
545
636
|
};
|
637
|
+
const pivotReshapeTo1D2M = (advancedVSeed, context)=>{
|
638
|
+
const result = {
|
639
|
+
...advancedVSeed
|
640
|
+
};
|
641
|
+
const { vseed } = context;
|
642
|
+
const { dataset } = vseed;
|
643
|
+
const { dimensions, measures } = advancedVSeed;
|
644
|
+
if (!measures || !dimensions) return result;
|
645
|
+
const measureGroups = [];
|
646
|
+
if (measures) measures.forEach((measure)=>{
|
647
|
+
if (measure.children && measure.children.length > 0) measureGroups.push(measure);
|
648
|
+
});
|
649
|
+
const newDatasets = [];
|
650
|
+
const datasetReshapeInfo = [];
|
651
|
+
measureGroups.forEach((measureGroup)=>{
|
652
|
+
const measures = measureGroup.children;
|
653
|
+
if (!measures) return;
|
654
|
+
const commonDimensions = dimensions.filter((dim)=>'dimension' === dim.location);
|
655
|
+
const groupId = measureGroup.id;
|
656
|
+
const { dataset: newSubDataset, foldInfo, unfoldInfo } = dataReshapeFor1D2M(dataset, commonDimensions, measures, {
|
657
|
+
foldMeasureId: FoldMeasureId,
|
658
|
+
foldMeasureName: FoldMeasureName,
|
659
|
+
foldMeasureValue: FoldMeasureValue + groupId,
|
660
|
+
unfoldDimensionGroup: UnfoldDimensionGroup
|
661
|
+
});
|
662
|
+
const reshapeInfo = {
|
663
|
+
id: groupId,
|
664
|
+
foldInfo,
|
665
|
+
unfoldInfo
|
666
|
+
};
|
667
|
+
newDatasets.push(newSubDataset);
|
668
|
+
datasetReshapeInfo.push(reshapeInfo);
|
669
|
+
});
|
670
|
+
return {
|
671
|
+
...result,
|
672
|
+
dataset: newDatasets,
|
673
|
+
datasetReshapeInfo: datasetReshapeInfo
|
674
|
+
};
|
675
|
+
};
|
546
676
|
const pivotReshapeTo2D1M = (advancedVSeed, context)=>{
|
547
677
|
const result = {
|
548
678
|
...advancedVSeed
|
@@ -588,9 +718,9 @@ const encodingXY = (advancedVSeed)=>{
|
|
588
718
|
};
|
589
719
|
const { datasetReshapeInfo, dimensions } = advancedVSeed;
|
590
720
|
if (!datasetReshapeInfo || !dimensions) return result;
|
721
|
+
const isZeroDimension = 0 === dimensions.length;
|
591
722
|
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
592
723
|
const { foldInfo, unfoldInfo } = cur;
|
593
|
-
const isZeroDimension = 0 === dimensions.length;
|
594
724
|
const x = [
|
595
725
|
isZeroDimension ? foldInfo.measureName : dimensions[0].id
|
596
726
|
];
|
@@ -624,9 +754,9 @@ const encodingYX = (advancedVSeed)=>{
|
|
624
754
|
};
|
625
755
|
const { datasetReshapeInfo, dimensions } = advancedVSeed;
|
626
756
|
if (!datasetReshapeInfo || !dimensions) return result;
|
757
|
+
const isZeroDimension = 0 === dimensions.length;
|
627
758
|
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
628
759
|
const { foldInfo, unfoldInfo } = cur;
|
629
|
-
const isZeroDimension = 0 === dimensions.length;
|
630
760
|
const y = [
|
631
761
|
isZeroDimension ? foldInfo.measureName : dimensions[0].id
|
632
762
|
];
|
@@ -654,7 +784,44 @@ const encodingYX = (advancedVSeed)=>{
|
|
654
784
|
encoding
|
655
785
|
};
|
656
786
|
};
|
657
|
-
const
|
787
|
+
const encodingRose = (advancedVSeed)=>{
|
788
|
+
const result = {
|
789
|
+
...advancedVSeed
|
790
|
+
};
|
791
|
+
const { datasetReshapeInfo, dimensions, measures } = advancedVSeed;
|
792
|
+
if (!datasetReshapeInfo || !dimensions || !measures) return result;
|
793
|
+
const is1D1M = 1 === dimensions.length && 1 === measures.length;
|
794
|
+
const isZeroDimension = 0 === dimensions.length;
|
795
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
796
|
+
const { foldInfo, unfoldInfo } = cur;
|
797
|
+
const radius = [
|
798
|
+
foldInfo.measureValue
|
799
|
+
];
|
800
|
+
const angle = [
|
801
|
+
isZeroDimension ? foldInfo.measureName : dimensions[0].id
|
802
|
+
];
|
803
|
+
const group = [
|
804
|
+
is1D1M ? dimensions[0].id : unfoldInfo.groupId
|
805
|
+
];
|
806
|
+
const color = [
|
807
|
+
is1D1M ? dimensions[0].id : unfoldInfo.groupId
|
808
|
+
];
|
809
|
+
return [
|
810
|
+
...prev,
|
811
|
+
{
|
812
|
+
angle,
|
813
|
+
radius,
|
814
|
+
group,
|
815
|
+
color
|
816
|
+
}
|
817
|
+
];
|
818
|
+
}, []);
|
819
|
+
return {
|
820
|
+
...result,
|
821
|
+
encoding
|
822
|
+
};
|
823
|
+
};
|
824
|
+
const encodingPie = (advancedVSeed)=>{
|
658
825
|
const result = {
|
659
826
|
...advancedVSeed
|
660
827
|
};
|
@@ -689,6 +856,37 @@ const encodingPolar = (advancedVSeed)=>{
|
|
689
856
|
encoding
|
690
857
|
};
|
691
858
|
};
|
859
|
+
const encodingFunnel = (advancedVSeed)=>{
|
860
|
+
const result = {
|
861
|
+
...advancedVSeed
|
862
|
+
};
|
863
|
+
const { datasetReshapeInfo, dimensions } = advancedVSeed;
|
864
|
+
if (!datasetReshapeInfo || !dimensions) return result;
|
865
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
866
|
+
const { foldInfo, unfoldInfo } = cur;
|
867
|
+
const size = [
|
868
|
+
foldInfo.measureValue
|
869
|
+
];
|
870
|
+
const group = [
|
871
|
+
unfoldInfo.groupId
|
872
|
+
];
|
873
|
+
const color = [
|
874
|
+
unfoldInfo.groupId
|
875
|
+
];
|
876
|
+
return [
|
877
|
+
...prev,
|
878
|
+
{
|
879
|
+
size,
|
880
|
+
group,
|
881
|
+
color
|
882
|
+
}
|
883
|
+
];
|
884
|
+
}, []);
|
885
|
+
return {
|
886
|
+
...result,
|
887
|
+
encoding
|
888
|
+
};
|
889
|
+
};
|
692
890
|
const vchartBaseConfig = (advancedVSeed, context)=>{
|
693
891
|
const { vseed } = context;
|
694
892
|
const result = {
|
@@ -764,11 +962,16 @@ const pieConfig = (advancedVSeed, context)=>{
|
|
764
962
|
};
|
765
963
|
const areaConfig = lineConfig;
|
766
964
|
const areaPercentConfig = lineConfig;
|
965
|
+
const scatterConfig = lineConfig;
|
767
966
|
const barConfig = columnConfig;
|
768
967
|
const barParallelConfig = columnConfig;
|
769
968
|
const barPercentConfig = columnConfig;
|
770
969
|
const columnParallelConfig = columnConfig;
|
771
970
|
const columnPercentConfig = columnConfig;
|
971
|
+
const donutConfig = pieConfig;
|
972
|
+
const roseConfig = pieConfig;
|
973
|
+
const roseParallelConfig = pieConfig;
|
974
|
+
const funnelConfig = pieConfig;
|
772
975
|
const vchartTheme = (advancedVSeed, context)=>{
|
773
976
|
const { customTheme, vseed } = context;
|
774
977
|
const { theme = 'light', chartType } = vseed;
|
@@ -997,42 +1200,176 @@ const pieAdvancedPipeline = [
|
|
997
1200
|
], [
|
998
1201
|
pivotReshapeTo1D1M
|
999
1202
|
]),
|
1000
|
-
|
1203
|
+
encodingPie,
|
1001
1204
|
pieConfig,
|
1002
1205
|
vchartBaseConfig,
|
1003
1206
|
vchartTheme,
|
1004
1207
|
annotation_annotation
|
1005
1208
|
];
|
1006
|
-
const
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1209
|
+
const donutAdvancedPipeline = [
|
1210
|
+
initAdvancedVSeed,
|
1211
|
+
locale_locale,
|
1212
|
+
autoMeasures,
|
1213
|
+
autoDimensions,
|
1214
|
+
pivotAdapter([
|
1215
|
+
reshapeTo1D1M
|
1216
|
+
], [
|
1217
|
+
pivotReshapeTo1D1M
|
1218
|
+
]),
|
1219
|
+
encodingPie,
|
1220
|
+
donutConfig,
|
1221
|
+
vchartBaseConfig,
|
1222
|
+
vchartTheme,
|
1223
|
+
annotation_annotation
|
1224
|
+
];
|
1225
|
+
const roseAdvancedPipeline = [
|
1226
|
+
initAdvancedVSeed,
|
1227
|
+
locale_locale,
|
1228
|
+
autoMeasures,
|
1229
|
+
autoDimensions,
|
1230
|
+
pivotAdapter([
|
1231
|
+
reshapeTo2D1M
|
1232
|
+
], [
|
1233
|
+
pivotReshapeTo2D1M
|
1234
|
+
]),
|
1235
|
+
encodingRose,
|
1236
|
+
roseConfig,
|
1237
|
+
vchartBaseConfig,
|
1238
|
+
vchartTheme,
|
1239
|
+
markStyle_markStyle,
|
1240
|
+
annotation_annotation
|
1241
|
+
];
|
1242
|
+
const roseParallelAdvancedPipeline = [
|
1243
|
+
initAdvancedVSeed,
|
1244
|
+
locale_locale,
|
1245
|
+
autoMeasures,
|
1246
|
+
autoDimensions,
|
1247
|
+
pivotAdapter([
|
1248
|
+
reshapeTo2D1M
|
1249
|
+
], [
|
1250
|
+
pivotReshapeTo2D1M
|
1251
|
+
]),
|
1252
|
+
encodingRose,
|
1253
|
+
roseParallelConfig,
|
1254
|
+
vchartBaseConfig,
|
1255
|
+
vchartTheme,
|
1256
|
+
markStyle_markStyle,
|
1257
|
+
annotation_annotation
|
1258
|
+
];
|
1259
|
+
const funnelAdvancedPipeline = [
|
1260
|
+
initAdvancedVSeed,
|
1261
|
+
locale_locale,
|
1262
|
+
autoMeasures,
|
1263
|
+
autoDimensions,
|
1264
|
+
pivotAdapter([
|
1265
|
+
reshapeTo1D1M
|
1266
|
+
], [
|
1267
|
+
pivotReshapeTo1D1M
|
1268
|
+
]),
|
1269
|
+
encodingFunnel,
|
1270
|
+
funnelConfig,
|
1271
|
+
vchartBaseConfig,
|
1272
|
+
vchartTheme,
|
1273
|
+
annotation_annotation
|
1274
|
+
];
|
1275
|
+
const encodingYY = (advancedVSeed)=>{
|
1016
1276
|
const result = {
|
1017
|
-
...
|
1018
|
-
};
|
1019
|
-
const { advancedVSeed } = context;
|
1020
|
-
const { dataset, datasetReshapeInfo } = advancedVSeed;
|
1021
|
-
const records = dataset.reduce((pre, cur, index)=>{
|
1022
|
-
const id = datasetReshapeInfo[index].id;
|
1023
|
-
pre[id] = cur;
|
1024
|
-
return pre;
|
1025
|
-
}, {});
|
1026
|
-
return {
|
1027
|
-
...result,
|
1028
|
-
records: records
|
1277
|
+
...advancedVSeed
|
1029
1278
|
};
|
1030
|
-
};
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1279
|
+
const { datasetReshapeInfo, measures } = advancedVSeed;
|
1280
|
+
if (!datasetReshapeInfo || !measures) return result;
|
1281
|
+
const firstMeasure = findFirstMeasure(measures);
|
1282
|
+
const encoding = datasetReshapeInfo.reduce((prev, cur)=>{
|
1283
|
+
const { foldInfo, unfoldInfo } = cur;
|
1284
|
+
const x = [
|
1285
|
+
firstMeasure?.id
|
1286
|
+
];
|
1287
|
+
const y = [
|
1288
|
+
foldInfo.measureValue
|
1289
|
+
];
|
1290
|
+
const group = [
|
1291
|
+
unfoldInfo.groupId
|
1292
|
+
];
|
1293
|
+
const color = [
|
1294
|
+
unfoldInfo.groupId
|
1295
|
+
];
|
1296
|
+
return [
|
1297
|
+
...prev,
|
1298
|
+
{
|
1299
|
+
x,
|
1300
|
+
y,
|
1301
|
+
group,
|
1302
|
+
color
|
1303
|
+
}
|
1304
|
+
];
|
1305
|
+
}, []);
|
1306
|
+
return {
|
1307
|
+
...result,
|
1308
|
+
encoding
|
1309
|
+
};
|
1310
|
+
};
|
1311
|
+
const scatterAdvancedPipeline = [
|
1312
|
+
initAdvancedVSeed,
|
1313
|
+
locale_locale,
|
1314
|
+
autoMeasures,
|
1315
|
+
autoDimensions,
|
1316
|
+
pivotAdapter([
|
1317
|
+
reshapeTo1D2M
|
1318
|
+
], [
|
1319
|
+
pivotReshapeTo1D2M
|
1320
|
+
]),
|
1321
|
+
encodingYY,
|
1322
|
+
vchartBaseConfig,
|
1323
|
+
scatterConfig,
|
1324
|
+
vchartTheme,
|
1325
|
+
markStyle_markStyle,
|
1326
|
+
annotation_annotation
|
1327
|
+
];
|
1328
|
+
const dataset_dataset = (spec, context)=>{
|
1329
|
+
const { advancedVSeed } = context;
|
1330
|
+
const { encoding } = advancedVSeed;
|
1331
|
+
const angle = encoding[0]?.angle?.[0];
|
1332
|
+
const x = encoding[0]?.x?.[0];
|
1333
|
+
const group = encoding[0]?.group?.[0];
|
1334
|
+
const fields = {};
|
1335
|
+
if (angle) fields[angle] = {
|
1336
|
+
sortIndex: 0
|
1337
|
+
};
|
1338
|
+
if (x) fields[x] = {
|
1339
|
+
sortIndex: 0
|
1340
|
+
};
|
1341
|
+
if (group) fields[group] = {
|
1342
|
+
sortIndex: 1
|
1343
|
+
};
|
1344
|
+
return {
|
1345
|
+
...spec,
|
1346
|
+
data: {
|
1347
|
+
values: advancedVSeed.dataset,
|
1348
|
+
fields: fields
|
1349
|
+
}
|
1350
|
+
};
|
1351
|
+
};
|
1352
|
+
const datasetPivot = (spec, context)=>{
|
1353
|
+
const result = {
|
1354
|
+
...spec
|
1355
|
+
};
|
1356
|
+
const { advancedVSeed } = context;
|
1357
|
+
const { dataset, datasetReshapeInfo } = advancedVSeed;
|
1358
|
+
const records = dataset.reduce((pre, cur, index)=>{
|
1359
|
+
const id = datasetReshapeInfo[index].id;
|
1360
|
+
pre[id] = cur;
|
1361
|
+
return pre;
|
1362
|
+
}, {});
|
1363
|
+
return {
|
1364
|
+
...result,
|
1365
|
+
records: records
|
1366
|
+
};
|
1367
|
+
};
|
1368
|
+
const datasetPivotPlaceholder = (spec)=>({
|
1369
|
+
...spec,
|
1370
|
+
data: {
|
1371
|
+
id: 'placeholderDataId'
|
1372
|
+
}
|
1036
1373
|
});
|
1037
1374
|
const initColumn = (spec, context)=>{
|
1038
1375
|
const result = {
|
@@ -1052,6 +1389,7 @@ const initColumn = (spec, context)=>{
|
|
1052
1389
|
clip: true
|
1053
1390
|
}
|
1054
1391
|
];
|
1392
|
+
result.animation = true;
|
1055
1393
|
return result;
|
1056
1394
|
};
|
1057
1395
|
const initBar = (spec, context)=>{
|
@@ -1072,6 +1410,7 @@ const initBar = (spec, context)=>{
|
|
1072
1410
|
clip: true
|
1073
1411
|
}
|
1074
1412
|
];
|
1413
|
+
result.animation = true;
|
1075
1414
|
return result;
|
1076
1415
|
};
|
1077
1416
|
const initBarParallel = (spec, context)=>{
|
@@ -1096,6 +1435,7 @@ const initBarParallel = (spec, context)=>{
|
|
1096
1435
|
clip: true
|
1097
1436
|
}
|
1098
1437
|
];
|
1438
|
+
result.animation = true;
|
1099
1439
|
return result;
|
1100
1440
|
};
|
1101
1441
|
const initArea = (spec, context)=>{
|
@@ -1116,6 +1456,7 @@ const initArea = (spec, context)=>{
|
|
1116
1456
|
clip: true
|
1117
1457
|
}
|
1118
1458
|
];
|
1459
|
+
result.animation = true;
|
1119
1460
|
return result;
|
1120
1461
|
};
|
1121
1462
|
const initLine = (spec, context)=>{
|
@@ -1136,6 +1477,7 @@ const initLine = (spec, context)=>{
|
|
1136
1477
|
clip: true
|
1137
1478
|
}
|
1138
1479
|
];
|
1480
|
+
result.animation = true;
|
1139
1481
|
return result;
|
1140
1482
|
};
|
1141
1483
|
const initColumnParallel = (spec, context)=>{
|
@@ -1160,6 +1502,7 @@ const initColumnParallel = (spec, context)=>{
|
|
1160
1502
|
clip: true
|
1161
1503
|
}
|
1162
1504
|
];
|
1505
|
+
result.animation = true;
|
1163
1506
|
return result;
|
1164
1507
|
};
|
1165
1508
|
const initPie = (spec, context)=>{
|
@@ -1181,6 +1524,129 @@ const initPie = (spec, context)=>{
|
|
1181
1524
|
clip: true
|
1182
1525
|
}
|
1183
1526
|
];
|
1527
|
+
result.pie = {
|
1528
|
+
style: {
|
1529
|
+
stroke: '#ffffff',
|
1530
|
+
lineWidth: 1
|
1531
|
+
},
|
1532
|
+
state: {
|
1533
|
+
hover: {
|
1534
|
+
centerOffset: 5,
|
1535
|
+
outerRadius: 1.1 * result.outerRadius
|
1536
|
+
}
|
1537
|
+
}
|
1538
|
+
};
|
1539
|
+
result.animation = true;
|
1540
|
+
return result;
|
1541
|
+
};
|
1542
|
+
const initDonut = (spec, context)=>{
|
1543
|
+
const result = {
|
1544
|
+
...spec
|
1545
|
+
};
|
1546
|
+
const { advancedVSeed } = context;
|
1547
|
+
const { encoding } = advancedVSeed;
|
1548
|
+
if (!encoding[0].angle || !encoding[0].radius || !encoding[0].group) return result;
|
1549
|
+
result.type = 'pie';
|
1550
|
+
result.outerRadius = 0.8;
|
1551
|
+
result.innerRadius = 0.8 * result.outerRadius;
|
1552
|
+
result.valueField = encoding[0].radius[0];
|
1553
|
+
result.categoryField = encoding[0].angle[0];
|
1554
|
+
result.seriesField = encoding[0].group[0];
|
1555
|
+
result.padding = 0;
|
1556
|
+
result.region = [
|
1557
|
+
{
|
1558
|
+
clip: true
|
1559
|
+
}
|
1560
|
+
];
|
1561
|
+
result.pie = {
|
1562
|
+
style: {
|
1563
|
+
stroke: '#ffffff',
|
1564
|
+
lineWidth: 1
|
1565
|
+
},
|
1566
|
+
state: {
|
1567
|
+
hover: {
|
1568
|
+
outerRadius: 1.1 * result.outerRadius
|
1569
|
+
}
|
1570
|
+
}
|
1571
|
+
};
|
1572
|
+
result.animation = true;
|
1573
|
+
return result;
|
1574
|
+
};
|
1575
|
+
const initRose = (spec, context)=>{
|
1576
|
+
const result = {
|
1577
|
+
...spec
|
1578
|
+
};
|
1579
|
+
const { advancedVSeed } = context;
|
1580
|
+
const { encoding, dataset, datasetReshapeInfo } = advancedVSeed;
|
1581
|
+
const { foldInfo } = datasetReshapeInfo[0];
|
1582
|
+
if (!encoding[0].radius || !encoding[0].angle || !encoding[0].group) return result;
|
1583
|
+
result.type = 'rose';
|
1584
|
+
result.categoryField = encoding[0].angle[0];
|
1585
|
+
result.valueField = encoding[0].radius[0];
|
1586
|
+
result.seriesField = encoding[0].group[0];
|
1587
|
+
result.padding = 0;
|
1588
|
+
result.outerRadius = 0.9;
|
1589
|
+
result.innerRadius = 0;
|
1590
|
+
const hasNegativeValue = dataset.flat().find((d)=>d[foldInfo.measureValue] < 0);
|
1591
|
+
if (hasNegativeValue) result.innerRadius = 0.05;
|
1592
|
+
result.rose = {
|
1593
|
+
style: {
|
1594
|
+
stroke: '#ffffff',
|
1595
|
+
lineWidth: 1
|
1596
|
+
},
|
1597
|
+
state: {
|
1598
|
+
hover: {
|
1599
|
+
lineWidth: 1,
|
1600
|
+
fillOpacity: 0.6
|
1601
|
+
}
|
1602
|
+
}
|
1603
|
+
};
|
1604
|
+
result.region = [
|
1605
|
+
{
|
1606
|
+
clip: true
|
1607
|
+
}
|
1608
|
+
];
|
1609
|
+
result.animation = true;
|
1610
|
+
return result;
|
1611
|
+
};
|
1612
|
+
const initRoseParallel = (spec, context)=>{
|
1613
|
+
const result = {
|
1614
|
+
...spec
|
1615
|
+
};
|
1616
|
+
const { advancedVSeed } = context;
|
1617
|
+
const { encoding, datasetReshapeInfo, dataset } = advancedVSeed;
|
1618
|
+
const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
|
1619
|
+
if (!encoding[0].radius || !encoding[0].angle || !encoding[0].group) return result;
|
1620
|
+
result.type = 'rose';
|
1621
|
+
result.categoryField = [
|
1622
|
+
encoding[0].angle[0],
|
1623
|
+
unfoldInfo.groupName
|
1624
|
+
];
|
1625
|
+
result.valueField = encoding[0].radius[0];
|
1626
|
+
result.seriesField = encoding[0].group[0];
|
1627
|
+
result.padding = 0;
|
1628
|
+
result.outerRadius = 0.9;
|
1629
|
+
result.innerRadius = 0;
|
1630
|
+
const hasNegativeValue = dataset.flat().find((d)=>d[foldInfo.measureValue] < 0);
|
1631
|
+
if (hasNegativeValue) result.innerRadius = 0.05;
|
1632
|
+
result.rose = {
|
1633
|
+
style: {
|
1634
|
+
stroke: '#ffffff',
|
1635
|
+
lineWidth: 1
|
1636
|
+
},
|
1637
|
+
state: {
|
1638
|
+
hover: {
|
1639
|
+
lineWidth: 1,
|
1640
|
+
fillOpacity: 0.6
|
1641
|
+
}
|
1642
|
+
}
|
1643
|
+
};
|
1644
|
+
result.region = [
|
1645
|
+
{
|
1646
|
+
clip: true
|
1647
|
+
}
|
1648
|
+
];
|
1649
|
+
result.animation = true;
|
1184
1650
|
return result;
|
1185
1651
|
};
|
1186
1652
|
const initPivot = (spec)=>{
|
@@ -1189,6 +1655,7 @@ const initPivot = (spec)=>{
|
|
1189
1655
|
};
|
1190
1656
|
return {
|
1191
1657
|
...result,
|
1658
|
+
animation: true,
|
1192
1659
|
rows: [],
|
1193
1660
|
columns: [],
|
1194
1661
|
indicators: [],
|
@@ -1198,6 +1665,42 @@ const initPivot = (spec)=>{
|
|
1198
1665
|
indicatorsAsCol: false
|
1199
1666
|
};
|
1200
1667
|
};
|
1668
|
+
const initFunnel = (spec, context)=>{
|
1669
|
+
const result = {
|
1670
|
+
...spec
|
1671
|
+
};
|
1672
|
+
const { advancedVSeed } = context;
|
1673
|
+
const { encoding } = advancedVSeed;
|
1674
|
+
if (!encoding[0].size || !encoding[0].group || !encoding[0].color) return result;
|
1675
|
+
result.type = 'funnel';
|
1676
|
+
result.valueField = encoding[0].size[0];
|
1677
|
+
result.categoryField = encoding[0].group[0];
|
1678
|
+
result.padding = 0;
|
1679
|
+
result.isTransform = true;
|
1680
|
+
result.shape = 'rect';
|
1681
|
+
result.maxSize = '75%';
|
1682
|
+
result.minSize = '10%';
|
1683
|
+
result.region = [
|
1684
|
+
{
|
1685
|
+
clip: true
|
1686
|
+
}
|
1687
|
+
];
|
1688
|
+
result.funnel = {
|
1689
|
+
style: {
|
1690
|
+
cornerRadius: 4
|
1691
|
+
},
|
1692
|
+
state: {
|
1693
|
+
hover: {
|
1694
|
+
fillOpacity: 0.6
|
1695
|
+
}
|
1696
|
+
}
|
1697
|
+
};
|
1698
|
+
result.transformLabel = {
|
1699
|
+
visible: true
|
1700
|
+
};
|
1701
|
+
result.animation = true;
|
1702
|
+
return result;
|
1703
|
+
};
|
1201
1704
|
const xBand = (spec, context)=>{
|
1202
1705
|
const result = {
|
1203
1706
|
...spec
|
@@ -1366,7 +1869,7 @@ const xLinear = (spec, context)=>{
|
|
1366
1869
|
}
|
1367
1870
|
},
|
1368
1871
|
innerOffset: {
|
1369
|
-
|
1872
|
+
right: LINEAR_AXIS_INNER_OFFSET_TOP
|
1370
1873
|
}
|
1371
1874
|
};
|
1372
1875
|
result.axes = [
|
@@ -1551,6 +2054,79 @@ const yLinear = (spec, context)=>{
|
|
1551
2054
|
];
|
1552
2055
|
return result;
|
1553
2056
|
};
|
2057
|
+
const radiusAxis = (spec, context)=>{
|
2058
|
+
const result = {
|
2059
|
+
...spec
|
2060
|
+
};
|
2061
|
+
const { advancedVSeed } = context;
|
2062
|
+
const { dimensions, measures } = advancedVSeed;
|
2063
|
+
if (!dimensions || !measures) return spec;
|
2064
|
+
const is0D = 0 === dimensions.length;
|
2065
|
+
const is1M1D = 1 === dimensions.length && 1 === measures.length;
|
2066
|
+
const showAxis = !(is0D || is1M1D);
|
2067
|
+
if (!result.axes) result.axes = [];
|
2068
|
+
result.axes.push({
|
2069
|
+
orient: 'radius',
|
2070
|
+
visible: showAxis,
|
2071
|
+
zero: true,
|
2072
|
+
nice: !!showAxis,
|
2073
|
+
grid: {
|
2074
|
+
visible: showAxis
|
2075
|
+
},
|
2076
|
+
tick: {
|
2077
|
+
visible: showAxis
|
2078
|
+
},
|
2079
|
+
label: {
|
2080
|
+
visible: showAxis
|
2081
|
+
},
|
2082
|
+
domainLine: {
|
2083
|
+
visible: showAxis
|
2084
|
+
}
|
2085
|
+
});
|
2086
|
+
return result;
|
2087
|
+
};
|
2088
|
+
const angleAxis = (spec, context)=>{
|
2089
|
+
const result = {
|
2090
|
+
...spec
|
2091
|
+
};
|
2092
|
+
const { advancedVSeed } = context;
|
2093
|
+
const { dimensions, measures } = advancedVSeed;
|
2094
|
+
if (!dimensions || !measures) return spec;
|
2095
|
+
const is0D = 0 === dimensions.length;
|
2096
|
+
const is1M1D = 1 === dimensions.length && 1 === measures.length;
|
2097
|
+
const showAxis = !(is0D || is1M1D);
|
2098
|
+
if (!result.axes) result.axes = [];
|
2099
|
+
result.axes.push({
|
2100
|
+
orient: 'angle',
|
2101
|
+
visible: showAxis,
|
2102
|
+
zero: true,
|
2103
|
+
nice: !!showAxis,
|
2104
|
+
paddingInner: showAxis ? [
|
2105
|
+
0.15,
|
2106
|
+
0.1
|
2107
|
+
] : [
|
2108
|
+
0,
|
2109
|
+
0
|
2110
|
+
],
|
2111
|
+
paddingOuter: showAxis ? [
|
2112
|
+
0.075,
|
2113
|
+
0.1
|
2114
|
+
] : [
|
2115
|
+
0,
|
2116
|
+
0
|
2117
|
+
],
|
2118
|
+
grid: {
|
2119
|
+
visible: showAxis
|
2120
|
+
},
|
2121
|
+
domainLine: {
|
2122
|
+
visible: showAxis
|
2123
|
+
},
|
2124
|
+
tick: {
|
2125
|
+
visible: showAxis
|
2126
|
+
}
|
2127
|
+
});
|
2128
|
+
return result;
|
2129
|
+
};
|
1554
2130
|
const percent = (spec, context)=>{
|
1555
2131
|
const result = {
|
1556
2132
|
...spec
|
@@ -1604,6 +2180,9 @@ const tooltip_tooltip = (spec, context)=>{
|
|
1604
2180
|
result.tooltip = {
|
1605
2181
|
visible: enable,
|
1606
2182
|
mark: {
|
2183
|
+
title: {
|
2184
|
+
value: (datum)=>datum && datum[groupName] || ''
|
2185
|
+
},
|
1607
2186
|
content: [
|
1608
2187
|
{
|
1609
2188
|
visible: true,
|
@@ -1847,11 +2426,11 @@ const pivotDiscreteLegend = (spec, context)=>{
|
|
1847
2426
|
label: d,
|
1848
2427
|
shape: {
|
1849
2428
|
outerBorder: border ? {
|
1850
|
-
stroke: colorScheme[index],
|
2429
|
+
stroke: colorScheme?.[index],
|
1851
2430
|
distance: 3,
|
1852
2431
|
lineWidth: 1
|
1853
2432
|
} : void 0,
|
1854
|
-
fill: colorScheme[index]
|
2433
|
+
fill: colorScheme?.[index]
|
1855
2434
|
}
|
1856
2435
|
})),
|
1857
2436
|
item: {
|
@@ -1903,8 +2482,8 @@ const color_color = (spec, context)=>{
|
|
1903
2482
|
const { color } = baseConfig;
|
1904
2483
|
const { colorScheme, colorMapping } = color;
|
1905
2484
|
const mappingList = [];
|
1906
|
-
if (colorMapping) Object.entries(colorMapping).forEach(([key, value])=>{
|
1907
|
-
const idMap = Object.entries(unfoldInfo.colorIdMap).filter(([_, v])=>key
|
2485
|
+
if (colorMapping) Object.entries(colorMapping).sort((a, b)=>a[0].split(Separator).length - b[0].split(Separator).length).forEach(([key, value])=>{
|
2486
|
+
const idMap = Object.entries(unfoldInfo.colorIdMap).filter(([_, v])=>v.includes(key));
|
1908
2487
|
for (const [colorId] of idMap)mappingList.push([
|
1909
2488
|
colorId,
|
1910
2489
|
value
|
@@ -2235,19 +2814,17 @@ const isDimensionSelector = (selector)=>'object' == typeof selector && null !==
|
|
2235
2814
|
].includes(selector.op));
|
2236
2815
|
const barStyle_barStyle = (spec, context)=>{
|
2237
2816
|
const { advancedVSeed } = context;
|
2238
|
-
const { markStyle
|
2817
|
+
const { markStyle } = advancedVSeed;
|
2239
2818
|
const { barStyle } = markStyle;
|
2240
2819
|
const result = {
|
2241
2820
|
...spec,
|
2242
2821
|
bar: {
|
2822
|
+
style: {
|
2823
|
+
stroke: '#fff',
|
2824
|
+
lineWidth: 1
|
2825
|
+
},
|
2243
2826
|
state: {
|
2244
2827
|
hover: {
|
2245
|
-
stroke: (datum, context)=>{
|
2246
|
-
const field = encoding[0]?.group?.[0];
|
2247
|
-
const color = context.seriesColor(datum[field]);
|
2248
|
-
return color;
|
2249
|
-
},
|
2250
|
-
lineWidth: 4,
|
2251
2828
|
fillOpacity: 0.6
|
2252
2829
|
}
|
2253
2830
|
}
|
@@ -2303,14 +2880,7 @@ const pointStyle_pointStyle = (spec, context)=>{
|
|
2303
2880
|
const { pointStyle } = markStyle;
|
2304
2881
|
const result = {
|
2305
2882
|
...spec,
|
2306
|
-
point: {
|
2307
|
-
state: {
|
2308
|
-
dimension_hover: {
|
2309
|
-
scaleX: 1.4,
|
2310
|
-
scaleY: 1.4
|
2311
|
-
}
|
2312
|
-
}
|
2313
|
-
}
|
2883
|
+
point: {}
|
2314
2884
|
};
|
2315
2885
|
if (!pointStyle) return result;
|
2316
2886
|
const pointStyles = Array.isArray(pointStyle) ? pointStyle : [
|
@@ -2356,25 +2926,66 @@ const pointStyle_pointStyle = (spec, context)=>{
|
|
2356
2926
|
}
|
2357
2927
|
};
|
2358
2928
|
};
|
2359
|
-
const
|
2360
|
-
const
|
2361
|
-
const { markStyle, encoding, dataset } = advancedVSeed;
|
2362
|
-
const { lineStyle } = markStyle;
|
2363
|
-
if (!lineStyle) return spec;
|
2929
|
+
const pointStateDimensionHover = (spec)=>{
|
2930
|
+
const point = spec.point || {};
|
2364
2931
|
const result = {
|
2365
|
-
...spec
|
2932
|
+
...spec,
|
2933
|
+
point: {
|
2934
|
+
...point,
|
2935
|
+
state: {
|
2936
|
+
dimension_hover: {
|
2937
|
+
scaleX: 1.4,
|
2938
|
+
scaleY: 1.4
|
2939
|
+
}
|
2940
|
+
}
|
2941
|
+
}
|
2366
2942
|
};
|
2367
|
-
|
2368
|
-
|
2369
|
-
|
2370
|
-
const
|
2371
|
-
const
|
2372
|
-
const
|
2373
|
-
|
2374
|
-
|
2375
|
-
|
2376
|
-
|
2377
|
-
|
2943
|
+
return result;
|
2944
|
+
};
|
2945
|
+
const pointStateHover = (spec, context)=>{
|
2946
|
+
const point = spec.point || {};
|
2947
|
+
const { advancedVSeed } = context;
|
2948
|
+
const { encoding } = advancedVSeed;
|
2949
|
+
const result = {
|
2950
|
+
...spec,
|
2951
|
+
point: {
|
2952
|
+
...point,
|
2953
|
+
state: {
|
2954
|
+
hover: {
|
2955
|
+
scaleX: 1.4,
|
2956
|
+
scaleY: 1.4,
|
2957
|
+
stroke: (datum, context)=>{
|
2958
|
+
const field = encoding[0]?.group?.[0];
|
2959
|
+
const color = context.seriesColor(datum[field]);
|
2960
|
+
return color;
|
2961
|
+
},
|
2962
|
+
fillOpacity: 0.6,
|
2963
|
+
lineWidth: 1
|
2964
|
+
}
|
2965
|
+
}
|
2966
|
+
}
|
2967
|
+
};
|
2968
|
+
return result;
|
2969
|
+
};
|
2970
|
+
const lineStyle_lineStyle = (spec, context)=>{
|
2971
|
+
const { advancedVSeed } = context;
|
2972
|
+
const { markStyle, encoding, dataset } = advancedVSeed;
|
2973
|
+
const { lineStyle } = markStyle;
|
2974
|
+
if (!lineStyle) return spec;
|
2975
|
+
const result = {
|
2976
|
+
...spec
|
2977
|
+
};
|
2978
|
+
const lineStyles = Array.isArray(lineStyle) ? lineStyle : [
|
2979
|
+
lineStyle
|
2980
|
+
];
|
2981
|
+
const group = encoding[0]?.group?.[0];
|
2982
|
+
const lineGroups = groupBy(dataset, (d)=>d[group ?? '']);
|
2983
|
+
const customMap = lineStyles.reduce((result, style, index)=>{
|
2984
|
+
const { lineColor, lineColorOpacity, lineSmooth, lineStyle, lineWidth } = style;
|
2985
|
+
const dashSegment = (lineWidth ?? 2) * 2;
|
2986
|
+
const dashGap = lineWidth ?? 2;
|
2987
|
+
const lineDash = 'dashed' === lineStyle ? [
|
2988
|
+
dashSegment,
|
2378
2989
|
dashSegment
|
2379
2990
|
] : 'dotted' === lineStyle ? [
|
2380
2991
|
dashGap / 2,
|
@@ -3069,6 +3680,46 @@ const horizontalCrosshairRect = (spec, context)=>{
|
|
3069
3680
|
};
|
3070
3681
|
return result;
|
3071
3682
|
};
|
3683
|
+
const horizontalCrosshairLine = (spec, context)=>{
|
3684
|
+
const result = {
|
3685
|
+
...spec
|
3686
|
+
};
|
3687
|
+
const { advancedVSeed, vseed } = context;
|
3688
|
+
const { chartType } = vseed;
|
3689
|
+
const config = advancedVSeed.config?.[chartType]?.crosshairLine;
|
3690
|
+
if (!config) return result;
|
3691
|
+
if (!result.crosshair) result.crosshair = {};
|
3692
|
+
const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
|
3693
|
+
const crosshair = result.crosshair;
|
3694
|
+
crosshair.yField = {
|
3695
|
+
visible,
|
3696
|
+
line: {
|
3697
|
+
type: 'line',
|
3698
|
+
style: {
|
3699
|
+
lineWidth: 1,
|
3700
|
+
opacity: 1,
|
3701
|
+
stroke: lineColor,
|
3702
|
+
lineDash: [
|
3703
|
+
4,
|
3704
|
+
2
|
3705
|
+
]
|
3706
|
+
}
|
3707
|
+
},
|
3708
|
+
label: {
|
3709
|
+
visible: labelVisible,
|
3710
|
+
labelBackground: {
|
3711
|
+
visible: labelVisible,
|
3712
|
+
style: {
|
3713
|
+
fill: labelBackgroundColor
|
3714
|
+
}
|
3715
|
+
},
|
3716
|
+
style: {
|
3717
|
+
fill: labelColor
|
3718
|
+
}
|
3719
|
+
}
|
3720
|
+
};
|
3721
|
+
return result;
|
3722
|
+
};
|
3072
3723
|
const line_line = [
|
3073
3724
|
initLine,
|
3074
3725
|
color_color,
|
@@ -3081,6 +3732,7 @@ const line_line = [
|
|
3081
3732
|
verticalCrosshairLine,
|
3082
3733
|
discreteLegend,
|
3083
3734
|
pointStyle_pointStyle,
|
3735
|
+
pointStateDimensionHover,
|
3084
3736
|
lineStyle_lineStyle,
|
3085
3737
|
annotationPoint_annotationPoint,
|
3086
3738
|
annotationVerticalLine_annotationVerticalLine,
|
@@ -3103,6 +3755,7 @@ const pivotLine = [
|
|
3103
3755
|
tooltip_tooltip,
|
3104
3756
|
verticalCrosshairLine,
|
3105
3757
|
pointStyle_pointStyle,
|
3758
|
+
pointStateDimensionHover,
|
3106
3759
|
lineStyle_lineStyle,
|
3107
3760
|
annotationPoint_annotationPoint,
|
3108
3761
|
annotationVerticalLine_annotationVerticalLine,
|
@@ -3254,250 +3907,447 @@ const pivotColumnPercent = [
|
|
3254
3907
|
annotationPoint_annotationPoint,
|
3255
3908
|
annotationVerticalLine_annotationVerticalLine,
|
3256
3909
|
annotationHorizontalLine_annotationHorizontalLine,
|
3257
|
-
annotationAreaBand
|
3910
|
+
annotationAreaBand
|
3911
|
+
]),
|
3912
|
+
pivotRowDimensions,
|
3913
|
+
pivotColumnDimensions,
|
3914
|
+
pivotDiscreteLegend
|
3915
|
+
];
|
3916
|
+
const columnPercentSpecPipeline = [
|
3917
|
+
pivotAdapter_pivotAdapter(columnPercent, pivotColumnPercent)
|
3918
|
+
];
|
3919
|
+
const bar = [
|
3920
|
+
initBar,
|
3921
|
+
stackCornerRadius_stackCornerRadius,
|
3922
|
+
color_color,
|
3923
|
+
background_backgroundColor,
|
3924
|
+
dataset_dataset,
|
3925
|
+
xLinear,
|
3926
|
+
yBand,
|
3927
|
+
label_label,
|
3928
|
+
tooltip_tooltip,
|
3929
|
+
horizontalCrosshairRect,
|
3930
|
+
discreteLegend,
|
3931
|
+
barStyle_barStyle,
|
3932
|
+
annotationPoint_annotationPoint,
|
3933
|
+
annotationVerticalLine_annotationVerticalLine,
|
3934
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
3935
|
+
annotationAreaBand
|
3936
|
+
];
|
3937
|
+
const pivotBar = [
|
3938
|
+
initPivot,
|
3939
|
+
pivotGridStyle,
|
3940
|
+
pivotIndicators_pivotIndicatorsAsCol,
|
3941
|
+
datasetPivot,
|
3942
|
+
pivotIndicators([
|
3943
|
+
initBar,
|
3944
|
+
stackCornerRadius_stackCornerRadius,
|
3945
|
+
color_color,
|
3946
|
+
background_backgroundColor,
|
3947
|
+
datasetPivotPlaceholder,
|
3948
|
+
yBand,
|
3949
|
+
label_label,
|
3950
|
+
label_label,
|
3951
|
+
tooltip_tooltip,
|
3952
|
+
horizontalCrosshairRect,
|
3953
|
+
barStyle_barStyle,
|
3954
|
+
annotationPoint_annotationPoint,
|
3955
|
+
annotationVerticalLine_annotationVerticalLine,
|
3956
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
3957
|
+
annotationAreaBand
|
3958
|
+
]),
|
3959
|
+
pivotRowDimensions,
|
3960
|
+
pivotColumnDimensions,
|
3961
|
+
pivotDiscreteLegend
|
3962
|
+
];
|
3963
|
+
const barSpecPipeline = [
|
3964
|
+
pivotAdapter_pivotAdapter(bar, pivotBar)
|
3965
|
+
];
|
3966
|
+
const barParallel = [
|
3967
|
+
initBarParallel,
|
3968
|
+
stackCornerRadius_stackCornerRadius,
|
3969
|
+
color_color,
|
3970
|
+
background_backgroundColor,
|
3971
|
+
dataset_dataset,
|
3972
|
+
xLinear,
|
3973
|
+
yBand,
|
3974
|
+
label_label,
|
3975
|
+
tooltip_tooltip,
|
3976
|
+
horizontalCrosshairRect,
|
3977
|
+
discreteLegend,
|
3978
|
+
barStyle_barStyle,
|
3979
|
+
annotationPoint_annotationPoint,
|
3980
|
+
annotationVerticalLine_annotationVerticalLine,
|
3981
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
3982
|
+
annotationAreaBand
|
3983
|
+
];
|
3984
|
+
const pivotBarParallel = [
|
3985
|
+
initPivot,
|
3986
|
+
pivotGridStyle,
|
3987
|
+
pivotIndicators_pivotIndicatorsAsCol,
|
3988
|
+
datasetPivot,
|
3989
|
+
pivotIndicators([
|
3990
|
+
initBarParallel,
|
3991
|
+
stackCornerRadius_stackCornerRadius,
|
3992
|
+
color_color,
|
3993
|
+
background_backgroundColor,
|
3994
|
+
datasetPivotPlaceholder,
|
3995
|
+
yBand,
|
3996
|
+
xLinear,
|
3997
|
+
label_label,
|
3998
|
+
tooltip_tooltip,
|
3999
|
+
horizontalCrosshairRect,
|
4000
|
+
barStyle_barStyle,
|
4001
|
+
annotationPoint_annotationPoint,
|
4002
|
+
annotationVerticalLine_annotationVerticalLine,
|
4003
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4004
|
+
annotationAreaBand
|
4005
|
+
]),
|
4006
|
+
pivotRowDimensions,
|
4007
|
+
pivotColumnDimensions,
|
4008
|
+
pivotDiscreteLegend
|
4009
|
+
];
|
4010
|
+
const barParallelSpecPipeline = [
|
4011
|
+
pivotAdapter_pivotAdapter(barParallel, pivotBarParallel)
|
4012
|
+
];
|
4013
|
+
const barPercent = [
|
4014
|
+
initBar,
|
4015
|
+
stackCornerRadius_stackCornerRadius,
|
4016
|
+
color_color,
|
4017
|
+
background_backgroundColor,
|
4018
|
+
percent,
|
4019
|
+
dataset_dataset,
|
4020
|
+
xLinear,
|
4021
|
+
yBand,
|
4022
|
+
label_label,
|
4023
|
+
tooltip_tooltip,
|
4024
|
+
horizontalCrosshairRect,
|
4025
|
+
discreteLegend,
|
4026
|
+
barStyle_barStyle,
|
4027
|
+
annotationPoint_annotationPoint,
|
4028
|
+
annotationVerticalLine_annotationVerticalLine,
|
4029
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4030
|
+
annotationAreaBand
|
4031
|
+
];
|
4032
|
+
const pivotBarPercent = [
|
4033
|
+
initPivot,
|
4034
|
+
pivotGridStyle,
|
4035
|
+
pivotIndicators_pivotIndicatorsAsCol,
|
4036
|
+
datasetPivot,
|
4037
|
+
pivotIndicators([
|
4038
|
+
initBar,
|
4039
|
+
stackCornerRadius_stackCornerRadius,
|
4040
|
+
color_color,
|
4041
|
+
background_backgroundColor,
|
4042
|
+
percent,
|
4043
|
+
datasetPivotPlaceholder,
|
4044
|
+
yBand,
|
4045
|
+
xLinear,
|
4046
|
+
label_label,
|
4047
|
+
tooltip_tooltip,
|
4048
|
+
horizontalCrosshairRect,
|
4049
|
+
barStyle_barStyle,
|
4050
|
+
annotationPoint_annotationPoint,
|
4051
|
+
annotationVerticalLine_annotationVerticalLine,
|
4052
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4053
|
+
annotationAreaBand
|
4054
|
+
]),
|
4055
|
+
pivotRowDimensions,
|
4056
|
+
pivotColumnDimensions,
|
4057
|
+
pivotDiscreteLegend
|
4058
|
+
];
|
4059
|
+
const barPercentSpecPipeline = [
|
4060
|
+
pivotAdapter_pivotAdapter(barPercent, pivotBarPercent)
|
4061
|
+
];
|
4062
|
+
const area_area = [
|
4063
|
+
initArea,
|
4064
|
+
stackInverse,
|
4065
|
+
color_color,
|
4066
|
+
background_backgroundColor,
|
4067
|
+
dataset_dataset,
|
4068
|
+
xBand,
|
4069
|
+
yLinear,
|
4070
|
+
label_label,
|
4071
|
+
tooltip_tooltip,
|
4072
|
+
verticalCrosshairLine,
|
4073
|
+
discreteLegend,
|
4074
|
+
pointStyle_pointStyle,
|
4075
|
+
pointStateDimensionHover,
|
4076
|
+
lineStyle_lineStyle,
|
4077
|
+
areaStyle_areaStyle,
|
4078
|
+
annotationPoint_annotationPoint,
|
4079
|
+
annotationVerticalLine_annotationVerticalLine,
|
4080
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4081
|
+
annotationArea_annotationArea
|
4082
|
+
];
|
4083
|
+
const pivotArea = [
|
4084
|
+
initPivot,
|
4085
|
+
pivotGridStyle,
|
4086
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
4087
|
+
datasetPivot,
|
4088
|
+
pivotIndicators([
|
4089
|
+
initArea,
|
4090
|
+
color_color,
|
4091
|
+
background_backgroundColor,
|
4092
|
+
stackInverse,
|
4093
|
+
datasetPivotPlaceholder,
|
4094
|
+
xBand,
|
4095
|
+
yLinear,
|
4096
|
+
label_label,
|
4097
|
+
tooltip_tooltip,
|
4098
|
+
verticalCrosshairLine,
|
4099
|
+
pointStyle_pointStyle,
|
4100
|
+
pointStateDimensionHover,
|
4101
|
+
lineStyle_lineStyle,
|
4102
|
+
areaStyle_areaStyle,
|
4103
|
+
annotationPoint_annotationPoint,
|
4104
|
+
annotationVerticalLine_annotationVerticalLine,
|
4105
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4106
|
+
annotationArea_annotationArea
|
4107
|
+
]),
|
4108
|
+
pivotRowDimensions,
|
4109
|
+
pivotColumnDimensions,
|
4110
|
+
pivotDiscreteLegend
|
4111
|
+
];
|
4112
|
+
const areaSpecPipeline = [
|
4113
|
+
pivotAdapter_pivotAdapter(area_area, pivotArea)
|
4114
|
+
];
|
4115
|
+
const areaPercent = [
|
4116
|
+
initArea,
|
4117
|
+
stackInverse,
|
4118
|
+
color_color,
|
4119
|
+
background_backgroundColor,
|
4120
|
+
percent,
|
4121
|
+
dataset_dataset,
|
4122
|
+
xBand,
|
4123
|
+
yLinear,
|
4124
|
+
label_label,
|
4125
|
+
tooltip_tooltip,
|
4126
|
+
verticalCrosshairLine,
|
4127
|
+
discreteLegend,
|
4128
|
+
pointStyle_pointStyle,
|
4129
|
+
lineStyle_lineStyle,
|
4130
|
+
areaStyle_areaStyle,
|
4131
|
+
annotationPoint_annotationPoint,
|
4132
|
+
annotationVerticalLine_annotationVerticalLine,
|
4133
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4134
|
+
annotationArea_annotationArea
|
4135
|
+
];
|
4136
|
+
const pivotAreaPercent = [
|
4137
|
+
initPivot,
|
4138
|
+
pivotGridStyle,
|
4139
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
4140
|
+
datasetPivot,
|
4141
|
+
pivotIndicators([
|
4142
|
+
initArea,
|
4143
|
+
stackInverse,
|
4144
|
+
color_color,
|
4145
|
+
background_backgroundColor,
|
4146
|
+
percent,
|
4147
|
+
datasetPivotPlaceholder,
|
4148
|
+
xBand,
|
4149
|
+
yLinear,
|
4150
|
+
label_label,
|
4151
|
+
tooltip_tooltip,
|
4152
|
+
verticalCrosshairLine,
|
4153
|
+
pointStyle_pointStyle,
|
4154
|
+
lineStyle_lineStyle,
|
4155
|
+
areaStyle_areaStyle,
|
4156
|
+
annotationPoint_annotationPoint,
|
4157
|
+
annotationVerticalLine_annotationVerticalLine,
|
4158
|
+
annotationHorizontalLine_annotationHorizontalLine,
|
4159
|
+
annotationArea_annotationArea
|
3258
4160
|
]),
|
3259
4161
|
pivotRowDimensions,
|
3260
4162
|
pivotColumnDimensions,
|
3261
4163
|
pivotDiscreteLegend
|
3262
4164
|
];
|
3263
|
-
const
|
3264
|
-
pivotAdapter_pivotAdapter(
|
4165
|
+
const areaPercentSpecPipeline = [
|
4166
|
+
pivotAdapter_pivotAdapter(areaPercent, pivotAreaPercent)
|
3265
4167
|
];
|
3266
|
-
const
|
3267
|
-
|
3268
|
-
stackCornerRadius_stackCornerRadius,
|
4168
|
+
const pie = [
|
4169
|
+
initPie,
|
3269
4170
|
color_color,
|
3270
4171
|
background_backgroundColor,
|
3271
4172
|
dataset_dataset,
|
3272
|
-
xLinear,
|
3273
|
-
yBand,
|
3274
4173
|
label_label,
|
3275
4174
|
tooltip_tooltip,
|
3276
|
-
horizontalCrosshairRect,
|
3277
4175
|
discreteLegend,
|
3278
|
-
barStyle_barStyle,
|
3279
4176
|
annotationPoint_annotationPoint,
|
3280
4177
|
annotationVerticalLine_annotationVerticalLine,
|
3281
4178
|
annotationHorizontalLine_annotationHorizontalLine,
|
3282
|
-
|
4179
|
+
annotationArea_annotationArea
|
3283
4180
|
];
|
3284
|
-
const
|
4181
|
+
const pivotPie = [
|
3285
4182
|
initPivot,
|
3286
4183
|
pivotGridStyle,
|
3287
|
-
|
4184
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
3288
4185
|
datasetPivot,
|
3289
4186
|
pivotIndicators([
|
3290
|
-
|
3291
|
-
stackCornerRadius_stackCornerRadius,
|
4187
|
+
initPie,
|
3292
4188
|
color_color,
|
3293
4189
|
background_backgroundColor,
|
3294
4190
|
datasetPivotPlaceholder,
|
3295
|
-
yBand,
|
3296
|
-
label_label,
|
3297
4191
|
label_label,
|
3298
4192
|
tooltip_tooltip,
|
3299
|
-
horizontalCrosshairRect,
|
3300
|
-
barStyle_barStyle,
|
3301
4193
|
annotationPoint_annotationPoint,
|
3302
4194
|
annotationVerticalLine_annotationVerticalLine,
|
3303
4195
|
annotationHorizontalLine_annotationHorizontalLine,
|
3304
|
-
|
4196
|
+
annotationArea_annotationArea
|
3305
4197
|
]),
|
3306
4198
|
pivotRowDimensions,
|
3307
4199
|
pivotColumnDimensions,
|
3308
4200
|
pivotDiscreteLegend
|
3309
4201
|
];
|
3310
|
-
const
|
3311
|
-
pivotAdapter_pivotAdapter(
|
4202
|
+
const pieSpecPipeline = [
|
4203
|
+
pivotAdapter_pivotAdapter(pie, pivotPie)
|
3312
4204
|
];
|
3313
|
-
const
|
3314
|
-
|
3315
|
-
stackCornerRadius_stackCornerRadius,
|
4205
|
+
const donut = [
|
4206
|
+
initDonut,
|
3316
4207
|
color_color,
|
3317
4208
|
background_backgroundColor,
|
3318
4209
|
dataset_dataset,
|
3319
|
-
xLinear,
|
3320
|
-
yBand,
|
3321
4210
|
label_label,
|
3322
4211
|
tooltip_tooltip,
|
3323
|
-
horizontalCrosshairRect,
|
3324
4212
|
discreteLegend,
|
3325
|
-
barStyle_barStyle,
|
3326
4213
|
annotationPoint_annotationPoint,
|
3327
4214
|
annotationVerticalLine_annotationVerticalLine,
|
3328
4215
|
annotationHorizontalLine_annotationHorizontalLine,
|
3329
|
-
|
4216
|
+
annotationArea_annotationArea
|
3330
4217
|
];
|
3331
|
-
const
|
4218
|
+
const pivotDonut = [
|
3332
4219
|
initPivot,
|
3333
4220
|
pivotGridStyle,
|
3334
|
-
|
4221
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
3335
4222
|
datasetPivot,
|
3336
4223
|
pivotIndicators([
|
3337
|
-
|
3338
|
-
stackCornerRadius_stackCornerRadius,
|
4224
|
+
initDonut,
|
3339
4225
|
color_color,
|
3340
4226
|
background_backgroundColor,
|
3341
4227
|
datasetPivotPlaceholder,
|
3342
|
-
yBand,
|
3343
|
-
xLinear,
|
3344
4228
|
label_label,
|
3345
4229
|
tooltip_tooltip,
|
3346
|
-
horizontalCrosshairRect,
|
3347
|
-
barStyle_barStyle,
|
3348
4230
|
annotationPoint_annotationPoint,
|
3349
4231
|
annotationVerticalLine_annotationVerticalLine,
|
3350
4232
|
annotationHorizontalLine_annotationHorizontalLine,
|
3351
|
-
|
4233
|
+
annotationArea_annotationArea
|
3352
4234
|
]),
|
3353
4235
|
pivotRowDimensions,
|
3354
4236
|
pivotColumnDimensions,
|
3355
4237
|
pivotDiscreteLegend
|
3356
4238
|
];
|
3357
|
-
const
|
3358
|
-
pivotAdapter_pivotAdapter(
|
4239
|
+
const donutSpecPipeline = [
|
4240
|
+
pivotAdapter_pivotAdapter(donut, pivotDonut)
|
3359
4241
|
];
|
3360
|
-
const
|
3361
|
-
|
4242
|
+
const rose = [
|
4243
|
+
initRose,
|
3362
4244
|
stackCornerRadius_stackCornerRadius,
|
4245
|
+
stackInverse,
|
3363
4246
|
color_color,
|
3364
4247
|
background_backgroundColor,
|
3365
|
-
percent,
|
3366
4248
|
dataset_dataset,
|
3367
|
-
|
3368
|
-
|
4249
|
+
radiusAxis,
|
4250
|
+
angleAxis,
|
3369
4251
|
label_label,
|
3370
4252
|
tooltip_tooltip,
|
3371
|
-
|
3372
|
-
discreteLegend
|
3373
|
-
barStyle_barStyle,
|
3374
|
-
annotationPoint_annotationPoint,
|
3375
|
-
annotationVerticalLine_annotationVerticalLine,
|
3376
|
-
annotationHorizontalLine_annotationHorizontalLine,
|
3377
|
-
annotationAreaBand
|
4253
|
+
verticalCrosshairRect,
|
4254
|
+
discreteLegend
|
3378
4255
|
];
|
3379
|
-
const
|
4256
|
+
const pivotRose = [
|
3380
4257
|
initPivot,
|
3381
4258
|
pivotGridStyle,
|
3382
|
-
|
4259
|
+
pivotIndicators_pivotIndicatorsAsRow,
|
3383
4260
|
datasetPivot,
|
3384
4261
|
pivotIndicators([
|
3385
|
-
|
4262
|
+
initRose,
|
3386
4263
|
stackCornerRadius_stackCornerRadius,
|
4264
|
+
stackInverse,
|
3387
4265
|
color_color,
|
3388
4266
|
background_backgroundColor,
|
3389
|
-
percent,
|
3390
4267
|
datasetPivotPlaceholder,
|
3391
|
-
|
3392
|
-
|
4268
|
+
radiusAxis,
|
4269
|
+
angleAxis,
|
3393
4270
|
label_label,
|
3394
4271
|
tooltip_tooltip,
|
3395
|
-
|
3396
|
-
barStyle_barStyle,
|
3397
|
-
annotationPoint_annotationPoint,
|
3398
|
-
annotationVerticalLine_annotationVerticalLine,
|
3399
|
-
annotationHorizontalLine_annotationHorizontalLine,
|
3400
|
-
annotationAreaBand
|
4272
|
+
verticalCrosshairRect
|
3401
4273
|
]),
|
3402
4274
|
pivotRowDimensions,
|
3403
4275
|
pivotColumnDimensions,
|
3404
4276
|
pivotDiscreteLegend
|
3405
4277
|
];
|
3406
|
-
const
|
3407
|
-
pivotAdapter_pivotAdapter(
|
4278
|
+
const roseSpecPipeline = [
|
4279
|
+
pivotAdapter_pivotAdapter(rose, pivotRose)
|
3408
4280
|
];
|
3409
|
-
const
|
3410
|
-
|
3411
|
-
|
4281
|
+
const roseParallel = [
|
4282
|
+
initRoseParallel,
|
4283
|
+
stackCornerRadius_stackCornerRadius,
|
3412
4284
|
color_color,
|
3413
4285
|
background_backgroundColor,
|
3414
4286
|
dataset_dataset,
|
3415
|
-
|
3416
|
-
|
4287
|
+
radiusAxis,
|
4288
|
+
angleAxis,
|
3417
4289
|
label_label,
|
3418
4290
|
tooltip_tooltip,
|
3419
|
-
verticalCrosshairLine,
|
3420
4291
|
discreteLegend,
|
3421
|
-
|
3422
|
-
lineStyle_lineStyle,
|
3423
|
-
areaStyle_areaStyle,
|
4292
|
+
verticalCrosshairRect,
|
3424
4293
|
annotationPoint_annotationPoint,
|
3425
4294
|
annotationVerticalLine_annotationVerticalLine,
|
3426
4295
|
annotationHorizontalLine_annotationHorizontalLine,
|
3427
|
-
|
4296
|
+
annotationAreaBand
|
3428
4297
|
];
|
3429
|
-
const
|
4298
|
+
const pivotRoseParallel = [
|
3430
4299
|
initPivot,
|
3431
4300
|
pivotGridStyle,
|
3432
4301
|
pivotIndicators_pivotIndicatorsAsRow,
|
3433
4302
|
datasetPivot,
|
3434
4303
|
pivotIndicators([
|
3435
|
-
|
4304
|
+
initRoseParallel,
|
4305
|
+
stackCornerRadius_stackCornerRadius,
|
3436
4306
|
color_color,
|
3437
4307
|
background_backgroundColor,
|
3438
|
-
stackInverse,
|
3439
4308
|
datasetPivotPlaceholder,
|
3440
|
-
|
3441
|
-
|
4309
|
+
radiusAxis,
|
4310
|
+
angleAxis,
|
3442
4311
|
label_label,
|
3443
4312
|
tooltip_tooltip,
|
3444
|
-
|
3445
|
-
pointStyle_pointStyle,
|
3446
|
-
lineStyle_lineStyle,
|
3447
|
-
areaStyle_areaStyle,
|
4313
|
+
verticalCrosshairRect,
|
3448
4314
|
annotationPoint_annotationPoint,
|
3449
4315
|
annotationVerticalLine_annotationVerticalLine,
|
3450
4316
|
annotationHorizontalLine_annotationHorizontalLine,
|
3451
|
-
|
4317
|
+
annotationAreaBand
|
3452
4318
|
]),
|
3453
4319
|
pivotRowDimensions,
|
3454
4320
|
pivotColumnDimensions,
|
3455
4321
|
pivotDiscreteLegend
|
3456
4322
|
];
|
3457
|
-
const
|
3458
|
-
pivotAdapter_pivotAdapter(
|
4323
|
+
const roseParallelSpecPipeline = [
|
4324
|
+
pivotAdapter_pivotAdapter(roseParallel, pivotRoseParallel)
|
3459
4325
|
];
|
3460
|
-
const
|
3461
|
-
|
3462
|
-
stackInverse,
|
4326
|
+
const funnel = [
|
4327
|
+
initFunnel,
|
3463
4328
|
color_color,
|
3464
4329
|
background_backgroundColor,
|
3465
|
-
percent,
|
3466
4330
|
dataset_dataset,
|
3467
|
-
xBand,
|
3468
|
-
yLinear,
|
3469
4331
|
label_label,
|
3470
4332
|
tooltip_tooltip,
|
3471
|
-
verticalCrosshairLine,
|
3472
4333
|
discreteLegend,
|
3473
|
-
pointStyle_pointStyle,
|
3474
|
-
lineStyle_lineStyle,
|
3475
|
-
areaStyle_areaStyle,
|
3476
4334
|
annotationPoint_annotationPoint,
|
3477
4335
|
annotationVerticalLine_annotationVerticalLine,
|
3478
4336
|
annotationHorizontalLine_annotationHorizontalLine,
|
3479
4337
|
annotationArea_annotationArea
|
3480
4338
|
];
|
3481
|
-
const
|
4339
|
+
const pivotFunnel = [
|
3482
4340
|
initPivot,
|
3483
4341
|
pivotGridStyle,
|
3484
4342
|
pivotIndicators_pivotIndicatorsAsRow,
|
3485
4343
|
datasetPivot,
|
3486
4344
|
pivotIndicators([
|
3487
|
-
|
3488
|
-
stackInverse,
|
4345
|
+
initFunnel,
|
3489
4346
|
color_color,
|
3490
4347
|
background_backgroundColor,
|
3491
|
-
percent,
|
3492
4348
|
datasetPivotPlaceholder,
|
3493
|
-
xBand,
|
3494
|
-
yLinear,
|
3495
4349
|
label_label,
|
3496
4350
|
tooltip_tooltip,
|
3497
|
-
verticalCrosshairLine,
|
3498
|
-
pointStyle_pointStyle,
|
3499
|
-
lineStyle_lineStyle,
|
3500
|
-
areaStyle_areaStyle,
|
3501
4351
|
annotationPoint_annotationPoint,
|
3502
4352
|
annotationVerticalLine_annotationVerticalLine,
|
3503
4353
|
annotationHorizontalLine_annotationHorizontalLine,
|
@@ -3507,34 +4357,67 @@ const pivotAreaPercent = [
|
|
3507
4357
|
pivotColumnDimensions,
|
3508
4358
|
pivotDiscreteLegend
|
3509
4359
|
];
|
3510
|
-
const
|
3511
|
-
pivotAdapter_pivotAdapter(
|
4360
|
+
const funnelSpecPipeline = [
|
4361
|
+
pivotAdapter_pivotAdapter(funnel, pivotFunnel)
|
3512
4362
|
];
|
3513
|
-
const
|
3514
|
-
|
4363
|
+
const initScatter = (spec, context)=>{
|
4364
|
+
const result = {
|
4365
|
+
...spec
|
4366
|
+
};
|
4367
|
+
const { advancedVSeed } = context;
|
4368
|
+
const { encoding } = advancedVSeed;
|
4369
|
+
if (!encoding[0].y || !encoding[0].x || !encoding[0].group) return result;
|
4370
|
+
result.type = 'scatter';
|
4371
|
+
result.direction = 'vertical';
|
4372
|
+
result.xField = encoding[0].x[0];
|
4373
|
+
result.yField = encoding[0].y[0];
|
4374
|
+
result.seriesField = encoding[0].group[0];
|
4375
|
+
result.padding = 0;
|
4376
|
+
result.region = [
|
4377
|
+
{
|
4378
|
+
clip: true
|
4379
|
+
}
|
4380
|
+
];
|
4381
|
+
result.animation = true;
|
4382
|
+
return result;
|
4383
|
+
};
|
4384
|
+
const scatter = [
|
4385
|
+
initScatter,
|
3515
4386
|
color_color,
|
3516
4387
|
background_backgroundColor,
|
3517
4388
|
dataset_dataset,
|
4389
|
+
xLinear,
|
4390
|
+
yLinear,
|
3518
4391
|
label_label,
|
3519
4392
|
tooltip_tooltip,
|
4393
|
+
verticalCrosshairLine,
|
4394
|
+
horizontalCrosshairLine,
|
3520
4395
|
discreteLegend,
|
4396
|
+
pointStyle_pointStyle,
|
4397
|
+
pointStateHover,
|
3521
4398
|
annotationPoint_annotationPoint,
|
3522
4399
|
annotationVerticalLine_annotationVerticalLine,
|
3523
4400
|
annotationHorizontalLine_annotationHorizontalLine,
|
3524
4401
|
annotationArea_annotationArea
|
3525
4402
|
];
|
3526
|
-
const
|
4403
|
+
const pivotScatter = [
|
3527
4404
|
initPivot,
|
3528
4405
|
pivotGridStyle,
|
3529
4406
|
pivotIndicators_pivotIndicatorsAsRow,
|
3530
4407
|
datasetPivot,
|
3531
4408
|
pivotIndicators([
|
3532
|
-
|
4409
|
+
initScatter,
|
3533
4410
|
color_color,
|
3534
4411
|
background_backgroundColor,
|
3535
4412
|
datasetPivotPlaceholder,
|
4413
|
+
xLinear,
|
4414
|
+
yLinear,
|
3536
4415
|
label_label,
|
3537
4416
|
tooltip_tooltip,
|
4417
|
+
verticalCrosshairLine,
|
4418
|
+
horizontalCrosshairLine,
|
4419
|
+
pointStyle_pointStyle,
|
4420
|
+
pointStateHover,
|
3538
4421
|
annotationPoint_annotationPoint,
|
3539
4422
|
annotationVerticalLine_annotationVerticalLine,
|
3540
4423
|
annotationHorizontalLine_annotationHorizontalLine,
|
@@ -3544,8 +4427,8 @@ const pivotPie = [
|
|
3544
4427
|
pivotColumnDimensions,
|
3545
4428
|
pivotDiscreteLegend
|
3546
4429
|
];
|
3547
|
-
const
|
3548
|
-
pivotAdapter_pivotAdapter(
|
4430
|
+
const scatterSpecPipeline = [
|
4431
|
+
pivotAdapter_pivotAdapter(scatter, pivotScatter)
|
3549
4432
|
];
|
3550
4433
|
const buildAdvanced = (builder)=>{
|
3551
4434
|
const { chartType } = builder.vseed;
|
@@ -3665,6 +4548,26 @@ const registerPie = ()=>{
|
|
3665
4548
|
Builder._advancedPipelineMap.pie = pieAdvancedPipeline;
|
3666
4549
|
Builder._specPipelineMap.pie = pieSpecPipeline;
|
3667
4550
|
};
|
4551
|
+
const registerDonut = ()=>{
|
4552
|
+
Builder._advancedPipelineMap.donut = donutAdvancedPipeline;
|
4553
|
+
Builder._specPipelineMap.donut = donutSpecPipeline;
|
4554
|
+
};
|
4555
|
+
const registerRose = ()=>{
|
4556
|
+
Builder._advancedPipelineMap.rose = roseAdvancedPipeline;
|
4557
|
+
Builder._specPipelineMap.rose = roseSpecPipeline;
|
4558
|
+
};
|
4559
|
+
const registerRoseParallel = ()=>{
|
4560
|
+
Builder._advancedPipelineMap.roseParallel = roseParallelAdvancedPipeline;
|
4561
|
+
Builder._specPipelineMap.roseParallel = roseParallelSpecPipeline;
|
4562
|
+
};
|
4563
|
+
const registerFunnel = ()=>{
|
4564
|
+
Builder._advancedPipelineMap.funnel = funnelAdvancedPipeline;
|
4565
|
+
Builder._specPipelineMap.funnel = funnelSpecPipeline;
|
4566
|
+
};
|
4567
|
+
const registerScatter = ()=>{
|
4568
|
+
Builder._advancedPipelineMap.scatter = scatterAdvancedPipeline;
|
4569
|
+
Builder._specPipelineMap.scatter = scatterSpecPipeline;
|
4570
|
+
};
|
3668
4571
|
const darkTheme = ()=>{
|
3669
4572
|
const linearAxis = {
|
3670
4573
|
nice: true,
|
@@ -3889,6 +4792,23 @@ const darkTheme = ()=>{
|
|
3889
4792
|
xAxis: bandAxis,
|
3890
4793
|
yAxis: linearAxis,
|
3891
4794
|
crosshairLine: crosshairLine
|
4795
|
+
},
|
4796
|
+
scatter: {
|
4797
|
+
xAxis: {
|
4798
|
+
...linearAxis,
|
4799
|
+
line: {
|
4800
|
+
...linearAxis.line,
|
4801
|
+
visible: true
|
4802
|
+
}
|
4803
|
+
},
|
4804
|
+
yAxis: {
|
4805
|
+
...linearAxis,
|
4806
|
+
line: {
|
4807
|
+
...linearAxis.line,
|
4808
|
+
visible: true
|
4809
|
+
}
|
4810
|
+
},
|
4811
|
+
crosshairLine
|
3892
4812
|
}
|
3893
4813
|
}
|
3894
4814
|
};
|
@@ -4118,6 +5038,23 @@ const lightTheme = ()=>{
|
|
4118
5038
|
xAxis: bandAxis,
|
4119
5039
|
yAxis: linearAxis,
|
4120
5040
|
crosshairLine
|
5041
|
+
},
|
5042
|
+
scatter: {
|
5043
|
+
xAxis: {
|
5044
|
+
...linearAxis,
|
5045
|
+
line: {
|
5046
|
+
...linearAxis.line,
|
5047
|
+
visible: true
|
5048
|
+
}
|
5049
|
+
},
|
5050
|
+
yAxis: {
|
5051
|
+
...linearAxis,
|
5052
|
+
line: {
|
5053
|
+
...linearAxis.line,
|
5054
|
+
visible: true
|
5055
|
+
}
|
5056
|
+
},
|
5057
|
+
crosshairLine
|
4121
5058
|
}
|
4122
5059
|
}
|
4123
5060
|
};
|
@@ -4135,7 +5072,7 @@ const registerLightTheme = ()=>{
|
|
4135
5072
|
const registerDarkTheme = ()=>{
|
4136
5073
|
registerCustomTheme('dark', darkTheme());
|
4137
5074
|
};
|
4138
|
-
const
|
5075
|
+
const registerAll = ()=>{
|
4139
5076
|
registerLine();
|
4140
5077
|
registerColumn();
|
4141
5078
|
registerColumnParallel();
|
@@ -4146,6 +5083,11 @@ const all_registerAll = ()=>{
|
|
4146
5083
|
registerArea();
|
4147
5084
|
registerAreaPercent();
|
4148
5085
|
registerPie();
|
5086
|
+
registerDonut();
|
5087
|
+
registerRose();
|
5088
|
+
registerRoseParallel();
|
5089
|
+
registerFunnel();
|
5090
|
+
registerScatter();
|
4149
5091
|
registerLightTheme();
|
4150
5092
|
registerDarkTheme();
|
4151
5093
|
};
|
@@ -4162,9 +5104,12 @@ const zChartType = z["enum"]([
|
|
4162
5104
|
'area',
|
4163
5105
|
'areaPercent',
|
4164
5106
|
'rose',
|
5107
|
+
'roseParallel',
|
4165
5108
|
'pie',
|
4166
5109
|
'donut',
|
4167
|
-
'dualAxis'
|
5110
|
+
'dualAxis',
|
5111
|
+
'scatter',
|
5112
|
+
'funnel'
|
4168
5113
|
]);
|
4169
5114
|
const zDatum = z.record(z.string().or(z.number()), z.any());
|
4170
5115
|
const zDataset = z.array(zDatum);
|
@@ -4237,7 +5182,8 @@ const zEncoding = z.array(z.object({
|
|
4237
5182
|
group: z.array(z.string()).optional(),
|
4238
5183
|
angle: z.array(z.string()).optional(),
|
4239
5184
|
radius: z.array(z.string()).optional(),
|
4240
|
-
tooltip: z.array(z.string()).optional()
|
5185
|
+
tooltip: z.array(z.string()).optional(),
|
5186
|
+
size: z.array(z.string()).optional()
|
4241
5187
|
}));
|
4242
5188
|
const zBackgroundColor = z.string().default('transparent').optional();
|
4243
5189
|
const zLabel = z.object({
|
@@ -4470,6 +5416,8 @@ const zStackCornerRadius = z.number().or(z.array(z.number())).default([
|
|
4470
5416
|
0
|
4471
5417
|
]);
|
4472
5418
|
const zConfig = z.object({
|
5419
|
+
table: z.object({}).optional(),
|
5420
|
+
pivotTable: z.object({}).optional(),
|
4473
5421
|
line: z.object({
|
4474
5422
|
xAxis: zXBandAxis.optional(),
|
4475
5423
|
yAxis: zYLinearAxis.optional(),
|
@@ -4521,12 +5469,17 @@ const zConfig = z.object({
|
|
4521
5469
|
yAxis: zYLinearAxis.optional(),
|
4522
5470
|
crosshairLine: zCrosshairLine.optional()
|
4523
5471
|
}).optional(),
|
5472
|
+
rose: z.object({}).optional(),
|
5473
|
+
roseParallel: z.object({}).optional(),
|
4524
5474
|
pie: z.object({}).optional(),
|
4525
5475
|
donut: z.object({}).optional(),
|
4526
|
-
rose: z.object({}).optional(),
|
4527
5476
|
dualAxis: z.object({}).optional(),
|
4528
|
-
|
4529
|
-
|
5477
|
+
scatter: z.object({
|
5478
|
+
xAxis: zXLinearAxis.optional(),
|
5479
|
+
yAxis: zYLinearAxis.optional(),
|
5480
|
+
crosshairLine: zCrosshairLine.optional()
|
5481
|
+
}).optional(),
|
5482
|
+
funnel: z.object({}).optional()
|
4530
5483
|
});
|
4531
5484
|
const zSelector = z.union([
|
4532
5485
|
z.string(),
|
@@ -4975,6 +5928,19 @@ const zLine = z.object({
|
|
4975
5928
|
annotationArea: zAnnotationArea.optional(),
|
4976
5929
|
locale: zLocale.optional()
|
4977
5930
|
});
|
5931
|
+
const zRose = z.object({
|
5932
|
+
chartType: z.literal('rose'),
|
5933
|
+
dataset: zDataset.optional(),
|
5934
|
+
dimensions: zDimensions.optional(),
|
5935
|
+
measures: zMeasures.optional(),
|
5936
|
+
backgroundColor: zBackgroundColor.optional(),
|
5937
|
+
color: zColor.optional(),
|
5938
|
+
label: zLabel.optional(),
|
5939
|
+
legend: zLegend.optional(),
|
5940
|
+
tooltip: zTooltip.optional(),
|
5941
|
+
theme: zTheme.optional(),
|
5942
|
+
locale: zLocale.optional()
|
5943
|
+
});
|
4978
5944
|
const zBarPercent = z.object({
|
4979
5945
|
chartType: z.literal('barPercent'),
|
4980
5946
|
dataset: zDataset.optional(),
|
@@ -5010,6 +5976,19 @@ const zPie = z.object({
|
|
5010
5976
|
theme: zTheme.optional(),
|
5011
5977
|
locale: zLocale.optional()
|
5012
5978
|
});
|
5979
|
+
const zDonut = z.object({
|
5980
|
+
chartType: z.literal('donut'),
|
5981
|
+
dataset: zDataset.optional(),
|
5982
|
+
dimensions: zDimensions.optional(),
|
5983
|
+
measures: zMeasures.optional(),
|
5984
|
+
backgroundColor: zBackgroundColor.optional(),
|
5985
|
+
color: zColor.optional(),
|
5986
|
+
label: zLabel.optional(),
|
5987
|
+
legend: zLegend.optional(),
|
5988
|
+
tooltip: zTooltip.optional(),
|
5989
|
+
theme: zTheme.optional(),
|
5990
|
+
locale: zLocale.optional()
|
5991
|
+
});
|
5013
5992
|
const zArea = z.object({
|
5014
5993
|
chartType: z.literal('area'),
|
5015
5994
|
dataset: zDataset.optional(),
|
@@ -5056,6 +6035,53 @@ const zAreaPercent = z.object({
|
|
5056
6035
|
annotationArea: zAnnotationArea.optional(),
|
5057
6036
|
locale: zLocale.optional()
|
5058
6037
|
});
|
6038
|
+
const zRoseParallel = z.object({
|
6039
|
+
chartType: z.literal('roseParallel'),
|
6040
|
+
dataset: zDataset.optional(),
|
6041
|
+
dimensions: zDimensions.optional(),
|
6042
|
+
measures: zMeasures.optional(),
|
6043
|
+
backgroundColor: zBackgroundColor.optional(),
|
6044
|
+
color: zColor.optional(),
|
6045
|
+
label: zLabel.optional(),
|
6046
|
+
legend: zLegend.optional(),
|
6047
|
+
tooltip: zTooltip.optional(),
|
6048
|
+
theme: zTheme.optional(),
|
6049
|
+
locale: zLocale.optional()
|
6050
|
+
});
|
6051
|
+
const zScatter = z.object({
|
6052
|
+
chartType: z.literal('scatter'),
|
6053
|
+
dataset: zDataset.optional(),
|
6054
|
+
dimensions: zDimensions.optional(),
|
6055
|
+
measures: zMeasures.optional(),
|
6056
|
+
backgroundColor: zBackgroundColor.optional(),
|
6057
|
+
color: zColor.optional(),
|
6058
|
+
label: zLabel.optional(),
|
6059
|
+
legend: zLegend.optional(),
|
6060
|
+
tooltip: zTooltip.optional(),
|
6061
|
+
xAxis: zXLinearAxis.optional(),
|
6062
|
+
yAxis: zYLinearAxis.optional(),
|
6063
|
+
crosshairLine: zCrosshairLine.optional(),
|
6064
|
+
theme: zTheme.optional(),
|
6065
|
+
pointStyle: zPointStyle.optional(),
|
6066
|
+
annotationPoint: zAnnotationPoint.optional(),
|
6067
|
+
annotationVerticalLine: zAnnotationVerticalLine.optional(),
|
6068
|
+
annotationHorizontalLine: zAnnotationHorizontalLine.optional(),
|
6069
|
+
annotationArea: zAnnotationArea.optional(),
|
6070
|
+
locale: zLocale.optional()
|
6071
|
+
});
|
6072
|
+
const zFunnel = z.object({
|
6073
|
+
chartType: z.literal('funnel'),
|
6074
|
+
dataset: zDataset.optional(),
|
6075
|
+
dimensions: zDimensions.optional(),
|
6076
|
+
measures: zMeasures.optional(),
|
6077
|
+
backgroundColor: zBackgroundColor.optional(),
|
6078
|
+
color: zColor.optional(),
|
6079
|
+
label: zLabel.optional(),
|
6080
|
+
legend: zLegend.optional(),
|
6081
|
+
tooltip: zTooltip.optional(),
|
6082
|
+
theme: zTheme.optional(),
|
6083
|
+
locale: zLocale.optional()
|
6084
|
+
});
|
5059
6085
|
const zVSeed = z.discriminatedUnion('chartType', [
|
5060
6086
|
zLine,
|
5061
6087
|
zColumn,
|
@@ -5066,8 +6092,13 @@ const zVSeed = z.discriminatedUnion('chartType', [
|
|
5066
6092
|
zBarPercent,
|
5067
6093
|
zArea,
|
5068
6094
|
zAreaPercent,
|
5069
|
-
zPie
|
6095
|
+
zPie,
|
6096
|
+
zRose,
|
6097
|
+
zRoseParallel,
|
6098
|
+
zScatter,
|
6099
|
+
zDonut,
|
6100
|
+
zFunnel
|
5070
6101
|
]);
|
5071
|
-
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, dataReshapeFor2D1M, execPipeline, findMeasureById, foldMeasures, i18n, intl, isPivotChart, isVChart, isVTable, lightTheme, lineAdvancedPipeline, lineSpecPipeline, pieAdvancedPipeline, pieSpecPipeline,
|
6102
|
+
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, zAnnotation, zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zAreaStyle, zAxis, zBackgroundColor, zBarStyle, zBaseConfig, zChartType, zColor, zConfig, zCrosshairLine, zCrosshairRect, zCustomTheme, zCustomThemeConfig, zDataset, zDatasetReshapeInfo, zDatum, zDimension, zDimensions, zEncoding, zFoldInfo, zLabel, zLegend, zLineStyle, zMarkStyle, zMeasure, zMeasureGroup, zMeasures, zNumFormat, zPointStyle, zStackCornerRadius, zTheme, zTooltip, zUnfoldInfo, zVSeed, zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis };
|
5072
6103
|
|
5073
6104
|
//# sourceMappingURL=index.js.map
|