@orbcharts/presets-basic 3.0.0-beta.1 → 3.0.0-beta.10
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/orbcharts-presets-basic.es.js +418 -157
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.d.ts +4 -0
- package/dist/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.d.ts +4 -0
- package/dist/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.d.ts +4 -0
- package/dist/src/multiValue/index.d.ts +4 -0
- package/dist/src/params.d.ts +3 -1
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BASIC.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.d.ts +4 -0
- package/dist/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.d.ts +4 -0
- package/dist/src/relationship/index.d.ts +8 -0
- package/dist/src/tree/PRESET_TREE_MAP_BASIC.d.ts +4 -0
- package/dist/src/tree/index.d.ts +1 -1
- package/dist/src/types.d.ts +55 -14
- package/package.json +3 -3
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +2 -2
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +2 -2
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +2 -2
- package/src/grid/PRESET_GRID_PN_SCALE.ts +2 -2
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +2 -2
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +2 -2
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +1 -1
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +2 -2
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +2 -2
- package/src/index.ts +2 -0
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +2 -2
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +3 -3
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +2 -2
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +2 -2
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +2 -2
- package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -0
- package/src/multiValue/PRESET_MULTI_VALUE_SEPARATE_CATEGORY.ts +26 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_LINEAR_OPACITY.ts +26 -0
- package/src/multiValue/PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS.ts +26 -0
- package/src/multiValue/index.ts +4 -0
- package/src/params.ts +25 -5
- package/src/relationship/PRESET_FORCE_DIRECTED_BASIC.ts +23 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_BASIC.ts +23 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH.ts +28 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW.ts +30 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM.ts +25 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_FIX_FONT_SIZE.ts +30 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ARROW.ts +28 -0
- package/src/relationship/PRESET_FORCE_DIRECTED_NONE_ZOOM.ts +25 -0
- package/src/relationship/index.ts +8 -0
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +1 -1
- package/src/tree/{PRESET_TREE_BASIC.ts → PRESET_TREE_MAP_BASIC.ts} +3 -3
- package/src/tree/index.ts +1 -1
- package/src/types.ts +103 -21
- package/dist/src/tree/PRESET_TREE_BASIC.d.ts +0 -4
@@ -1 +1 @@
|
|
1
|
-
(function(t,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t["orbcharts-presets-basic"]={}))})(this,function(t){"use strict";const i={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},g={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{Bubbles:{},SeriesLegend:{listRectRadius:7},SeriesTooltip:{}}},r={name:"PRESET_PIE_BASIC",description:"基本Pie參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};r.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const E={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};E.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const s={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const l={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};l.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const n={name:"PRESET_ROSE_BASIC",description:"基本Rose參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};n.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const d={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}};d.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const A={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{SeriesLegend:{listRectRadius:7}}},o={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0,sumSeries:!0},allPluginParams:{}};o.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const S={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0},allPluginParams:{}};S.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const _={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,sumSeries:!0},allPluginParams:{}};_.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const P={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},u={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},I={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},m={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},c={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},p={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{grid:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},L={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{grid:{separateSeries:!0}},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},G={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},b={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},x={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{groupAxis:{scalePadding:0}}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},B={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{grid:{separateSeries:!0,groupAxis:{scalePadding:0}}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},M={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},O={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{grid:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}}},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},v={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{radius:3,fillColorType:"series",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},f={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiGridLegend:{placement:"bottom",padding:14,gridList:[{},{listRectHeight:2}]}}},F={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{gridList:[{groupAxis:{position:"right"},valueAxis:{position:"bottom"}},{groupAxis:{position:"left"},valueAxis:{position:"bottom"}}],container:{gap:200,rowAmount:1,columnAmount:2},separateGrid:!0},allPluginParams:{MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiValueStackAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiBarStack:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{placement:"bottom",padding:14}}},V={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiBarStack:{},MultiDots:{},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiValueStackAxis:{},OverlappingValueAxes:{},OverlappingValueStackAxes:{}}},k={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14}}},R={},Z={name:"PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",description:"2組區域圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{scalePadding:0}},{groupAxis:{scalePadding:0}}],separateGrid:!0},allPluginParams:{...R,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},W={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...R,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiValueStackAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiBarStack:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},X={name:"PRESET_TREE_BASIC",description:"基本Tree參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{TreeMap:{},TreeLegend:{placement:"bottom",padding:14}}};t.PRESET_BARS_HORIZONTAL_AND_ROUND=P,t.PRESET_BARS_HORIZONTAL_AND_THIN=u,t.PRESET_BARS_ROUND=I,t.PRESET_BARS_THIN=T,t.PRESET_BUBBLES_SCALING_BY_RADIUS=i,t.PRESET_BUBBLES_SEPARATE_SERIES=g,t.PRESET_GRID_BASIC=m,t.PRESET_GRID_HORIZONTAL=c,t.PRESET_GRID_PN_SCALE=p,t.PRESET_GRID_ROTATE_AXIS_LABEL=L,t.PRESET_GRID_SEPARATE_SERIES=h,t.PRESET_LINES_BASIC=M,t.PRESET_LINES_CURVE=O,t.PRESET_LINES_HORIZONTAL=H,t.PRESET_LINES_LOOSE_TICKS=v,t.PRESET_LINES_ROTATE_AXIS_LABEL=U,t.PRESET_LINES_WITH_SOLID_DOTS=C,t.PRESET_LINE_AREAS_BASIC=G,t.PRESET_LINE_AREAS_CURVE=b,t.PRESET_LINE_AREAS_HORIZONTAL=N,t.PRESET_LINE_AREAS_LOOSE_TICKS=x,t.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=D,t.PRESET_LINE_AREAS_SEPARATE_SERIES=B,t.PRESET_MULTI_GRID_BASIC=f,t.PRESET_MULTI_GRID_DIVERGING=F,t.PRESET_MULTI_GRID_ROUND_STYLE=V,t.PRESET_MULTI_GRID_SEPARATE_GRID=k,t.PRESET_MULTI_LINES_SEPARATE_GRID=W,t.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=Z,t.PRESET_PIE_BASIC=r,t.PRESET_PIE_DONUT=E,t.PRESET_PIE_HALF_DONUT=s,t.PRESET_PIE_WITH_INNER_LABELS=l,t.PRESET_ROSE_BASIC=n,t.PRESET_ROSE_SCALING_BY_RADIUS=d,t.PRESET_SERIES_BASIC=A,t.PRESET_SERIES_SEPARATE_SERIES=S,t.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=o,t.PRESET_SERIES_SUM_SERIES=_,t.PRESET_TREE_BASIC=X,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
1
|
+
(function(t,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t["orbcharts-presets-basic"]={}))})(this,function(t){"use strict";const i={name:"PRESET_BUBBLES_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的泡泡圖",allPluginParams:{Bubbles:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}},g={name:"PRESET_BUBBLES_SEPARATE_SERIES",description:"分開顯示Series泡泡",chartParams:{padding:{top:160,right:160,bottom:160,left:160}},dataFormatter:{separateSeries:!0},allPluginParams:{Bubbles:{},SeriesLegend:{listRectRadius:7},SeriesTooltip:{}}},E={name:"PRESET_PIE_BASIC",description:"基本Pie參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};E.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const r={name:"PRESET_PIE_DONUT",description:"甜甜圈圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5},PieLabels:{},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};r.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const l={name:"PRESET_PIE_HALF_DONUT",description:"半圓甜甜圈圖",chartParams:{padding:{top:120,right:120,bottom:0,left:60}},dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{innerRadius:.5,startAngle:-Math.PI/2,endAngle:Math.PI/2},PieLabels:{startAngle:-Math.PI/2,endAngle:Math.PI/2},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};l.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const s={name:"PRESET_PIE_WITH_INNER_LABELS",description:"圓餅圖及內部資料標籤",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Pie:{},PieLabels:{labelCentroid:1.3,labelColorType:"labelContrast"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};s.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const _={name:"PRESET_ROSE_BASIC",description:"基本Rose參數",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{SeriesLegend:{listRectRadius:7}}};_.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const n={name:"PRESET_ROSE_SCALING_BY_RADIUS",description:"以半徑尺寸為比例的玫瑰圖",dataFormatter:{sort:(e,a)=>a.value-e.value},allPluginParams:{Rose:{arcScaleType:"radius"},RoseLabels:{arcScaleType:"radius"},SeriesLegend:{listRectRadius:7}}};n.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const P={name:"PRESET_SERIES_BASIC",description:"基本Series參數",allPluginParams:{SeriesLegend:{listRectRadius:7}}},R={name:"PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES",description:"分開顯示Series並合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0,sumSeries:!0},allPluginParams:{}};R.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const d={name:"PRESET_SERIES_SEPARATE_SERIES",description:"分開顯示Series",dataFormatter:{sort:(e,a)=>a.value-e.value,separateSeries:!0},allPluginParams:{}};d.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const o={name:"PRESET_SERIES_SUM_SERIES",description:"合併Series資料",dataFormatter:{sort:(e,a)=>a.value-e.value,sumSeries:!0},allPluginParams:{}};o.dataFormatter.sort.toString=()=>"(a, b) => b.value - a.value";const A={name:"PRESET_BARS_HORIZONTAL_AND_ROUND",description:"橫向圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},T={name:"PRESET_BARS_HORIZONTAL_AND_THIN",description:"橫向細長長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},u={name:"PRESET_BARS_ROUND",description:"圓角長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectRadius:7}}},I={name:"PRESET_BARS_THIN",description:"細長條圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{Bars:{barWidth:20,barPadding:1,barGroupPadding:10},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14}}},c={name:"PRESET_GRID_BASIC",description:"基本Grid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},m={name:"PRESET_GRID_HORIZONTAL",description:"橫向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160}},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},L={name:"PRESET_GRID_PN_SCALE",description:"正負值分向圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{valueAxis:{scaleDomain:["auto","auto"],scaleRange:[.05,.95]}},allPluginParams:{GridLegend:{placement:"bottom",padding:14}}},p={name:"PRESET_GRID_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},h={name:"PRESET_GRID_SEPARATE_SERIES",description:"分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateSeries:!0},allPluginParams:{GroupAux:{labelRotate:-30},GroupAxis:{tickPadding:15,tickTextRotate:-30},GridLegend:{placement:"bottom",padding:14}}},B={name:"PRESET_LINE_AREAS_BASIC",description:"基本LineArea參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},D={name:"PRESET_LINE_AREAS_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},LineAreas:{lineCurve:"curveMonotoneX"},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},b={name:"PRESET_LINE_AREAS_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left",scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},O={name:"PRESET_LINE_AREAS_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},N={name:"PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},G={name:"PRESET_LINE_AREAS_SEPARATE_SERIES",description:"LineAreas 分開顯示Series",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},dataFormatter:{separateSeries:!0,groupAxis:{scalePadding:0}},allPluginParams:{Lines:{},LineAreas:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},C={name:"PRESET_LINES_BASIC",description:"基本Lines參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},M={name:"PRESET_LINES_CURVE",description:"弧線折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{lineCurve:"curveMonotoneX",lineWidth:3},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},x={name:"PRESET_LINES_HORIZONTAL",description:"橫向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:160},highlightTarget:"series"},dataFormatter:{valueAxis:{position:"bottom"},groupAxis:{position:"left"}},allPluginParams:{Lines:{},Dots:{},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},U={name:"PRESET_LINES_LOOSE_TICKS",description:"寬鬆標籤",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{ticks:6},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},F={name:"PRESET_LINES_ROTATE_AXIS_LABEL",description:"傾斜標籤",chartParams:{padding:{top:60,right:60,bottom:160,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{},GroupAxis:{tickPadding:15,tickTextRotate:-30},ValueAxis:{},GroupAux:{labelRotate:-30},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},H={name:"PRESET_LINES_WITH_SOLID_DOTS",description:"折線圖及實心圓點",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{Lines:{},Dots:{radius:3,fillColorType:"label",onlyShowHighlighted:!1},GroupAxis:{},ValueAxis:{},GroupAux:{},GridLegend:{placement:"bottom",padding:14,listRectHeight:2}}},v={name:"PRESET_MULTI_GRID_BASIC",description:"基本MultiGrid參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiGridLegend:{placement:"bottom",padding:14,gridList:[{},{listRectHeight:2}]}}},f={name:"PRESET_MULTI_GRID_DIVERGING",description:"雙向折線圖",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{gridList:[{groupAxis:{position:"right"},valueAxis:{position:"bottom"}},{groupAxis:{position:"left"},valueAxis:{position:"bottom"}}],container:{gap:200,rowAmount:1,columnAmount:2},separateGrid:!0},allPluginParams:{MultiGroupAxis:{tickPadding:60,gridIndexes:[0]},MultiValueAxis:{gridIndexes:[0,1]},MultiStackedValueAxis:{gridIndexes:[0,1]},MultiBars:{gridIndexes:[0,1]},MultiStackedBar:{gridIndexes:[0,1]},MultiBarsTriangle:{gridIndexes:[0,1]},MultiLines:{gridIndexes:[0,1]},MultiLineAreas:{gridIndexes:[0,1]},MultiDots:{gridIndexes:[0,1]},MultiGridLegend:{placement:"bottom",padding:14}}},V={name:"PRESET_MULTI_GRID_ROUND_STYLE",description:"MultiGrid圓弧風格",chartParams:{padding:{top:60,right:60,bottom:120,left:60},highlightTarget:"series"},allPluginParams:{MultiBars:{barWidth:0,barPadding:1,barGroupPadding:10,barRadius:!0},MultiStackedBar:{},MultiDots:{},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectRadius:7},{listRectHeight:2}]},MultiGroupAxis:{},MultiLineAreas:{},MultiLines:{lineCurve:"curveMonotoneX",lineWidth:3},MultiValueAxis:{},MultiStackedValueAxis:{},OverlappingValueAxes:{},OverlappingStackedValueAxes:{}}},W={name:"PRESET_MULTI_GRID_SEPARATE_GRID",description:"2組Grid圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14}}},S={},k={name:"PRESET_MULTI_LINE_AREAS_SEPARATE_GRID",description:"2組區域圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{gridList:[{groupAxis:{scalePadding:0}},{groupAxis:{scalePadding:0}}],separateGrid:!0},allPluginParams:{...S,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},Z={name:"PRESET_MULTI_LINES_SEPARATE_GRID",description:"多組分開折線圖表",chartParams:{padding:{top:60,right:60,bottom:160,left:60}},dataFormatter:{separateGrid:!0},allPluginParams:{...S,MultiGroupAxis:{tickTextRotate:-30,gridIndexes:"all"},MultiValueAxis:{gridIndexes:"all"},MultiStackedValueAxis:{gridIndexes:"all"},MultiBars:{gridIndexes:"all"},MultiStackedBar:{gridIndexes:"all"},MultiBarsTriangle:{gridIndexes:"all"},MultiLines:{gridIndexes:"all"},MultiLineAreas:{gridIndexes:"all"},MultiDots:{gridIndexes:"all"},MultiGridLegend:{placement:"bottom",padding:14,gridList:[{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2},{listRectHeight:2}]}}},X={name:"PRESET_MULTI_VALUE_BASIC",description:"基本MultiValue參數",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14}}},Y={name:"PRESET_MULTI_VALUE_SEPARATE_CATEGORY",description:"MultiValue 分開顯示category",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},dataFormatter:{separateCategory:!0},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14}}},y={name:"PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS",description:"ScatterBubbles以半徑尺寸為比例",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14},ScatterBubbles:{arcScaleType:"radius"}}},w={name:"PRESET_SCATTER_BUBBLES_LINEAR_OPACITY",description:"ScatterBubbles漸變透明度",chartParams:{padding:{top:60,right:60,bottom:120,left:60}},allPluginParams:{MultiValueLegend:{placement:"bottom",padding:14},ScatterBubbles:{valueLinearOpacity:[.6,.95]}}},K={name:"PRESET_FORCE_DIRECTED_BASIC",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{},RelationshipLegend:{listRectRadius:7}}},z={name:"PRESET_FORCE_DIRECTED_BUBBLES_BASIC",description:"基本Force Directed Bubbles參數",allPluginParams:{ForceDirectedBubbles:{},RelationshipLegend:{listRectRadius:7}}},j={name:"PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH",description:"Force Directed Bubbles固定箭頭寬度",allPluginParams:{ForceDirectedBubbles:{arrow:{strokeWidthMin:1.5,strokeWidthMax:1.5}},RelationshipLegend:{listRectRadius:7}}},q={name:"PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW",description:"Force Directed Bubbles沒有箭頭",allPluginParams:{ForceDirectedBubbles:{arrow:{pointerWidth:0,pointerHeight:0}},RelationshipLegend:{listRectRadius:7}}},J={name:"PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM",description:"Force Directed Bubbles無滑鼠托曳及縮放控制",allPluginParams:{ForceDirectedBubbles:{zoomable:!1},RelationshipLegend:{listRectRadius:7}}},Q={name:"PRESET_FORCE_DIRECTED_NONE_ZOOM",description:"Force Directed無滑鼠托曳及縮放控制",allPluginParams:{ForceDirected:{zoomable:!1},RelationshipLegend:{listRectRadius:7}}},$={name:"PRESET_FORCE_DIRECTED_FIX_FONT_SIZE",description:"基本Force Directed參數",allPluginParams:{ForceDirected:{dotLabel:{sizeFixed:!0},arrowLabel:{sizeFixed:!0}},RelationshipLegend:{listRectRadius:7}}},tt={name:"PRESET_FORCE_DIRECTED_NONE_ARROW",description:"Force Directed沒有箭頭",allPluginParams:{ForceDirected:{arrow:{pointerWidth:0,pointerHeight:0}},RelationshipLegend:{listRectRadius:7}}},et={name:"PRESET_TREE_MAP_BASIC",description:"基本Tree Map參數",chartParams:{padding:{top:40,right:40,bottom:60,left:40}},allPluginParams:{TreeMap:{},TreeLegend:{placement:"bottom",padding:14}}};t.PRESET_BARS_HORIZONTAL_AND_ROUND=A,t.PRESET_BARS_HORIZONTAL_AND_THIN=T,t.PRESET_BARS_ROUND=u,t.PRESET_BARS_THIN=I,t.PRESET_BUBBLES_SCALING_BY_RADIUS=i,t.PRESET_BUBBLES_SEPARATE_SERIES=g,t.PRESET_FORCE_DIRECTED_BASIC=K,t.PRESET_FORCE_DIRECTED_BUBBLES_BASIC=z,t.PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH=j,t.PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW=q,t.PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM=J,t.PRESET_FORCE_DIRECTED_FIX_FONT_SIZE=$,t.PRESET_FORCE_DIRECTED_NONE_ARROW=tt,t.PRESET_FORCE_DIRECTED_NONE_ZOOM=Q,t.PRESET_GRID_BASIC=c,t.PRESET_GRID_HORIZONTAL=m,t.PRESET_GRID_PN_SCALE=L,t.PRESET_GRID_ROTATE_AXIS_LABEL=p,t.PRESET_GRID_SEPARATE_SERIES=h,t.PRESET_LINES_BASIC=C,t.PRESET_LINES_CURVE=M,t.PRESET_LINES_HORIZONTAL=x,t.PRESET_LINES_LOOSE_TICKS=U,t.PRESET_LINES_ROTATE_AXIS_LABEL=F,t.PRESET_LINES_WITH_SOLID_DOTS=H,t.PRESET_LINE_AREAS_BASIC=B,t.PRESET_LINE_AREAS_CURVE=D,t.PRESET_LINE_AREAS_HORIZONTAL=b,t.PRESET_LINE_AREAS_LOOSE_TICKS=O,t.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=N,t.PRESET_LINE_AREAS_SEPARATE_SERIES=G,t.PRESET_MULTI_GRID_BASIC=v,t.PRESET_MULTI_GRID_DIVERGING=f,t.PRESET_MULTI_GRID_ROUND_STYLE=V,t.PRESET_MULTI_GRID_SEPARATE_GRID=W,t.PRESET_MULTI_LINES_SEPARATE_GRID=Z,t.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=k,t.PRESET_MULTI_VALUE_BASIC=X,t.PRESET_MULTI_VALUE_SEPARATE_CATEGORY=Y,t.PRESET_PIE_BASIC=E,t.PRESET_PIE_DONUT=r,t.PRESET_PIE_HALF_DONUT=l,t.PRESET_PIE_WITH_INNER_LABELS=s,t.PRESET_ROSE_BASIC=_,t.PRESET_ROSE_SCALING_BY_RADIUS=n,t.PRESET_SCATTER_BUBBLES_LINEAR_OPACITY=w,t.PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS=y,t.PRESET_SERIES_BASIC=P,t.PRESET_SERIES_SEPARATE_SERIES=d,t.PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES=R,t.PRESET_SERIES_SUM_SERIES=o,t.PRESET_TREE_MAP_BASIC=et,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/dist/src/index.d.ts
CHANGED
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_MULTI_VALUE_BASIC: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_MULTI_VALUE_SEPARATE_CATEGORY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_SCATTER_BUBBLES_LINEAR_OPACITY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { PRESET_MULTI_VALUE_BASIC } from './PRESET_MULTI_VALUE_BASIC';
|
2
|
+
export { PRESET_MULTI_VALUE_SEPARATE_CATEGORY } from './PRESET_MULTI_VALUE_SEPARATE_CATEGORY';
|
3
|
+
export { PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS } from './PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS';
|
4
|
+
export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY';
|
package/dist/src/params.d.ts
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import { PresetSeriesPluginParams, PresetGridPluginParams, PresetMultiGridPluginParams, PresetTreePluginParams, PresetNoneDataPluginParams } from './types';
|
1
|
+
import { PresetSeriesPluginParams, PresetGridPluginParams, PresetMultiGridPluginParams, PresetMultiValuePluginParams, PresetRelationshipPluginParams, PresetTreePluginParams, PresetNoneDataPluginParams } from './types';
|
2
2
|
|
3
3
|
export declare const ALL_PLUGIN_PARAMS_SERIES: PresetSeriesPluginParams;
|
4
4
|
export declare const ALL_PLUGIN_PARAMS_GRID: PresetGridPluginParams;
|
5
5
|
export declare const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams;
|
6
|
+
export declare const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams;
|
7
|
+
export declare const ALL_PLUGIN_PARAMS_RELATIONSHIP: PresetRelationshipPluginParams;
|
6
8
|
export declare const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams;
|
7
9
|
export declare const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_BASIC: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_FIX_FONT_SIZE: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_NONE_ARROW: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetRelationshipPluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_FORCE_DIRECTED_NONE_ZOOM: PresetPartial<'relationship', Partial<PresetRelationshipPluginParams> & Partial<PresetNoneDataPluginParams>>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export { PRESET_FORCE_DIRECTED_BASIC } from './PRESET_FORCE_DIRECTED_BASIC';
|
2
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_BASIC } from './PRESET_FORCE_DIRECTED_BUBBLES_BASIC';
|
3
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH } from './PRESET_FORCE_DIRECTED_BUBBLES_FIX_ARROW_WIDTH';
|
4
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ARROW';
|
5
|
+
export { PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_BUBBLES_NONE_ZOOM';
|
6
|
+
export { PRESET_FORCE_DIRECTED_NONE_ZOOM } from './PRESET_FORCE_DIRECTED_NONE_ZOOM';
|
7
|
+
export { PRESET_FORCE_DIRECTED_FIX_FONT_SIZE } from './PRESET_FORCE_DIRECTED_FIX_FONT_SIZE';
|
8
|
+
export { PRESET_FORCE_DIRECTED_NONE_ARROW } from './PRESET_FORCE_DIRECTED_NONE_ARROW';
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PresetPartial } from '../../lib/core-types';
|
2
|
+
import { PresetTreePluginParams, PresetNoneDataPluginParams } from '../types';
|
3
|
+
|
4
|
+
export declare const PRESET_TREE_MAP_BASIC: PresetPartial<'tree', Partial<PresetTreePluginParams> & Partial<PresetNoneDataPluginParams>>;
|
package/dist/src/tree/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export {
|
1
|
+
export { PRESET_TREE_MAP_BASIC } from './PRESET_TREE_MAP_BASIC';
|
package/dist/src/types.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams,
|
1
|
+
import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams, StackedBarParams, BarsTriangleParams, DotsParams, GridLegendParams, GroupAuxParams, GroupAxisParams, LineAreasParams, LinesParams, GridTooltipParams, GridZoomParams, ValueAxisParams, StackedValueAxisParams, MultiBarsParams, MultiStackedBarParams, MultiBarsTriangleParams, MultiDotsParams, MultiGridLegendParams, MultiGridTooltipParams, MultiGroupAxisParams, MultiLineAreasParams, MultiLinesParams, MultiValueAxisParams, MultiStackedValueAxisParams, OverlappingValueAxesParams, OverlappingStackedValueAxesParams, MultiValueLegendParams, MultiValueTooltipParams, ScatterParams, ScatterBubblesParams, XYAuxParams, XYAxesParams, XYZoomParams, ForceDirectedParams, ForceDirectedBubblesParams, RelationshipLegendParams, RelationshipTooltipParams, TreeLegendParams, TreeMapParams, TreeTooltipParams } from '../lib/plugins-basic-types';
|
2
2
|
|
3
3
|
type DeepPartial<T> = Partial<{
|
4
4
|
[P in keyof T]: DeepPartial<T[P]>;
|
@@ -28,15 +28,15 @@ export interface PresetSeriesLegendParams {
|
|
28
28
|
export interface PresetSeriesTooltipParams {
|
29
29
|
SeriesTooltip: Partial<SeriesTooltipParams>;
|
30
30
|
}
|
31
|
-
export type PresetGridPluginParams = PresetBarsParams & PresetBarsPNParams &
|
31
|
+
export type PresetGridPluginParams = PresetBarsParams & PresetBarsPNParams & PresetStackedBarParams & PresetBarsTriangleParams & PresetDotsParams & PresetGridLegendParams & PresetGridTooltipParams & PresetGroupAuxParams & PresetGroupAxisParams & PresetLineAreasParams & PresetLinesParams & PresetGridZoomParams & PresetValueAxisParams & PresetStackedValueAxisParams;
|
32
32
|
export interface PresetBarsParams {
|
33
33
|
Bars: Partial<BarsParams>;
|
34
34
|
}
|
35
35
|
export interface PresetBarsPNParams {
|
36
36
|
BarsPN: Partial<BarsPNParams>;
|
37
37
|
}
|
38
|
-
export interface
|
39
|
-
|
38
|
+
export interface PresetStackedBarParams {
|
39
|
+
StackedBar: Partial<StackedBarParams>;
|
40
40
|
}
|
41
41
|
export interface PresetBarsTriangleParams {
|
42
42
|
BarsTriangle: Partial<BarsTriangleParams>;
|
@@ -68,17 +68,17 @@ export interface PresetGridZoomParams {
|
|
68
68
|
export interface PresetValueAxisParams {
|
69
69
|
ValueAxis: Partial<ValueAxisParams>;
|
70
70
|
}
|
71
|
-
export interface
|
72
|
-
|
71
|
+
export interface PresetStackedValueAxisParams {
|
72
|
+
StackedValueAxis: Partial<StackedValueAxisParams>;
|
73
73
|
}
|
74
|
-
export type PresetMultiGridPluginParams = PresetMultiBarsParams &
|
75
|
-
export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | '
|
74
|
+
export type PresetMultiGridPluginParams = PresetMultiBarsParams & PresetMultiStackedBarParams & PresetMultiBarsTriangleParams & PresetMultiDotsParams & PresetMultiGridLegendParams & PresetMultiGridTooltipParams & PresetMultiGroupAxisParams & PresetMultiLineAreasParams & PresetMultiLinesParams & PresetMultiValueAxisParams & PresetMultiStackedValueAxisParams & PresetOverlappingValueAxesParams & PresetOverlappingStackedValueAxesParams;
|
75
|
+
export type PresetMultiGridSepratedPluginParams = Omit<PresetMultiGridPluginParams, 'OverlappingValueAxes' | 'OverlappingStackedValueAxes'>;
|
76
76
|
export type PresetMultiGridOverlappedPluginParams = Omit<PresetMultiGridPluginParams, 'PresetMultiGroupAxisParams' | 'PresetMultiValueAxisParams'>;
|
77
77
|
export interface PresetMultiBarsParams {
|
78
78
|
MultiBars: Partial<MultiBarsParams>;
|
79
79
|
}
|
80
|
-
export interface
|
81
|
-
|
80
|
+
export interface PresetMultiStackedBarParams {
|
81
|
+
MultiStackedBar: Partial<MultiStackedBarParams>;
|
82
82
|
}
|
83
83
|
export interface PresetMultiBarsTriangleParams {
|
84
84
|
MultiBarsTriangle: Partial<MultiBarsTriangleParams>;
|
@@ -104,14 +104,55 @@ export interface PresetMultiLinesParams {
|
|
104
104
|
export interface PresetMultiValueAxisParams {
|
105
105
|
MultiValueAxis: Partial<MultiValueAxisParams>;
|
106
106
|
}
|
107
|
-
export interface
|
108
|
-
|
107
|
+
export interface PresetMultiStackedValueAxisParams {
|
108
|
+
MultiStackedValueAxis: Partial<MultiStackedValueAxisParams>;
|
109
109
|
}
|
110
110
|
export interface PresetOverlappingValueAxesParams {
|
111
111
|
OverlappingValueAxes: Partial<OverlappingValueAxesParams>;
|
112
112
|
}
|
113
|
-
export interface
|
114
|
-
|
113
|
+
export interface PresetOverlappingStackedValueAxesParams {
|
114
|
+
OverlappingStackedValueAxes: Partial<OverlappingStackedValueAxesParams>;
|
115
|
+
}
|
116
|
+
export type PresetMultiValuePluginParams = PresetMultiValueLegendParams & PresetMultiValueTooltipParams & PresetScatterParams & PresetScatterBubblesParams & PresetXYAuxParams & PresetXYAxesParams & PresetXYZoomParams;
|
117
|
+
export interface PresetMultiValueAxisParams {
|
118
|
+
MultiValueAxis: Partial<MultiValueAxisParams>;
|
119
|
+
}
|
120
|
+
export interface PresetMultiStackedValueAxisParams {
|
121
|
+
MultiStackedValueAxis: Partial<MultiStackedValueAxisParams>;
|
122
|
+
}
|
123
|
+
export interface PresetMultiValueLegendParams {
|
124
|
+
MultiValueLegend: Partial<MultiValueLegendParams>;
|
125
|
+
}
|
126
|
+
export interface PresetMultiValueTooltipParams {
|
127
|
+
MultiValueTooltip: Partial<MultiValueTooltipParams>;
|
128
|
+
}
|
129
|
+
export interface PresetScatterParams {
|
130
|
+
Scatter: Partial<ScatterParams>;
|
131
|
+
}
|
132
|
+
export interface PresetScatterBubblesParams {
|
133
|
+
ScatterBubbles: Partial<ScatterBubblesParams>;
|
134
|
+
}
|
135
|
+
export interface PresetXYAuxParams {
|
136
|
+
XYAux: Partial<XYAuxParams>;
|
137
|
+
}
|
138
|
+
export interface PresetXYAxesParams {
|
139
|
+
XYAxes: Partial<XYAxesParams>;
|
140
|
+
}
|
141
|
+
export interface PresetXYZoomParams {
|
142
|
+
XYZoom: Partial<XYZoomParams>;
|
143
|
+
}
|
144
|
+
export type PresetRelationshipPluginParams = PresetForceDirectedParams & PresetForceDirectedBubblesParams & PresetRelationshipLegendParams & PresetRelationshipTooltipParams;
|
145
|
+
export interface PresetForceDirectedParams {
|
146
|
+
ForceDirected: DeepPartial<ForceDirectedParams>;
|
147
|
+
}
|
148
|
+
export interface PresetForceDirectedBubblesParams {
|
149
|
+
ForceDirectedBubbles: DeepPartial<ForceDirectedBubblesParams>;
|
150
|
+
}
|
151
|
+
export interface PresetRelationshipLegendParams {
|
152
|
+
RelationshipLegend: Partial<RelationshipLegendParams>;
|
153
|
+
}
|
154
|
+
export interface PresetRelationshipTooltipParams {
|
155
|
+
RelationshipTooltip: Partial<RelationshipTooltipParams>;
|
115
156
|
}
|
116
157
|
export type PresetTreePluginParams = PresetTreeLegendParams & PresetTreeMapParams & PresetTreeTooltipParams;
|
117
158
|
export interface PresetTreeLegendParams {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orbcharts/presets-basic",
|
3
|
-
"version": "3.0.0-beta.
|
3
|
+
"version": "3.0.0-beta.10",
|
4
4
|
"description": "presets for OrbCharts",
|
5
5
|
"author": "Blue Planet Inc.",
|
6
6
|
"license": "Apache-2.0",
|
@@ -35,8 +35,8 @@
|
|
35
35
|
"vite-plugin-dts": "^3.7.3"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@orbcharts/core-types": "^3.0.0-beta.
|
39
|
-
"@orbcharts/plugins-basic-types": "^3.0.0-beta.
|
38
|
+
"@orbcharts/core-types": "^3.0.0-beta.7",
|
39
|
+
"@orbcharts/plugins-basic-types": "^3.0.0-beta.12",
|
40
40
|
"d3": "^7.8.5"
|
41
41
|
}
|
42
42
|
}
|
@@ -18,7 +18,7 @@ export const PRESET_BARS_HORIZONTAL_AND_ROUND: PresetPartial<'grid', Partial<Pre
|
|
18
18
|
},
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
valueAxis: {
|
23
23
|
position: 'bottom'
|
24
24
|
// position: 'top'
|
@@ -31,7 +31,7 @@ export const PRESET_BARS_HORIZONTAL_AND_ROUND: PresetPartial<'grid', Partial<Pre
|
|
31
31
|
// position: 'bottom'
|
32
32
|
// position: 'top'
|
33
33
|
},
|
34
|
-
}
|
34
|
+
// }
|
35
35
|
},
|
36
36
|
allPluginParams: {
|
37
37
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -17,7 +17,7 @@ export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', Partial<Pres
|
|
17
17
|
},
|
18
18
|
},
|
19
19
|
dataFormatter: {
|
20
|
-
grid: {
|
20
|
+
// grid: {
|
21
21
|
valueAxis: {
|
22
22
|
position: 'bottom'
|
23
23
|
// position: 'top'
|
@@ -30,7 +30,7 @@ export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', Partial<Pres
|
|
30
30
|
// position: 'bottom'
|
31
31
|
// position: 'top'
|
32
32
|
},
|
33
|
-
}
|
33
|
+
// }
|
34
34
|
},
|
35
35
|
allPluginParams: {
|
36
36
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -16,7 +16,7 @@ export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPlu
|
|
16
16
|
},
|
17
17
|
},
|
18
18
|
dataFormatter: {
|
19
|
-
grid: {
|
19
|
+
// grid: {
|
20
20
|
valueAxis: {
|
21
21
|
position: 'bottom'
|
22
22
|
// position: 'top'
|
@@ -29,7 +29,7 @@ export const PRESET_GRID_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPlu
|
|
29
29
|
// position: 'bottom'
|
30
30
|
// position: 'top'
|
31
31
|
},
|
32
|
-
}
|
32
|
+
// }
|
33
33
|
},
|
34
34
|
allPluginParams: {
|
35
35
|
// ...ALL_PLUGIN_PARAMS_GRID,
|
@@ -15,12 +15,12 @@ export const PRESET_GRID_PN_SCALE: PresetPartial<'grid', Partial<PresetGridPlugi
|
|
15
15
|
},
|
16
16
|
},
|
17
17
|
dataFormatter: {
|
18
|
-
grid: {
|
18
|
+
// grid: {
|
19
19
|
valueAxis: {
|
20
20
|
scaleDomain: ['auto', 'auto'],
|
21
21
|
scaleRange: [0.05, 0.95],
|
22
22
|
},
|
23
|
-
}
|
23
|
+
// }
|
24
24
|
},
|
25
25
|
allPluginParams: {
|
26
26
|
// ...ALL_PLUGIN_PARAMS_GRID,
|
@@ -15,10 +15,10 @@ export const PRESET_GRID_SEPARATE_SERIES: PresetPartial<'grid', Partial<PresetGr
|
|
15
15
|
},
|
16
16
|
},
|
17
17
|
dataFormatter: {
|
18
|
-
grid: {
|
18
|
+
// grid: {
|
19
19
|
// seriesSlotIndexes: [0, 1],
|
20
20
|
separateSeries: true,
|
21
|
-
},
|
21
|
+
// },
|
22
22
|
},
|
23
23
|
allPluginParams: {
|
24
24
|
// ...ALL_PLUGIN_PARAMS_GRID,
|
@@ -18,7 +18,7 @@ export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPl
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
valueAxis: {
|
23
23
|
position: 'bottom'
|
24
24
|
// position: 'top'
|
@@ -31,7 +31,7 @@ export const PRESET_LINES_HORIZONTAL: PresetPartial<'grid', Partial<PresetGridPl
|
|
31
31
|
// position: 'bottom'
|
32
32
|
// position: 'top'
|
33
33
|
},
|
34
|
-
}
|
34
|
+
// }
|
35
35
|
},
|
36
36
|
allPluginParams: {
|
37
37
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,11 +18,11 @@ export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', Partial<PresetGridPl
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
groupAxis: {
|
23
23
|
scalePadding: 0
|
24
24
|
}
|
25
|
-
}
|
25
|
+
// }
|
26
26
|
},
|
27
27
|
allPluginParams: {
|
28
28
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,11 +18,11 @@ export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', Partial<PresetGridPl
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
groupAxis: {
|
23
23
|
scalePadding: 0
|
24
24
|
}
|
25
|
-
}
|
25
|
+
// }
|
26
26
|
},
|
27
27
|
allPluginParams: {
|
28
28
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,11 +18,11 @@ export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', Parti
|
|
18
18
|
highlightTarget: 'group'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
groupAxis: {
|
23
23
|
scalePadding: 0
|
24
24
|
}
|
25
|
-
}
|
25
|
+
// }
|
26
26
|
},
|
27
27
|
allPluginParams: {
|
28
28
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,7 +18,7 @@ export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', Partial<PresetG
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
valueAxis: {
|
23
23
|
position: 'bottom'
|
24
24
|
},
|
@@ -26,7 +26,7 @@ export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', Partial<PresetG
|
|
26
26
|
position: 'left',
|
27
27
|
scalePadding: 0
|
28
28
|
},
|
29
|
-
}
|
29
|
+
// }
|
30
30
|
},
|
31
31
|
allPluginParams: {
|
32
32
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,11 +18,11 @@ export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', Partial<Preset
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
groupAxis: {
|
23
23
|
scalePadding: 0
|
24
24
|
}
|
25
|
-
}
|
25
|
+
// }
|
26
26
|
},
|
27
27
|
allPluginParams: {
|
28
28
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,11 +18,11 @@ export const PRESET_LINE_AREAS_ROTATE_AXIS_LABEL: PresetPartial<'grid', Partial<
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
groupAxis: {
|
23
23
|
scalePadding: 0
|
24
24
|
}
|
25
|
-
}
|
25
|
+
// }
|
26
26
|
},
|
27
27
|
allPluginParams: {
|
28
28
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
@@ -18,13 +18,13 @@ export const PRESET_LINE_AREAS_SEPARATE_SERIES: PresetPartial<'grid', Partial<Pr
|
|
18
18
|
highlightTarget: 'series'
|
19
19
|
},
|
20
20
|
dataFormatter: {
|
21
|
-
grid: {
|
21
|
+
// grid: {
|
22
22
|
// seriesSlotIndexes: [0, 1],
|
23
23
|
separateSeries: true,
|
24
24
|
groupAxis: {
|
25
25
|
scalePadding: 0
|
26
26
|
}
|
27
|
-
},
|
27
|
+
// },
|
28
28
|
},
|
29
29
|
allPluginParams: {
|
30
30
|
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
package/src/index.ts
CHANGED
@@ -55,13 +55,13 @@ export const PRESET_MULTI_GRID_DIVERGING: PresetPartial<'multiGrid', Partial<Pre
|
|
55
55
|
MultiValueAxis: {
|
56
56
|
gridIndexes: [0, 1]
|
57
57
|
},
|
58
|
-
|
58
|
+
MultiStackedValueAxis: {
|
59
59
|
gridIndexes: [0, 1]
|
60
60
|
},
|
61
61
|
MultiBars: {
|
62
62
|
gridIndexes: [0, 1]
|
63
63
|
},
|
64
|
-
|
64
|
+
MultiStackedBar: {
|
65
65
|
gridIndexes: [0, 1]
|
66
66
|
},
|
67
67
|
MultiBarsTriangle: {
|
@@ -28,7 +28,7 @@ export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<P
|
|
28
28
|
barGroupPadding: 10,
|
29
29
|
barRadius: true,
|
30
30
|
},
|
31
|
-
|
31
|
+
MultiStackedBar: {},
|
32
32
|
MultiDots: {},
|
33
33
|
MultiGridLegend: {
|
34
34
|
// position: 'bottom',
|
@@ -51,8 +51,8 @@ export const PRESET_MULTI_GRID_ROUND_STYLE: PresetPartial<'multiGrid', Partial<P
|
|
51
51
|
lineWidth: 3
|
52
52
|
},
|
53
53
|
MultiValueAxis: {},
|
54
|
-
|
54
|
+
MultiStackedValueAxis: {},
|
55
55
|
OverlappingValueAxes: {},
|
56
|
-
|
56
|
+
OverlappingStackedValueAxes: {},
|
57
57
|
}
|
58
58
|
}
|