@orbcharts/presets-basic 3.0.0-alpha.8 → 3.0.0-beta.1
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/lib/core-types.d.ts +1 -0
- package/dist/lib/plugins-basic-types.d.ts +1 -0
- package/dist/orbcharts-presets-basic.es.js +1270 -779
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_ROUND.d.ts +4 -0
- package/dist/src/grid/PRESET_BARS_THIN.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_PN_SCALE.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_GRID_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_CURVE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_LOOSE_TICKS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINES_WITH_SOLID_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_BASIC.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_CURVE.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_HORIZONTAL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.d.ts +4 -0
- package/dist/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/grid/index.d.ts +21 -0
- package/dist/src/index.d.ts +4 -30
- package/dist/src/multiGrid/PRESET_MULTI_GRID_BASIC.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.d.ts +4 -0
- package/dist/src/multiGrid/index.d.ts +6 -0
- package/dist/src/params.d.ts +7 -0
- package/dist/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/series/PRESET_BUBBLES_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_DONUT.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_HALF_DONUT.d.ts +4 -0
- package/dist/src/series/PRESET_PIE_WITH_INNER_LABELS.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_ROSE_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_BASIC.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/PRESET_SERIES_SUM_SERIES.d.ts +4 -0
- package/dist/src/series/index.d.ts +12 -0
- package/dist/src/tree/PRESET_TREE_BASIC.d.ts +4 -0
- package/dist/src/tree/index.d.ts +1 -0
- package/dist/src/types.d.ts +121 -37
- package/dist/vite.config.d.ts +1 -1
- package/lib/core-types.ts +7 -0
- package/lib/plugins-basic-types.ts +6 -0
- package/package.json +5 -6
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -0
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -0
- package/src/grid/PRESET_BARS_ROUND.ts +39 -0
- package/src/grid/PRESET_BARS_THIN.ts +36 -0
- package/src/grid/PRESET_GRID_BASIC.ts +27 -0
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -0
- package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -0
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -0
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -0
- package/src/grid/PRESET_LINES_BASIC.ts +35 -0
- package/src/grid/PRESET_LINES_CURVE.ts +38 -0
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -0
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -0
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -0
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -0
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -0
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -0
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -0
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -0
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -0
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -0
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -0
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -0
- package/src/grid/index.ts +23 -0
- package/src/index.ts +4 -218
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -0
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -0
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -0
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -0
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -0
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -0
- package/src/multiGrid/index.ts +6 -0
- package/src/params.ts +61 -0
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -0
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -0
- package/src/series/PRESET_PIE_BASIC.ts +19 -0
- package/src/series/PRESET_PIE_DONUT.ts +24 -0
- package/src/series/PRESET_PIE_HALF_DONUT.ts +37 -0
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +25 -0
- package/src/series/PRESET_ROSE_BASIC.ts +20 -0
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +25 -0
- package/src/series/PRESET_SERIES_BASIC.ts +16 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +18 -0
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +19 -0
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -0
- package/src/series/index.ts +13 -0
- package/src/tree/PRESET_TREE_BASIC.ts +27 -0
- package/src/tree/index.ts +1 -0
- package/src/types.ts +263 -56
- package/{tsconfig.prod.json → tsconfig.base.json} +1 -1
- package/tsconfig.json +1 -12
- package/vite.config.js +17 -39
- package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_LEFT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_RIGHT_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.d.ts +0 -3
- package/dist/src/chartParamsFiles/index.d.ts +0 -10
- package/dist/src/createPreset.d.ts +0 -9
- package/dist/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.d.ts +0 -3
- package/dist/src/gridDataFormatterFiles/index.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Bars/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Dots/index.d.ts +0 -2
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GridLegend/index.d.ts +0 -3
- package/dist/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/GroupAxis/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.d.ts +0 -4
- package/dist/src/gridPluginParamsFiles/Lines/index.d.ts +0 -1
- package/dist/src/gridPluginParamsFiles/index.d.ts +0 -5
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.d.ts +0 -3
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.d.ts +0 -3
- package/dist/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.d.ts +0 -3
- package/dist/src/multiGridDataFormatterFiles/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarStack/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBars/index.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGridLegend/index.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiGroupAxis/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiLines/index.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.d.ts +0 -4
- package/dist/src/multiGridPluginParamsFiles/MultiValueAxis/index.d.ts +0 -3
- package/dist/src/multiGridPluginParamsFiles/index.d.ts +0 -7
- package/dist/src/multiValueDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/multiValuePluginParamsFiles/index.d.ts +0 -1
- package/dist/src/relationshipDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/relationshipPluginParamsFiles/index.d.ts +0 -1
- package/dist/src/seriesDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Bubbles/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.d.ts +0 -0
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/Pie/index.d.ts +0 -2
- package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/PieLabels/index.d.ts +0 -2
- package/dist/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.d.ts +0 -4
- package/dist/src/seriesPluginParamsFiles/SeriesLegend/index.d.ts +0 -1
- package/dist/src/seriesPluginParamsFiles/index.d.ts +0 -4
- package/dist/src/treeDataFormatterFiles/index.d.ts +0 -1
- package/dist/src/treePluginParamsFiles/index.d.ts +0 -1
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT.ts +0 -15
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +0 -14
- package/src/chartParamsFiles/CP_TOP_AND_NO_BOTTOM_PADDING.ts +0 -14
- package/src/chartParamsFiles/index.ts +0 -10
- package/src/createPreset.ts +0 -88
- package/src/gridDataFormatterFiles/DF_GRID_2_SERIES_SLOT.ts +0 -16
- package/src/gridDataFormatterFiles/DF_GRID_3_SERIES_SLOT.ts +0 -16
- package/src/gridDataFormatterFiles/DF_GRID_4_SERIES_SLOT.ts +0 -16
- package/src/gridDataFormatterFiles/DF_GRID_BOTTOM_VALUE_AXIS.ts +0 -23
- package/src/gridDataFormatterFiles/DF_GRID_DIVERGING_SCALE.ts +0 -15
- package/src/gridDataFormatterFiles/index.ts +0 -5
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +0 -15
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +0 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +0 -2
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +0 -12
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +0 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +0 -2
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +0 -14
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -15
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST.ts +0 -15
- package/src/gridPluginParamsFiles/GridLegend/index.ts +0 -3
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +0 -13
- package/src/gridPluginParamsFiles/GroupAxis/index.ts +0 -1
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +0 -13
- package/src/gridPluginParamsFiles/Lines/index.ts +0 -1
- package/src/gridPluginParamsFiles/index.ts +0 -6
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_2_GRID_SLOT.ts +0 -21
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_3_GRID_SLOT.ts +0 -24
- package/src/multiGridDataFormatterFiles/DF_MULTI_GRID_4_GRID_SLOT.ts +0 -27
- package/src/multiGridDataFormatterFiles/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarStack/PP_MULTI_BAR_STACK_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarStack/index.ts +0 -4
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBars/PP_MULTI_BARS_ROUND.ts +0 -15
- package/src/multiGridPluginParamsFiles/MultiBars/index.ts +0 -5
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiBarsTriangle/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM.ts +0 -14
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +0 -28
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST.ts +0 -21
- package/src/multiGridPluginParamsFiles/MultiGridLegend/PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST.ts +0 -22
- package/src/multiGridPluginParamsFiles/MultiGridLegend/index.ts +0 -4
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_2_GRID_SLOT.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_3_GRID_SLOT.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/PP_MULTI_GROUP_AXIS_4_GRID_SLOT.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiGroupAxis/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiLines/PP_MULTI_LINES_CURVE.ts +0 -13
- package/src/multiGridPluginParamsFiles/MultiLines/index.ts +0 -4
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_2_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_3_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiValueAxis/PP_MULTI_VALUE_AXIS_4_GRID_SLOT.ts +0 -12
- package/src/multiGridPluginParamsFiles/MultiValueAxis/index.ts +0 -3
- package/src/multiGridPluginParamsFiles/index.ts +0 -7
- package/src/multiValueDataFormatterFiles/index.ts +0 -1
- package/src/multiValuePluginParamsFiles/index.ts +0 -1
- package/src/relationshipDataFormatterFiles/index.ts +0 -1
- package/src/relationshipPluginParamsFiles/index.ts +0 -1
- package/src/seriesDataFormatterFiles/index.ts +0 -1
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +0 -12
- package/src/seriesPluginParamsFiles/Bubbles/index.ts +0 -1
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_BLACK_STROKE.ts +0 -0
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +0 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +0 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +0 -2
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +0 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +0 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +0 -2
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +0 -12
- package/src/seriesPluginParamsFiles/SeriesLegend/index.ts +0 -1
- package/src/seriesPluginParamsFiles/index.ts +0 -4
- package/src/treeDataFormatterFiles/index.ts +0 -1
- package/src/treePluginParamsFiles/index.ts +0 -1
- package/tsconfig.dev.json +0 -18
package/src/index.ts
CHANGED
@@ -1,218 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
createMultiValuePreset,
|
6
|
-
createRelationshipPreset,
|
7
|
-
createTreePreset } from './createPreset'
|
8
|
-
|
9
|
-
// -- series --
|
10
|
-
// 通用 - PRESET_SERIES_[name]
|
11
|
-
export const PRESET_SERIES_BASIC = createSeriesPreset({
|
12
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
13
|
-
allPluginParamsIds: [],
|
14
|
-
description: '基本Series參數'
|
15
|
-
})
|
16
|
-
// Bubbles - PRESET_BUBBLES_[name]
|
17
|
-
export const PRESET_BUBBLES_BASIC = createSeriesPreset({
|
18
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
19
|
-
allPluginParamsIds: ['PP_SERIES_LEGEND_ROUND'],
|
20
|
-
description: '基本泡泡圖'
|
21
|
-
})
|
22
|
-
export const PRESET_BUBBLES_SCALING_BY_RADIUS = createSeriesPreset({
|
23
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
24
|
-
allPluginParamsIds: ['PP_BUBBLES_SCALING_BY_RADIUS', 'PP_SERIES_LEGEND_ROUND'],
|
25
|
-
description: '以半徑尺寸為比例的泡泡圖'
|
26
|
-
})
|
27
|
-
// Pie - PRESET_PIE_[name]
|
28
|
-
export const PRESET_PIE_BASIC = createSeriesPreset({
|
29
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
30
|
-
allPluginParamsIds: ['PP_SERIES_LEGEND_ROUND'],
|
31
|
-
description: '基本圓餅圖'
|
32
|
-
})
|
33
|
-
export const PRESET_PIE_WITH_INNER_LABELS = createSeriesPreset({
|
34
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
35
|
-
allPluginParamsIds: ['PP_PIE_LABELS_INNER', 'PP_SERIES_LEGEND_ROUND'],
|
36
|
-
description: '圓餅圖及內部資料標籤'
|
37
|
-
})
|
38
|
-
export const PRESET_PIE_DONUT = createSeriesPreset({
|
39
|
-
// chartParamsId: 'CP_RIGHT_PADDING',
|
40
|
-
allPluginParamsIds: ['PP_PIE_DONUT', 'PP_SERIES_LEGEND_ROUND'],
|
41
|
-
description: '甜甜圈圖'
|
42
|
-
})
|
43
|
-
export const PRESET_PIE_HALF_DONUT = createSeriesPreset({
|
44
|
-
chartParamsId: 'CP_TOP_AND_NO_BOTTOM_PADDING',
|
45
|
-
allPluginParamsIds: ['PP_PIE_HALF_DONUT', 'PP_PIE_LABELS_HALF_ANGLE', 'PP_SERIES_LEGEND_ROUND'],
|
46
|
-
description: '半圓甜甜圈圖'
|
47
|
-
})
|
48
|
-
|
49
|
-
// -- grid --
|
50
|
-
// 通用 - PRESET_GRID_[name]
|
51
|
-
export const PRESET_GRID_BASIC = createGridPreset({
|
52
|
-
chartParamsId: 'CP_BOTTOM_PADDING',
|
53
|
-
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
|
54
|
-
description: '基本Grid參數'
|
55
|
-
})
|
56
|
-
export const PRESET_GRID_ROTATE_AXIS_LABEL = createGridPreset({
|
57
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
58
|
-
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
59
|
-
description: '傾斜標籤'
|
60
|
-
})
|
61
|
-
export const PRESET_GRID_HORIZONTAL = createGridPreset({
|
62
|
-
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
63
|
-
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
64
|
-
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
|
65
|
-
description: '橫向圖'
|
66
|
-
})
|
67
|
-
export const PRESET_GRID_DIVERGING_SCALE = createGridPreset({
|
68
|
-
chartParamsId: 'CP_BOTTOM_PADDING',
|
69
|
-
dataFormatterId: 'DF_GRID_DIVERGING_SCALE',
|
70
|
-
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
|
71
|
-
description: '正負值分向圖'
|
72
|
-
})
|
73
|
-
export const PRESET_GRID_2_SERIES_SLOT = createGridPreset({
|
74
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
75
|
-
dataFormatterId: 'DF_GRID_2_SERIES_SLOT',
|
76
|
-
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
77
|
-
description: '2組Series圖表'
|
78
|
-
})
|
79
|
-
export const PRESET_GRID_3_SERIES_SLOT = createGridPreset({
|
80
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
81
|
-
dataFormatterId: 'DF_GRID_3_SERIES_SLOT',
|
82
|
-
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM', 'PP_GROUP_AXIS_ROTATE_LABEL'],
|
83
|
-
description: '3組Series圖表'
|
84
|
-
})
|
85
|
-
export const PRESET_GRID_4_SERIES_SLOT = createGridPreset({
|
86
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
87
|
-
dataFormatterId: 'DF_GRID_4_SERIES_SLOT',
|
88
|
-
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM'],
|
89
|
-
description: '4組Series圖表'
|
90
|
-
})
|
91
|
-
// Bars - PRESET_BARS_[name]
|
92
|
-
export const PRESET_BARS_ROUND = createGridPreset({
|
93
|
-
chartParamsId: 'CP_BOTTOM_PADDING',
|
94
|
-
allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
|
95
|
-
description: '圓角長條圖'
|
96
|
-
})
|
97
|
-
export const PRESET_BARS_HORIZONTAL_AND_ROUND = createGridPreset({
|
98
|
-
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
99
|
-
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
100
|
-
allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
|
101
|
-
description: '橫向圓角長條圖'
|
102
|
-
})
|
103
|
-
export const PRESET_BARS_THIN = createGridPreset({
|
104
|
-
chartParamsId: 'CP_BOTTOM_PADDING',
|
105
|
-
allPluginParamsIds: ['PP_BARS_THIN', 'PP_GRID_LEGEND_BOTTOM'],
|
106
|
-
description: '細長條圖'
|
107
|
-
})
|
108
|
-
export const PRESET_BARS_HORIZONTAL_AND_THIN = createGridPreset({
|
109
|
-
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING',
|
110
|
-
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
111
|
-
allPluginParamsIds: ['PP_BARS_ROUND', 'PP_GRID_LEGEND_BOTTOM_WITH_ROUND_LIST'],
|
112
|
-
description: '橫向圓角長條圖'
|
113
|
-
})
|
114
|
-
// Lines - PRESET_LINES_[name]
|
115
|
-
export const PRESET_LINES_BASIC = createGridPreset({
|
116
|
-
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
117
|
-
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
118
|
-
description: '基本Grid參數'
|
119
|
-
})
|
120
|
-
export const PRESET_LINES_ROTATE_AXIS_LABEL = createGridPreset({
|
121
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING_WITH_SERIES_HIGHLIGHT',
|
122
|
-
allPluginParamsIds: ['PP_GROUP_AXIS_ROTATE_LABEL', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
123
|
-
description: '傾斜標籤'
|
124
|
-
})
|
125
|
-
export const PRESET_LINES_HORIZONTAL = createGridPreset({
|
126
|
-
chartParamsId: 'CP_BOTTOM_AND_LEFT_PADDING_WITH_SERIES_HIGHLIGHT',
|
127
|
-
dataFormatterId: 'DF_GRID_BOTTOM_VALUE_AXIS',
|
128
|
-
allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
129
|
-
description: '橫向圓角長條圖'
|
130
|
-
})
|
131
|
-
// export const PRESET_LINES_WITH_SOLID_DOTS = createGridPreset({
|
132
|
-
// chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
133
|
-
// allPluginParamsIds: ['PP_DOTS_SOLID', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
134
|
-
// description: '折線圖及實心圓點'
|
135
|
-
// })
|
136
|
-
export const PRESET_LINES_CURVE = createGridPreset({
|
137
|
-
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
138
|
-
allPluginParamsIds: ['PP_LINES_CURVE', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
139
|
-
description: '弧線折線圖'
|
140
|
-
})
|
141
|
-
// export const PRESET_LINES_CURVES_WITH_SOLID_DOTS = createGridPreset({
|
142
|
-
// chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
143
|
-
// allPluginParamsIds: ['PP_LINES_CURVE', 'PP_DOTS_SOLID', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
144
|
-
// description: '弧線折線圖及實心圓點'
|
145
|
-
// })
|
146
|
-
export const PRESET_LINES_HIGHLIGHT_GROUP_DOTS = createGridPreset({
|
147
|
-
chartParamsId: 'CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT',
|
148
|
-
allPluginParamsIds: ['PP_DOTS_ONLY_SHOW_HIGHLIGHTED', 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
149
|
-
description: '折線圖及Highlight Group圓點'
|
150
|
-
})
|
151
|
-
|
152
|
-
// -- multi-grid --
|
153
|
-
// 通用 - PRESET_MULTI_GRID_[name]
|
154
|
-
export const PRESET_MULTI_GRID_BASIC = createMultiGridPreset({
|
155
|
-
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
156
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'],
|
157
|
-
description: '基本MultiGrid參數'
|
158
|
-
})
|
159
|
-
export const PRESET_MULTI_GRID_ROUND_STYLE = createMultiGridPreset({
|
160
|
-
chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
161
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_ROUND_AND_LINE_LIST', 'PP_MULTI_BARS_ROUND', 'PP_MULTI_LINES_CURVE'],
|
162
|
-
description: 'MultiGrid圓弧風格'
|
163
|
-
})
|
164
|
-
export const PRESET_MULTI_GRID_2_GRID_SLOT = createMultiGridPreset({
|
165
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
166
|
-
dataFormatterId: 'DF_MULTI_GRID_2_GRID_SLOT',
|
167
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT'],
|
168
|
-
description: '2組Grid圖表'
|
169
|
-
})
|
170
|
-
export const PRESET_MULTI_GRID_3_GRID_SLOT = createMultiGridPreset({
|
171
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
172
|
-
dataFormatterId: 'DF_MULTI_GRID_3_GRID_SLOT',
|
173
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT'],
|
174
|
-
description: '3組Grid圖表'
|
175
|
-
})
|
176
|
-
export const PRESET_MULTI_GRID_4_GRID_SLOT = createMultiGridPreset({
|
177
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
178
|
-
dataFormatterId: 'DF_MULTI_GRID_4_GRID_SLOT',
|
179
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT'],
|
180
|
-
description: '4組Grid圖表'
|
181
|
-
})
|
182
|
-
// // MultiBars, MultiLines - PRESET_MULTI_BARS_MULTI_LINES_[name]
|
183
|
-
// export const PRESET_MULTI_BARS_MULTI_LINES_BASIC = createMultiGridPreset({
|
184
|
-
// chartParamsId: 'CP_BOTTOM_PADDING_WITH_SERIES_HIGHLIGHT',
|
185
|
-
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_RECT_AND_LINE_LIST'],
|
186
|
-
// description: '基本MultiGrid參數'
|
187
|
-
// })
|
188
|
-
// MultiLines - PRESET_MULTI_LINES_[name]
|
189
|
-
// export const PRESET_MULTI_LINES_BASIC = createMultiGridPreset({
|
190
|
-
// chartParamsId: 'CP_BOTTOM_PADDING',
|
191
|
-
// allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'],
|
192
|
-
// description: '基本MultiGrid參數'
|
193
|
-
// })
|
194
|
-
export const PRESET_MULTI_LINES_2_GRID_SLOT = createMultiGridPreset({
|
195
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
196
|
-
dataFormatterId: 'DF_MULTI_GRID_2_GRID_SLOT',
|
197
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_2_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_2_GRID_SLOT', 'PP_MULTI_BARS_2_GRID_SLOT', 'PP_MULTI_BAR_STACK_2_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_2_GRID_SLOT', 'PP_MULTI_LINES_2_GRID_SLOT'],
|
198
|
-
description: '2組折線圖表'
|
199
|
-
})
|
200
|
-
export const PRESET_MULTI_LINES_3_GRID_SLOT = createMultiGridPreset({
|
201
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
202
|
-
dataFormatterId: 'DF_MULTI_GRID_3_GRID_SLOT',
|
203
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_3_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_3_GRID_SLOT', 'PP_MULTI_BARS_3_GRID_SLOT', 'PP_MULTI_BAR_STACK_3_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_3_GRID_SLOT', 'PP_MULTI_LINES_3_GRID_SLOT'],
|
204
|
-
description: '3組折線圖表'
|
205
|
-
})
|
206
|
-
export const PRESET_MULTI_LINES_4_GRID_SLOT = createMultiGridPreset({
|
207
|
-
chartParamsId: 'CP_BOTTOM_LONG_PADDING',
|
208
|
-
dataFormatterId: 'DF_MULTI_GRID_4_GRID_SLOT',
|
209
|
-
allPluginParamsIds: ['PP_MULTI_GRID_LEGEND_BOTTOM_WITH_LINE_LIST', 'PP_MULTI_GROUP_AXIS_4_GRID_SLOT', 'PP_MULTI_VALUE_AXIS_4_GRID_SLOT', 'PP_MULTI_BARS_4_GRID_SLOT', 'PP_MULTI_BAR_STACK_4_GRID_SLOT', 'PP_MULTI_BARS_TRIANGLE_4_GRID_SLOT', 'PP_MULTI_LINES_4_GRID_SLOT'],
|
210
|
-
description: '4組折線圖表'
|
211
|
-
})
|
212
|
-
|
213
|
-
// -- multi-value --
|
214
|
-
|
215
|
-
// -- relationship --
|
216
|
-
|
217
|
-
// -- tree --
|
218
|
-
|
1
|
+
export * from './series'
|
2
|
+
export * from './grid'
|
3
|
+
export * from './multiGrid'
|
4
|
+
export * from './tree'
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
// import { ALL_PLUGIN_PARAMS_MULTI_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_MULTI_GRID_BASIC: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_MULTI_GRID_BASIC',
|
11
|
+
description: '基本MultiGrid參數',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 120,
|
17
|
+
left: 60
|
18
|
+
},
|
19
|
+
highlightTarget: 'series'
|
20
|
+
},
|
21
|
+
allPluginParams: {
|
22
|
+
// ...ALL_PLUGIN_PARAMS_MULTI_GRID,
|
23
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
24
|
+
MultiGridLegend: {
|
25
|
+
// position: 'bottom',
|
26
|
+
// justify: 'center',
|
27
|
+
placement: 'bottom',
|
28
|
+
padding: 14,
|
29
|
+
gridList: [
|
30
|
+
{
|
31
|
+
},
|
32
|
+
{
|
33
|
+
listRectHeight: 2,
|
34
|
+
}
|
35
|
+
]
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_MULTI_GRID_DIVERGING',
|
11
|
+
description: '雙向折線圖',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 120,
|
17
|
+
left: 60
|
18
|
+
},
|
19
|
+
},
|
20
|
+
dataFormatter: {
|
21
|
+
gridList: [
|
22
|
+
// 第一個grid
|
23
|
+
{
|
24
|
+
groupAxis: {
|
25
|
+
position: 'right'
|
26
|
+
},
|
27
|
+
valueAxis: {
|
28
|
+
position: 'bottom'
|
29
|
+
},
|
30
|
+
},
|
31
|
+
// 第二個grid
|
32
|
+
{
|
33
|
+
groupAxis: {
|
34
|
+
position: 'left'
|
35
|
+
},
|
36
|
+
valueAxis: {
|
37
|
+
position: 'bottom'
|
38
|
+
},
|
39
|
+
}
|
40
|
+
],
|
41
|
+
// 設定排版方式
|
42
|
+
container: {
|
43
|
+
gap: 200,
|
44
|
+
rowAmount: 1,
|
45
|
+
columnAmount: 2
|
46
|
+
},
|
47
|
+
separateGrid: true // 將兩個grid拆分
|
48
|
+
},
|
49
|
+
allPluginParams: {
|
50
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
51
|
+
MultiGroupAxis: {
|
52
|
+
tickPadding: 60, // 加長間距
|
53
|
+
gridIndexes: [0] // 只顯示一個
|
54
|
+
},
|
55
|
+
MultiValueAxis: {
|
56
|
+
gridIndexes: [0, 1]
|
57
|
+
},
|
58
|
+
MultiValueStackAxis: {
|
59
|
+
gridIndexes: [0, 1]
|
60
|
+
},
|
61
|
+
MultiBars: {
|
62
|
+
gridIndexes: [0, 1]
|
63
|
+
},
|
64
|
+
MultiBarStack: {
|
65
|
+
gridIndexes: [0, 1]
|
66
|
+
},
|
67
|
+
MultiBarsTriangle: {
|
68
|
+
gridIndexes: [0, 1]
|
69
|
+
},
|
70
|
+
MultiLines: {
|
71
|
+
gridIndexes: [0, 1]
|
72
|
+
},
|
73
|
+
MultiLineAreas: {
|
74
|
+
gridIndexes: [0, 1]
|
75
|
+
},
|
76
|
+
MultiDots: {
|
77
|
+
gridIndexes: [0, 1]
|
78
|
+
},
|
79
|
+
MultiGridLegend: {
|
80
|
+
// position: 'bottom',
|
81
|
+
// justify: 'center',
|
82
|
+
placement: 'bottom',
|
83
|
+
padding: 14,
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
type PresetMultiGridRoundPluginParams = Omit<PresetMultiGridPluginParams, 'MultiBarsTriangle'>
|
9
|
+
|
10
|
+
export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
11
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
12
|
+
name: 'PRESET_MULTI_GRID_ROUND_STYLE',
|
13
|
+
description: 'MultiGrid圓弧風格',
|
14
|
+
chartParams: {
|
15
|
+
padding: {
|
16
|
+
top: 60,
|
17
|
+
right: 60,
|
18
|
+
bottom: 120,
|
19
|
+
left: 60
|
20
|
+
},
|
21
|
+
highlightTarget: 'series'
|
22
|
+
},
|
23
|
+
allPluginParams: {
|
24
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
25
|
+
MultiBars: {
|
26
|
+
barWidth: 0,
|
27
|
+
barPadding: 1,
|
28
|
+
barGroupPadding: 10,
|
29
|
+
barRadius: true,
|
30
|
+
},
|
31
|
+
MultiBarStack: {},
|
32
|
+
MultiDots: {},
|
33
|
+
MultiGridLegend: {
|
34
|
+
// position: 'bottom',
|
35
|
+
// justify: 'center',
|
36
|
+
placement: 'bottom',
|
37
|
+
padding: 14,
|
38
|
+
gridList: [
|
39
|
+
{
|
40
|
+
listRectRadius: 7,
|
41
|
+
},
|
42
|
+
{
|
43
|
+
listRectHeight: 2,
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
MultiGroupAxis: {},
|
48
|
+
MultiLineAreas: {},
|
49
|
+
MultiLines: {
|
50
|
+
lineCurve: 'curveMonotoneX',
|
51
|
+
lineWidth: 3
|
52
|
+
},
|
53
|
+
MultiValueAxis: {},
|
54
|
+
MultiValueStackAxis: {},
|
55
|
+
OverlappingValueAxes: {},
|
56
|
+
OverlappingValueStackAxes: {},
|
57
|
+
}
|
58
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_MULTI_GRID_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_MULTI_GRID_SEPARATE_GRID',
|
11
|
+
description: '2組Grid圖表',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 160,
|
17
|
+
left: 60
|
18
|
+
},
|
19
|
+
},
|
20
|
+
dataFormatter: {
|
21
|
+
separateGrid: true,
|
22
|
+
},
|
23
|
+
allPluginParams: {
|
24
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
25
|
+
MultiGroupAxis: {
|
26
|
+
tickTextRotate: -30,
|
27
|
+
gridIndexes: 'all'
|
28
|
+
},
|
29
|
+
MultiValueAxis: {
|
30
|
+
gridIndexes: 'all'
|
31
|
+
},
|
32
|
+
MultiValueStackAxis: {
|
33
|
+
gridIndexes: 'all'
|
34
|
+
},
|
35
|
+
MultiBars: {
|
36
|
+
gridIndexes: 'all'
|
37
|
+
},
|
38
|
+
MultiBarStack: {
|
39
|
+
gridIndexes: 'all'
|
40
|
+
},
|
41
|
+
MultiBarsTriangle: {
|
42
|
+
gridIndexes: 'all'
|
43
|
+
},
|
44
|
+
MultiLines: {
|
45
|
+
gridIndexes: 'all'
|
46
|
+
},
|
47
|
+
MultiLineAreas: {
|
48
|
+
gridIndexes: 'all'
|
49
|
+
},
|
50
|
+
MultiDots: {
|
51
|
+
gridIndexes: 'all'
|
52
|
+
},
|
53
|
+
MultiGridLegend: {
|
54
|
+
// position: 'bottom',
|
55
|
+
// justify: 'center',
|
56
|
+
placement: 'bottom',
|
57
|
+
padding: 14,
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_MULTI_LINES_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_MULTI_LINES_SEPARATE_GRID',
|
11
|
+
description: '多組分開折線圖表',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 160,
|
17
|
+
left: 60
|
18
|
+
},
|
19
|
+
},
|
20
|
+
dataFormatter: {
|
21
|
+
separateGrid: true,
|
22
|
+
},
|
23
|
+
allPluginParams: {
|
24
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
25
|
+
MultiGroupAxis: {
|
26
|
+
tickTextRotate: -30,
|
27
|
+
gridIndexes: 'all'
|
28
|
+
},
|
29
|
+
MultiValueAxis: {
|
30
|
+
gridIndexes: 'all'
|
31
|
+
},
|
32
|
+
MultiValueStackAxis: {
|
33
|
+
gridIndexes: 'all'
|
34
|
+
},
|
35
|
+
MultiBars: {
|
36
|
+
gridIndexes: 'all'
|
37
|
+
},
|
38
|
+
MultiBarStack: {
|
39
|
+
gridIndexes: 'all'
|
40
|
+
},
|
41
|
+
MultiBarsTriangle: {
|
42
|
+
gridIndexes: 'all'
|
43
|
+
},
|
44
|
+
MultiLines: {
|
45
|
+
gridIndexes: 'all'
|
46
|
+
},
|
47
|
+
MultiLineAreas: {
|
48
|
+
gridIndexes: 'all'
|
49
|
+
},
|
50
|
+
MultiDots: {
|
51
|
+
gridIndexes: 'all'
|
52
|
+
},
|
53
|
+
MultiGridLegend: {
|
54
|
+
// position: 'bottom',
|
55
|
+
// justify: 'center',
|
56
|
+
placement: 'bottom',
|
57
|
+
padding: 14,
|
58
|
+
gridList: [
|
59
|
+
{
|
60
|
+
listRectHeight: 2,
|
61
|
+
},
|
62
|
+
{
|
63
|
+
listRectHeight: 2,
|
64
|
+
},
|
65
|
+
{
|
66
|
+
listRectHeight: 2,
|
67
|
+
},
|
68
|
+
{
|
69
|
+
listRectHeight: 2,
|
70
|
+
},
|
71
|
+
{
|
72
|
+
listRectHeight: 2,
|
73
|
+
},
|
74
|
+
{
|
75
|
+
listRectHeight: 2,
|
76
|
+
},
|
77
|
+
{
|
78
|
+
listRectHeight: 2,
|
79
|
+
},
|
80
|
+
{
|
81
|
+
listRectHeight: 2,
|
82
|
+
}
|
83
|
+
]
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type {
|
3
|
+
PresetMultiGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_MULTI_LINE_AREAS_SEPARATE_GRID: PresetPartial<'multiGrid', Partial<PresetMultiGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_MULTI_LINE_AREAS_SEPARATE_GRID',
|
11
|
+
description: '2組區域圖表',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 160,
|
17
|
+
left: 60
|
18
|
+
},
|
19
|
+
},
|
20
|
+
dataFormatter: {
|
21
|
+
gridList: [
|
22
|
+
{
|
23
|
+
// slotIndex: 0
|
24
|
+
groupAxis: {
|
25
|
+
scalePadding: 0
|
26
|
+
}
|
27
|
+
},
|
28
|
+
{
|
29
|
+
// slotIndex: 1,
|
30
|
+
groupAxis: {
|
31
|
+
scalePadding: 0
|
32
|
+
}
|
33
|
+
}
|
34
|
+
],
|
35
|
+
separateGrid: true,
|
36
|
+
// container: {
|
37
|
+
// rowAmount: 1,
|
38
|
+
// columnAmount: 2,
|
39
|
+
// }
|
40
|
+
},
|
41
|
+
allPluginParams: {
|
42
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
43
|
+
MultiGroupAxis: {
|
44
|
+
tickTextRotate: -30,
|
45
|
+
gridIndexes: 'all'
|
46
|
+
},
|
47
|
+
MultiValueAxis: {
|
48
|
+
gridIndexes: 'all'
|
49
|
+
},
|
50
|
+
MultiValueStackAxis: {
|
51
|
+
gridIndexes: 'all'
|
52
|
+
},
|
53
|
+
MultiBars: {
|
54
|
+
gridIndexes: 'all'
|
55
|
+
},
|
56
|
+
MultiBarStack: {
|
57
|
+
gridIndexes: 'all'
|
58
|
+
},
|
59
|
+
MultiBarsTriangle: {
|
60
|
+
gridIndexes: 'all'
|
61
|
+
},
|
62
|
+
MultiLines: {
|
63
|
+
gridIndexes: 'all'
|
64
|
+
},
|
65
|
+
MultiLineAreas: {
|
66
|
+
gridIndexes: 'all'
|
67
|
+
},
|
68
|
+
MultiDots: {
|
69
|
+
gridIndexes: 'all'
|
70
|
+
},
|
71
|
+
MultiGridLegend: {
|
72
|
+
// position: 'bottom',
|
73
|
+
// justify: 'center',
|
74
|
+
placement: 'bottom',
|
75
|
+
padding: 14,
|
76
|
+
gridList: [
|
77
|
+
{
|
78
|
+
listRectHeight: 2,
|
79
|
+
},
|
80
|
+
{
|
81
|
+
listRectHeight: 2,
|
82
|
+
},
|
83
|
+
{
|
84
|
+
listRectHeight: 2,
|
85
|
+
},
|
86
|
+
{
|
87
|
+
listRectHeight: 2,
|
88
|
+
},
|
89
|
+
{
|
90
|
+
listRectHeight: 2,
|
91
|
+
},
|
92
|
+
{
|
93
|
+
listRectHeight: 2,
|
94
|
+
},
|
95
|
+
{
|
96
|
+
listRectHeight: 2,
|
97
|
+
},
|
98
|
+
{
|
99
|
+
listRectHeight: 2,
|
100
|
+
}
|
101
|
+
]
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { PRESET_MULTI_GRID_BASIC } from './PRESET_MULTI_GRID_BASIC'
|
2
|
+
export { PRESET_MULTI_GRID_DIVERGING } from './PRESET_MULTI_GRID_DIVERGING'
|
3
|
+
export { PRESET_MULTI_GRID_ROUND_STYLE } from './PRESET_MULTI_GRID_ROUND_STYLE'
|
4
|
+
export { PRESET_MULTI_GRID_SEPARATE_GRID } from './PRESET_MULTI_GRID_SEPARATE_GRID'
|
5
|
+
export { PRESET_MULTI_LINE_AREAS_SEPARATE_GRID } from './PRESET_MULTI_LINE_AREAS_SEPARATE_GRID'
|
6
|
+
export { PRESET_MULTI_LINES_SEPARATE_GRID } from './PRESET_MULTI_LINES_SEPARATE_GRID'
|