@orbcharts/presets-basic 3.0.0-beta.2 → 3.0.0-beta.4
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/LICENSE +200 -200
- package/dist/orbcharts-presets-basic.es.js +85 -25
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/multiValue/PRESET_MULTI_VALUE_BASIC.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 +3 -0
- package/dist/src/params.d.ts +2 -1
- package/dist/src/types.d.ts +29 -1
- package/lib/core-types.ts +7 -7
- package/lib/plugins-basic-types.ts +6 -6
- package/package.json +42 -42
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +56 -56
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +52 -52
- package/src/grid/PRESET_BARS_ROUND.ts +39 -39
- package/src/grid/PRESET_BARS_THIN.ts +36 -36
- package/src/grid/PRESET_GRID_BASIC.ts +27 -27
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +44 -44
- package/src/grid/PRESET_GRID_PN_SCALE.ts +35 -35
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +35 -35
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +40 -40
- package/src/grid/PRESET_LINES_BASIC.ts +35 -35
- package/src/grid/PRESET_LINES_CURVE.ts +38 -38
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +37 -37
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +51 -51
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +37 -37
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +40 -40
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +39 -39
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +43 -43
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +47 -47
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +47 -47
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +45 -45
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +50 -50
- package/src/grid/index.ts +22 -22
- package/src/index.ts +5 -4
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +38 -38
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +86 -86
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +58 -58
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +60 -60
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +86 -86
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +104 -104
- package/src/multiGrid/index.ts +6 -6
- package/src/multiValue/PRESET_MULTI_VALUE_BASIC.ts +23 -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 +3 -0
- package/src/params.ts +71 -60
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +18 -18
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
- package/src/series/PRESET_PIE_BASIC.ts +18 -18
- package/src/series/PRESET_PIE_DONUT.ts +23 -23
- package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
- package/src/series/PRESET_ROSE_BASIC.ts +19 -19
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +24 -24
- package/src/series/PRESET_SERIES_BASIC.ts +16 -16
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +17 -17
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +18 -18
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +18 -18
- package/src/series/index.ts +13 -13
- package/src/tree/PRESET_TREE_BASIC.ts +27 -27
- package/src/types.ts +321 -267
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -2
- package/vite.config.js +22 -22
@@ -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:{}}},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 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:"primary"},PieEventTexts:{},SeriesLegend:{listRectRadius:7}}};s.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}}},T={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}}},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}}},b={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}}},G={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}}},B={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}}},N={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}}},x={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}}},D={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}}},U={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}}},C={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}}},H={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}}},v={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}]}}},V={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}}},F={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={},Y={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}]}}},Z={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}]}}},W={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_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"}}},X={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_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=T,t.PRESET_BARS_THIN=I,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=U,t.PRESET_LINES_LOOSE_TICKS=C,t.PRESET_LINES_ROTATE_AXIS_LABEL=H,t.PRESET_LINES_WITH_SOLID_DOTS=v,t.PRESET_LINE_AREAS_BASIC=b,t.PRESET_LINE_AREAS_CURVE=G,t.PRESET_LINE_AREAS_HORIZONTAL=B,t.PRESET_LINE_AREAS_LOOSE_TICKS=N,t.PRESET_LINE_AREAS_ROTATE_AXIS_LABEL=x,t.PRESET_LINE_AREAS_SEPARATE_SERIES=D,t.PRESET_MULTI_GRID_BASIC=f,t.PRESET_MULTI_GRID_DIVERGING=V,t.PRESET_MULTI_GRID_ROUND_STYLE=F,t.PRESET_MULTI_GRID_SEPARATE_GRID=k,t.PRESET_MULTI_LINES_SEPARATE_GRID=Z,t.PRESET_MULTI_LINE_AREAS_SEPARATE_GRID=Y,t.PRESET_MULTI_VALUE_BASIC=W,t.PRESET_PIE_BASIC=r,t.PRESET_PIE_DONUT=E,t.PRESET_PIE_HALF_DONUT=l,t.PRESET_PIE_WITH_INNER_LABELS=s,t.PRESET_ROSE_BASIC=n,t.PRESET_ROSE_SCALING_BY_RADIUS=d,t.PRESET_SCATTER_BUBBLES_LINEAR_OPACITY=X,t.PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS=y,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=K,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<'grid', 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>>;
|
package/dist/src/params.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import { PresetSeriesPluginParams, PresetGridPluginParams, PresetMultiGridPluginParams, PresetTreePluginParams, PresetNoneDataPluginParams } from './types';
|
1
|
+
import { PresetSeriesPluginParams, PresetGridPluginParams, PresetMultiGridPluginParams, PresetMultiValuePluginParams, 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;
|
6
7
|
export declare const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams;
|
7
8
|
export declare const ALL_PLUGIN_PARAMS_NONE_DATA: PresetNoneDataPluginParams;
|
package/dist/src/types.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams, BarStackParams, BarsTriangleParams, DotsParams, GridLegendParams, GroupAuxParams, GroupAxisParams, LineAreasParams, LinesParams, GridTooltipParams, GridZoomParams, ValueAxisParams, ValueStackAxisParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiDotsParams, MultiGridLegendParams, MultiGridTooltipParams, MultiGroupAxisParams, MultiLineAreasParams, MultiLinesParams, MultiValueAxisParams, MultiValueStackAxisParams, OverlappingValueAxesParams, OverlappingValueStackAxesParams, TreeLegendParams, TreeMapParams, TreeTooltipParams } from '../lib/plugins-basic-types';
|
1
|
+
import { BubblesParams, PieParams, PieEventTextsParams, PieLabelsParams, RoseParams, RoseLabelsParams, SeriesLegendParams, SeriesTooltipParams, BarsParams, BarsPNParams, BarStackParams, BarsTriangleParams, DotsParams, GridLegendParams, GroupAuxParams, GroupAxisParams, LineAreasParams, LinesParams, GridTooltipParams, GridZoomParams, ValueAxisParams, ValueStackAxisParams, MultiBarsParams, MultiBarStackParams, MultiBarsTriangleParams, MultiDotsParams, MultiGridLegendParams, MultiGridTooltipParams, MultiGroupAxisParams, MultiLineAreasParams, MultiLinesParams, MultiValueAxisParams, MultiValueStackAxisParams, OverlappingValueAxesParams, OverlappingValueStackAxesParams, MultiValueLegendParams, MultiValueTooltipParams, ScatterParams, ScatterBubblesParams, XYAuxParams, XYAxesParams, XYZoomParams, 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]>;
|
@@ -113,6 +113,34 @@ export interface PresetOverlappingValueAxesParams {
|
|
113
113
|
export interface PresetOverlappingValueStackAxesParams {
|
114
114
|
OverlappingValueStackAxes: Partial<OverlappingValueStackAxesParams>;
|
115
115
|
}
|
116
|
+
export type PresetMultiValuePluginParams = PresetMultiValueLegendParams & PresetMultiValueTooltipParams & PresetScatterParams & PresetScatterBubblesParams & PresetXYAuxParams & PresetXYAxesParams & PresetXYZoomParams;
|
117
|
+
export interface PresetMultiValueAxisParams {
|
118
|
+
MultiValueAxis: Partial<MultiValueAxisParams>;
|
119
|
+
}
|
120
|
+
export interface PresetMultiValueStackAxisParams {
|
121
|
+
MultiValueStackAxis: Partial<MultiValueStackAxisParams>;
|
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
|
+
}
|
116
144
|
export type PresetTreePluginParams = PresetTreeLegendParams & PresetTreeMapParams & PresetTreeTooltipParams;
|
117
145
|
export interface PresetTreeLegendParams {
|
118
146
|
TreeLegend: Partial<TreeLegendParams>;
|
package/lib/core-types.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export * from '@orbcharts/core-types'
|
4
|
-
|
5
|
-
// test
|
6
|
-
// export * from '../../orbcharts-core-types/src'
|
7
|
-
|
1
|
+
|
2
|
+
|
3
|
+
export * from '@orbcharts/core-types'
|
4
|
+
|
5
|
+
// test
|
6
|
+
// export * from '../../orbcharts-core-types/src'
|
7
|
+
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export * from '@orbcharts/plugins-basic-types'
|
4
|
-
|
5
|
-
// test
|
6
|
-
// export * from '../../orbcharts-plugins-basic-types/src'
|
1
|
+
|
2
|
+
|
3
|
+
export * from '@orbcharts/plugins-basic-types'
|
4
|
+
|
5
|
+
// test
|
6
|
+
// export * from '../../orbcharts-plugins-basic-types/src'
|
package/package.json
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
{
|
2
|
-
"name": "@orbcharts/presets-basic",
|
3
|
-
"version": "3.0.0-beta.
|
4
|
-
"description": "presets for OrbCharts",
|
5
|
-
"author": "Blue Planet Inc.",
|
6
|
-
"license": "Apache-2.0",
|
7
|
-
"keywords": [
|
8
|
-
"d3",
|
9
|
-
"rxjs",
|
10
|
-
"svg",
|
11
|
-
"visualization",
|
12
|
-
"infographic",
|
13
|
-
"graph",
|
14
|
-
"chart"
|
15
|
-
],
|
16
|
-
"private": false,
|
17
|
-
"publishConfig": {
|
18
|
-
"access": "public",
|
19
|
-
"registry": "https://registry.npmjs.org/"
|
20
|
-
},
|
21
|
-
"files": [
|
22
|
-
"*"
|
23
|
-
],
|
24
|
-
"module": "./dist/orbcharts-presets-basic.es.js",
|
25
|
-
"types": "./dist/src/index.d.ts",
|
26
|
-
"scripts": {
|
27
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
28
|
-
"build": "vite build --mode production"
|
29
|
-
},
|
30
|
-
"devDependencies": {
|
31
|
-
"@types/d3": "^7.4.0",
|
32
|
-
"ts-loader": "^9.4.2",
|
33
|
-
"typescript": "^5.0.4",
|
34
|
-
"vite": "^5.3.5",
|
35
|
-
"vite-plugin-dts": "^3.7.3"
|
36
|
-
},
|
37
|
-
"dependencies": {
|
38
|
-
"@orbcharts/core-types": "^3.0.0-beta.
|
39
|
-
"@orbcharts/plugins-basic-types": "^3.0.0-beta.
|
40
|
-
"d3": "^7.8.5"
|
41
|
-
}
|
42
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@orbcharts/presets-basic",
|
3
|
+
"version": "3.0.0-beta.4",
|
4
|
+
"description": "presets for OrbCharts",
|
5
|
+
"author": "Blue Planet Inc.",
|
6
|
+
"license": "Apache-2.0",
|
7
|
+
"keywords": [
|
8
|
+
"d3",
|
9
|
+
"rxjs",
|
10
|
+
"svg",
|
11
|
+
"visualization",
|
12
|
+
"infographic",
|
13
|
+
"graph",
|
14
|
+
"chart"
|
15
|
+
],
|
16
|
+
"private": false,
|
17
|
+
"publishConfig": {
|
18
|
+
"access": "public",
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
20
|
+
},
|
21
|
+
"files": [
|
22
|
+
"*"
|
23
|
+
],
|
24
|
+
"module": "./dist/orbcharts-presets-basic.es.js",
|
25
|
+
"types": "./dist/src/index.d.ts",
|
26
|
+
"scripts": {
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
28
|
+
"build": "vite build --mode production"
|
29
|
+
},
|
30
|
+
"devDependencies": {
|
31
|
+
"@types/d3": "^7.4.0",
|
32
|
+
"ts-loader": "^9.4.2",
|
33
|
+
"typescript": "^5.0.4",
|
34
|
+
"vite": "^5.3.5",
|
35
|
+
"vite-plugin-dts": "^3.7.3"
|
36
|
+
},
|
37
|
+
"dependencies": {
|
38
|
+
"@orbcharts/core-types": "^3.0.0-beta.3",
|
39
|
+
"@orbcharts/plugins-basic-types": "^3.0.0-beta.4",
|
40
|
+
"d3": "^7.8.5"
|
41
|
+
}
|
42
|
+
}
|
@@ -1,56 +1,56 @@
|
|
1
|
-
import type { PresetPartial } from '../../lib/core-types'
|
2
|
-
import type { PresetBarsParams,
|
3
|
-
PresetGridPluginParams,
|
4
|
-
PresetNoneDataPluginParams
|
5
|
-
} from '../types'
|
6
|
-
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
-
|
8
|
-
export const PRESET_BARS_HORIZONTAL_AND_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
9
|
-
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
-
name: 'PRESET_BARS_HORIZONTAL_AND_ROUND',
|
11
|
-
description: '橫向圓角長條圖',
|
12
|
-
chartParams: {
|
13
|
-
padding: {
|
14
|
-
top: 60,
|
15
|
-
right: 60,
|
16
|
-
bottom: 120,
|
17
|
-
left: 160
|
18
|
-
},
|
19
|
-
},
|
20
|
-
dataFormatter: {
|
21
|
-
grid: {
|
22
|
-
valueAxis: {
|
23
|
-
position: 'bottom'
|
24
|
-
// position: 'top'
|
25
|
-
// position: 'left'
|
26
|
-
// position: 'right'
|
27
|
-
},
|
28
|
-
groupAxis: {
|
29
|
-
position: 'left'
|
30
|
-
// position: 'right'
|
31
|
-
// position: 'bottom'
|
32
|
-
// position: 'top'
|
33
|
-
},
|
34
|
-
}
|
35
|
-
},
|
36
|
-
allPluginParams: {
|
37
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
38
|
-
Bars: {
|
39
|
-
barWidth: 0,
|
40
|
-
barPadding: 1,
|
41
|
-
barGroupPadding: 10,
|
42
|
-
barRadius: true,
|
43
|
-
},
|
44
|
-
GroupAxis: {},
|
45
|
-
ValueAxis: {},
|
46
|
-
GroupAux: {},
|
47
|
-
GridLegend: {
|
48
|
-
// 底部圖例及圓弧列點
|
49
|
-
// position: 'bottom',
|
50
|
-
// justify: 'center',
|
51
|
-
placement: 'bottom',
|
52
|
-
padding: 14,
|
53
|
-
listRectRadius: 7,
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetBarsParams,
|
3
|
+
PresetGridPluginParams,
|
4
|
+
PresetNoneDataPluginParams
|
5
|
+
} from '../types'
|
6
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
7
|
+
|
8
|
+
export const PRESET_BARS_HORIZONTAL_AND_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
9
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
10
|
+
name: 'PRESET_BARS_HORIZONTAL_AND_ROUND',
|
11
|
+
description: '橫向圓角長條圖',
|
12
|
+
chartParams: {
|
13
|
+
padding: {
|
14
|
+
top: 60,
|
15
|
+
right: 60,
|
16
|
+
bottom: 120,
|
17
|
+
left: 160
|
18
|
+
},
|
19
|
+
},
|
20
|
+
dataFormatter: {
|
21
|
+
grid: {
|
22
|
+
valueAxis: {
|
23
|
+
position: 'bottom'
|
24
|
+
// position: 'top'
|
25
|
+
// position: 'left'
|
26
|
+
// position: 'right'
|
27
|
+
},
|
28
|
+
groupAxis: {
|
29
|
+
position: 'left'
|
30
|
+
// position: 'right'
|
31
|
+
// position: 'bottom'
|
32
|
+
// position: 'top'
|
33
|
+
},
|
34
|
+
}
|
35
|
+
},
|
36
|
+
allPluginParams: {
|
37
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
38
|
+
Bars: {
|
39
|
+
barWidth: 0,
|
40
|
+
barPadding: 1,
|
41
|
+
barGroupPadding: 10,
|
42
|
+
barRadius: true,
|
43
|
+
},
|
44
|
+
GroupAxis: {},
|
45
|
+
ValueAxis: {},
|
46
|
+
GroupAux: {},
|
47
|
+
GridLegend: {
|
48
|
+
// 底部圖例及圓弧列點
|
49
|
+
// position: 'bottom',
|
50
|
+
// justify: 'center',
|
51
|
+
placement: 'bottom',
|
52
|
+
padding: 14,
|
53
|
+
listRectRadius: 7,
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
@@ -1,52 +1,52 @@
|
|
1
|
-
import type { PresetPartial } from '../../lib/core-types'
|
2
|
-
import type { PresetGridPluginParams,
|
3
|
-
PresetNoneDataPluginParams
|
4
|
-
} from '../types'
|
5
|
-
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
|
-
|
7
|
-
export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
|
-
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
-
name: 'PRESET_BARS_HORIZONTAL_AND_THIN',
|
10
|
-
description: '橫向細長長條圖',
|
11
|
-
chartParams: {
|
12
|
-
padding: {
|
13
|
-
top: 60,
|
14
|
-
right: 60,
|
15
|
-
bottom: 120,
|
16
|
-
left: 160
|
17
|
-
},
|
18
|
-
},
|
19
|
-
dataFormatter: {
|
20
|
-
grid: {
|
21
|
-
valueAxis: {
|
22
|
-
position: 'bottom'
|
23
|
-
// position: 'top'
|
24
|
-
// position: 'left'
|
25
|
-
// position: 'right'
|
26
|
-
},
|
27
|
-
groupAxis: {
|
28
|
-
position: 'left'
|
29
|
-
// position: 'right'
|
30
|
-
// position: 'bottom'
|
31
|
-
// position: 'top'
|
32
|
-
},
|
33
|
-
}
|
34
|
-
},
|
35
|
-
allPluginParams: {
|
36
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
37
|
-
Bars: {
|
38
|
-
barWidth: 20,
|
39
|
-
barPadding: 1,
|
40
|
-
barGroupPadding: 10
|
41
|
-
},
|
42
|
-
GroupAxis: {},
|
43
|
-
ValueAxis: {},
|
44
|
-
GroupAux: {},
|
45
|
-
GridLegend: {
|
46
|
-
// position: 'bottom',
|
47
|
-
// justify: 'center',
|
48
|
-
placement: 'bottom',
|
49
|
-
padding: 14,
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetGridPluginParams,
|
3
|
+
PresetNoneDataPluginParams
|
4
|
+
} from '../types'
|
5
|
+
// import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
|
+
|
7
|
+
export const PRESET_BARS_HORIZONTAL_AND_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_BARS_HORIZONTAL_AND_THIN',
|
10
|
+
description: '橫向細長長條圖',
|
11
|
+
chartParams: {
|
12
|
+
padding: {
|
13
|
+
top: 60,
|
14
|
+
right: 60,
|
15
|
+
bottom: 120,
|
16
|
+
left: 160
|
17
|
+
},
|
18
|
+
},
|
19
|
+
dataFormatter: {
|
20
|
+
grid: {
|
21
|
+
valueAxis: {
|
22
|
+
position: 'bottom'
|
23
|
+
// position: 'top'
|
24
|
+
// position: 'left'
|
25
|
+
// position: 'right'
|
26
|
+
},
|
27
|
+
groupAxis: {
|
28
|
+
position: 'left'
|
29
|
+
// position: 'right'
|
30
|
+
// position: 'bottom'
|
31
|
+
// position: 'top'
|
32
|
+
},
|
33
|
+
}
|
34
|
+
},
|
35
|
+
allPluginParams: {
|
36
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
37
|
+
Bars: {
|
38
|
+
barWidth: 20,
|
39
|
+
barPadding: 1,
|
40
|
+
barGroupPadding: 10
|
41
|
+
},
|
42
|
+
GroupAxis: {},
|
43
|
+
ValueAxis: {},
|
44
|
+
GroupAux: {},
|
45
|
+
GridLegend: {
|
46
|
+
// position: 'bottom',
|
47
|
+
// justify: 'center',
|
48
|
+
placement: 'bottom',
|
49
|
+
padding: 14,
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
@@ -1,39 +1,39 @@
|
|
1
|
-
import type { PresetPartial } from '../../lib/core-types'
|
2
|
-
import type { PresetGridPluginParams,
|
3
|
-
PresetNoneDataPluginParams
|
4
|
-
} from '../types'
|
5
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
|
-
|
7
|
-
export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
|
-
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
-
name: 'PRESET_BARS_ROUND',
|
10
|
-
description: '圓角長條圖',
|
11
|
-
chartParams: {
|
12
|
-
padding: {
|
13
|
-
top: 60,
|
14
|
-
right: 60,
|
15
|
-
bottom: 120,
|
16
|
-
left: 60
|
17
|
-
},
|
18
|
-
},
|
19
|
-
allPluginParams: {
|
20
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
21
|
-
Bars: {
|
22
|
-
barWidth: 0,
|
23
|
-
barPadding: 1,
|
24
|
-
barGroupPadding: 10,
|
25
|
-
barRadius: true,
|
26
|
-
},
|
27
|
-
GroupAxis: {},
|
28
|
-
ValueAxis: {},
|
29
|
-
GroupAux: {},
|
30
|
-
GridLegend: {
|
31
|
-
// 底部圖例及圓弧列點
|
32
|
-
// position: 'bottom',
|
33
|
-
// justify: 'center',
|
34
|
-
placement: 'bottom',
|
35
|
-
padding: 14,
|
36
|
-
listRectRadius: 7,
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetGridPluginParams,
|
3
|
+
PresetNoneDataPluginParams
|
4
|
+
} from '../types'
|
5
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
|
+
|
7
|
+
export const PRESET_BARS_ROUND: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_BARS_ROUND',
|
10
|
+
description: '圓角長條圖',
|
11
|
+
chartParams: {
|
12
|
+
padding: {
|
13
|
+
top: 60,
|
14
|
+
right: 60,
|
15
|
+
bottom: 120,
|
16
|
+
left: 60
|
17
|
+
},
|
18
|
+
},
|
19
|
+
allPluginParams: {
|
20
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
21
|
+
Bars: {
|
22
|
+
barWidth: 0,
|
23
|
+
barPadding: 1,
|
24
|
+
barGroupPadding: 10,
|
25
|
+
barRadius: true,
|
26
|
+
},
|
27
|
+
GroupAxis: {},
|
28
|
+
ValueAxis: {},
|
29
|
+
GroupAux: {},
|
30
|
+
GridLegend: {
|
31
|
+
// 底部圖例及圓弧列點
|
32
|
+
// position: 'bottom',
|
33
|
+
// justify: 'center',
|
34
|
+
placement: 'bottom',
|
35
|
+
padding: 14,
|
36
|
+
listRectRadius: 7,
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
@@ -1,36 +1,36 @@
|
|
1
|
-
import type { PresetPartial } from '../../lib/core-types'
|
2
|
-
import type { PresetGridPluginParams,
|
3
|
-
PresetNoneDataPluginParams
|
4
|
-
} from '../types'
|
5
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
|
-
|
7
|
-
export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
|
-
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
-
name: 'PRESET_BARS_THIN',
|
10
|
-
description: '細長條圖',
|
11
|
-
chartParams: {
|
12
|
-
padding: {
|
13
|
-
top: 60,
|
14
|
-
right: 60,
|
15
|
-
bottom: 120,
|
16
|
-
left: 60
|
17
|
-
},
|
18
|
-
},
|
19
|
-
allPluginParams: {
|
20
|
-
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
21
|
-
Bars: {
|
22
|
-
barWidth: 20,
|
23
|
-
barPadding: 1,
|
24
|
-
barGroupPadding: 10
|
25
|
-
},
|
26
|
-
GroupAxis: {},
|
27
|
-
ValueAxis: {},
|
28
|
-
GroupAux: {},
|
29
|
-
GridLegend: {
|
30
|
-
// position: 'bottom',
|
31
|
-
// justify: 'center',
|
32
|
-
placement: 'bottom',
|
33
|
-
padding: 14,
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
1
|
+
import type { PresetPartial } from '../../lib/core-types'
|
2
|
+
import type { PresetGridPluginParams,
|
3
|
+
PresetNoneDataPluginParams
|
4
|
+
} from '../types'
|
5
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
6
|
+
|
7
|
+
export const PRESET_BARS_THIN: PresetPartial<'grid', Partial<PresetGridPluginParams>
|
8
|
+
& Partial<PresetNoneDataPluginParams>> = {
|
9
|
+
name: 'PRESET_BARS_THIN',
|
10
|
+
description: '細長條圖',
|
11
|
+
chartParams: {
|
12
|
+
padding: {
|
13
|
+
top: 60,
|
14
|
+
right: 60,
|
15
|
+
bottom: 120,
|
16
|
+
left: 60
|
17
|
+
},
|
18
|
+
},
|
19
|
+
allPluginParams: {
|
20
|
+
// ...ALL_PLUGIN_PARAMS_NONE_DATA,
|
21
|
+
Bars: {
|
22
|
+
barWidth: 20,
|
23
|
+
barPadding: 1,
|
24
|
+
barGroupPadding: 10
|
25
|
+
},
|
26
|
+
GroupAxis: {},
|
27
|
+
ValueAxis: {},
|
28
|
+
GroupAux: {},
|
29
|
+
GridLegend: {
|
30
|
+
// position: 'bottom',
|
31
|
+
// justify: 'center',
|
32
|
+
placement: 'bottom',
|
33
|
+
padding: 14,
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|