@orbcharts/presets-basic 3.0.0-beta.3 → 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.
@@ -335,7 +335,7 @@ const _ = {
335
335
  listRectRadius: 7
336
336
  }
337
337
  }
338
- }, A = {
338
+ }, m = {
339
339
  name: "PRESET_BARS_THIN",
340
340
  description: "細長條圖",
341
341
  chartParams: {
@@ -363,7 +363,7 @@ const _ = {
363
363
  padding: 14
364
364
  }
365
365
  }
366
- }, m = {
366
+ }, A = {
367
367
  name: "PRESET_GRID_BASIC",
368
368
  description: "基本Grid參數",
369
369
  chartParams: {
@@ -422,7 +422,7 @@ const _ = {
422
422
  padding: 14
423
423
  }
424
424
  }
425
- }, I = {
425
+ }, T = {
426
426
  name: "PRESET_GRID_PN_SCALE",
427
427
  description: "正負值分向圖",
428
428
  chartParams: {
@@ -451,7 +451,7 @@ const _ = {
451
451
  padding: 14
452
452
  }
453
453
  }
454
- }, T = {
454
+ }, I = {
455
455
  name: "PRESET_GRID_ROTATE_AXIS_LABEL",
456
456
  description: "傾斜標籤",
457
457
  chartParams: {
@@ -665,7 +665,7 @@ const _ = {
665
665
  listRectHeight: 2
666
666
  }
667
667
  }
668
- }, M = {
668
+ }, B = {
669
669
  name: "PRESET_LINE_AREAS_ROTATE_AXIS_LABEL",
670
670
  description: "傾斜標籤",
671
671
  chartParams: {
@@ -705,7 +705,7 @@ const _ = {
705
705
  listRectHeight: 2
706
706
  }
707
707
  }
708
- }, N = {
708
+ }, M = {
709
709
  name: "PRESET_LINE_AREAS_SEPARATE_SERIES",
710
710
  description: "LineAreas 分開顯示Series",
711
711
  chartParams: {
@@ -747,7 +747,7 @@ const _ = {
747
747
  listRectHeight: 2
748
748
  }
749
749
  }
750
- }, D = {
750
+ }, N = {
751
751
  name: "PRESET_LINES_BASIC",
752
752
  description: "基本Lines參數",
753
753
  chartParams: {
@@ -774,7 +774,7 @@ const _ = {
774
774
  listRectHeight: 2
775
775
  }
776
776
  }
777
- }, B = {
777
+ }, D = {
778
778
  name: "PRESET_LINES_CURVE",
779
779
  description: "弧線折線圖",
780
780
  chartParams: {
@@ -939,7 +939,7 @@ const _ = {
939
939
  listRectHeight: 2
940
940
  }
941
941
  }
942
- }, f = {
942
+ }, C = {
943
943
  name: "PRESET_MULTI_GRID_BASIC",
944
944
  description: "基本MultiGrid參數",
945
945
  chartParams: {
@@ -967,7 +967,7 @@ const _ = {
967
967
  ]
968
968
  }
969
969
  }
970
- }, C = {
970
+ }, f = {
971
971
  name: "PRESET_MULTI_GRID_DIVERGING",
972
972
  description: "雙向折線圖",
973
973
  chartParams: {
@@ -1047,7 +1047,7 @@ const _ = {
1047
1047
  padding: 14
1048
1048
  }
1049
1049
  }
1050
- }, F = {
1050
+ }, V = {
1051
1051
  name: "PRESET_MULTI_GRID_ROUND_STYLE",
1052
1052
  description: "MultiGrid圓弧風格",
1053
1053
  chartParams: {
@@ -1094,7 +1094,7 @@ const _ = {
1094
1094
  OverlappingValueAxes: {},
1095
1095
  OverlappingValueStackAxes: {}
1096
1096
  }
1097
- }, V = {
1097
+ }, F = {
1098
1098
  name: "PRESET_MULTI_GRID_SEPARATE_GRID",
1099
1099
  description: "2組Grid圖表",
1100
1100
  chartParams: {
@@ -1320,6 +1320,63 @@ const _ = {
1320
1320
  }
1321
1321
  }
1322
1322
  }, X = {
1323
+ name: "PRESET_MULTI_VALUE_BASIC",
1324
+ description: "基本MultiValue參數",
1325
+ chartParams: {
1326
+ padding: {
1327
+ top: 60,
1328
+ right: 60,
1329
+ bottom: 120,
1330
+ left: 60
1331
+ }
1332
+ },
1333
+ allPluginParams: {
1334
+ MultiValueLegend: {
1335
+ placement: "bottom",
1336
+ padding: 14
1337
+ }
1338
+ }
1339
+ }, Y = {
1340
+ name: "PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS",
1341
+ description: "ScatterBubbles以半徑尺寸為比例",
1342
+ chartParams: {
1343
+ padding: {
1344
+ top: 60,
1345
+ right: 60,
1346
+ bottom: 120,
1347
+ left: 60
1348
+ }
1349
+ },
1350
+ allPluginParams: {
1351
+ MultiValueLegend: {
1352
+ placement: "bottom",
1353
+ padding: 14
1354
+ },
1355
+ ScatterBubbles: {
1356
+ arcScaleType: "radius"
1357
+ }
1358
+ }
1359
+ }, Z = {
1360
+ name: "PRESET_SCATTER_BUBBLES_LINEAR_OPACITY",
1361
+ description: "ScatterBubbles漸變透明度",
1362
+ chartParams: {
1363
+ padding: {
1364
+ top: 60,
1365
+ right: 60,
1366
+ bottom: 120,
1367
+ left: 60
1368
+ }
1369
+ },
1370
+ allPluginParams: {
1371
+ MultiValueLegend: {
1372
+ placement: "bottom",
1373
+ padding: 14
1374
+ },
1375
+ ScatterBubbles: {
1376
+ valueLinearOpacity: [0.6, 0.95]
1377
+ }
1378
+ }
1379
+ }, y = {
1323
1380
  name: "PRESET_TREE_BASIC",
1324
1381
  description: "基本Tree參數",
1325
1382
  chartParams: {
@@ -1345,16 +1402,16 @@ export {
1345
1402
  _ as PRESET_BARS_HORIZONTAL_AND_ROUND,
1346
1403
  P as PRESET_BARS_HORIZONTAL_AND_THIN,
1347
1404
  p as PRESET_BARS_ROUND,
1348
- A as PRESET_BARS_THIN,
1405
+ m as PRESET_BARS_THIN,
1349
1406
  u as PRESET_BUBBLES_SCALING_BY_RADIUS,
1350
1407
  S as PRESET_BUBBLES_SEPARATE_SERIES,
1351
- m as PRESET_GRID_BASIC,
1408
+ A as PRESET_GRID_BASIC,
1352
1409
  c as PRESET_GRID_HORIZONTAL,
1353
- I as PRESET_GRID_PN_SCALE,
1354
- T as PRESET_GRID_ROTATE_AXIS_LABEL,
1410
+ T as PRESET_GRID_PN_SCALE,
1411
+ I as PRESET_GRID_ROTATE_AXIS_LABEL,
1355
1412
  L as PRESET_GRID_SEPARATE_SERIES,
1356
- D as PRESET_LINES_BASIC,
1357
- B as PRESET_LINES_CURVE,
1413
+ N as PRESET_LINES_BASIC,
1414
+ D as PRESET_LINES_CURVE,
1358
1415
  v as PRESET_LINES_HORIZONTAL,
1359
1416
  O as PRESET_LINES_LOOSE_TICKS,
1360
1417
  H as PRESET_LINES_ROTATE_AXIS_LABEL,
@@ -1363,23 +1420,26 @@ export {
1363
1420
  x as PRESET_LINE_AREAS_CURVE,
1364
1421
  b as PRESET_LINE_AREAS_HORIZONTAL,
1365
1422
  G as PRESET_LINE_AREAS_LOOSE_TICKS,
1366
- M as PRESET_LINE_AREAS_ROTATE_AXIS_LABEL,
1367
- N as PRESET_LINE_AREAS_SEPARATE_SERIES,
1368
- f as PRESET_MULTI_GRID_BASIC,
1369
- C as PRESET_MULTI_GRID_DIVERGING,
1370
- F as PRESET_MULTI_GRID_ROUND_STYLE,
1371
- V as PRESET_MULTI_GRID_SEPARATE_GRID,
1423
+ B as PRESET_LINE_AREAS_ROTATE_AXIS_LABEL,
1424
+ M as PRESET_LINE_AREAS_SEPARATE_SERIES,
1425
+ C as PRESET_MULTI_GRID_BASIC,
1426
+ f as PRESET_MULTI_GRID_DIVERGING,
1427
+ V as PRESET_MULTI_GRID_ROUND_STYLE,
1428
+ F as PRESET_MULTI_GRID_SEPARATE_GRID,
1372
1429
  W as PRESET_MULTI_LINES_SEPARATE_GRID,
1373
1430
  k as PRESET_MULTI_LINE_AREAS_SEPARATE_GRID,
1431
+ X as PRESET_MULTI_VALUE_BASIC,
1374
1432
  i as PRESET_PIE_BASIC,
1375
1433
  r as PRESET_PIE_DONUT,
1376
1434
  s as PRESET_PIE_HALF_DONUT,
1377
1435
  l as PRESET_PIE_WITH_INNER_LABELS,
1378
1436
  o as PRESET_ROSE_BASIC,
1379
1437
  n as PRESET_ROSE_SCALING_BY_RADIUS,
1438
+ Z as PRESET_SCATTER_BUBBLES_LINEAR_OPACITY,
1439
+ Y as PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS,
1380
1440
  R as PRESET_SERIES_BASIC,
1381
1441
  g as PRESET_SERIES_SEPARATE_SERIES,
1382
1442
  d as PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES,
1383
1443
  E as PRESET_SERIES_SUM_SERIES,
1384
- X as PRESET_TREE_BASIC
1444
+ y as PRESET_TREE_BASIC
1385
1445
  };
@@ -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"})});
@@ -1,4 +1,5 @@
1
1
  export * from './series';
2
2
  export * from './grid';
3
3
  export * from './multiGrid';
4
+ export * from './multiValue';
4
5
  export * from './tree';
@@ -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>>;
@@ -0,0 +1,3 @@
1
+ export { PRESET_MULTI_VALUE_BASIC } from './PRESET_MULTI_VALUE_BASIC';
2
+ export { PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS } from './PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS';
3
+ export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY';
@@ -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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/presets-basic",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
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.2",
39
- "@orbcharts/plugins-basic-types": "^3.0.0-beta.3",
38
+ "@orbcharts/core-types": "^3.0.0-beta.3",
39
+ "@orbcharts/plugins-basic-types": "^3.0.0-beta.4",
40
40
  "d3": "^7.8.5"
41
41
  }
42
42
  }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './series'
2
2
  export * from './grid'
3
3
  export * from './multiGrid'
4
+ export * from './multiValue'
4
5
  export * from './tree'
@@ -0,0 +1,23 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_MULTI_VALUE_BASIC: PresetPartial<'grid', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_MULTI_VALUE_BASIC',
8
+ description: '基本MultiValue參數',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ MultiValueLegend: {
19
+ placement: 'bottom',
20
+ padding: 14,
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,26 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_LINEAR_OPACITY: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_LINEAR_OPACITY',
8
+ description: 'ScatterBubbles漸變透明度',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ MultiValueLegend: {
19
+ placement: 'bottom',
20
+ padding: 14,
21
+ },
22
+ ScatterBubbles: {
23
+ valueLinearOpacity: [0.6, 0.95]
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ import type { PresetPartial } from '../../lib/core-types'
2
+ import type { PresetMultiValuePluginParams, PresetNoneDataPluginParams } from '../types'
3
+ // import { ALL_PLUGIN_PARAMS_GRID, ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
4
+
5
+ export const PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS: PresetPartial<'multiValue', Partial<PresetMultiValuePluginParams>
6
+ & Partial<PresetNoneDataPluginParams>> = {
7
+ name: 'PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS',
8
+ description: 'ScatterBubbles以半徑尺寸為比例',
9
+ chartParams: {
10
+ padding: {
11
+ top: 60,
12
+ right: 60,
13
+ bottom: 120,
14
+ left: 60
15
+ },
16
+ },
17
+ allPluginParams: {
18
+ MultiValueLegend: {
19
+ placement: 'bottom',
20
+ padding: 14,
21
+ },
22
+ ScatterBubbles: {
23
+ arcScaleType: 'radius'
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,3 @@
1
+ export { PRESET_MULTI_VALUE_BASIC } from './PRESET_MULTI_VALUE_BASIC'
2
+ export { PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS } from './PRESET_SCATTER_BUBBLES_SCALING_BY_RADIUS'
3
+ export { PRESET_SCATTER_BUBBLES_LINEAR_OPACITY } from './PRESET_SCATTER_BUBBLES_LINEAR_OPACITY'
package/src/params.ts CHANGED
@@ -2,6 +2,7 @@ import type {
2
2
  PresetSeriesPluginParams,
3
3
  PresetGridPluginParams,
4
4
  PresetMultiGridPluginParams,
5
+ PresetMultiValuePluginParams,
5
6
  PresetTreePluginParams,
6
7
  PresetNoneDataPluginParams
7
8
  } from './types'
@@ -50,6 +51,16 @@ export const ALL_PLUGIN_PARAMS_MULTI_GRID: PresetMultiGridPluginParams = {
50
51
  OverlappingValueStackAxes: {},
51
52
  }
52
53
 
54
+ export const ALL_PLUGIN_PARAMS_MULTI_VALUE: PresetMultiValuePluginParams = {
55
+ MultiValueLegend: {},
56
+ MultiValueTooltip: {},
57
+ Scatter: {},
58
+ ScatterBubbles: {},
59
+ XYAxes: {},
60
+ XYAux: {},
61
+ XYZoom: {}
62
+ }
63
+
53
64
  export const ALL_PLUGIN_PARAMS_TREE: PresetTreePluginParams = {
54
65
  TreeLegend: {},
55
66
  TreeMap: {},
package/src/types.ts CHANGED
@@ -40,6 +40,15 @@ import type {
40
40
  OverlappingValueAxesParams,
41
41
  OverlappingValueStackAxesParams,
42
42
 
43
+ // -- multiValue --
44
+ MultiValueLegendParams,
45
+ MultiValueTooltipParams,
46
+ ScatterParams,
47
+ ScatterBubblesParams,
48
+ XYAuxParams,
49
+ XYAxesParams,
50
+ XYZoomParams,
51
+
43
52
  // -- tree --
44
53
  TreeLegendParams,
45
54
  TreeMapParams,
@@ -241,6 +250,51 @@ export interface PresetOverlappingValueStackAxesParams {
241
250
  OverlappingValueStackAxes: Partial<OverlappingValueStackAxesParams>
242
251
  }
243
252
 
253
+ // -- multiValue --
254
+ export type PresetMultiValuePluginParams = PresetMultiValueLegendParams
255
+ & PresetMultiValueTooltipParams
256
+ & PresetScatterParams
257
+ & PresetScatterBubblesParams
258
+ & PresetXYAuxParams
259
+ & PresetXYAxesParams
260
+ & PresetXYZoomParams
261
+
262
+ export interface PresetMultiValueAxisParams {
263
+ MultiValueAxis: Partial<MultiValueAxisParams>
264
+ }
265
+
266
+ export interface PresetMultiValueStackAxisParams {
267
+ MultiValueStackAxis: Partial<MultiValueStackAxisParams>
268
+ }
269
+
270
+ export interface PresetMultiValueLegendParams {
271
+ MultiValueLegend: Partial<MultiValueLegendParams>
272
+ }
273
+
274
+ export interface PresetMultiValueTooltipParams {
275
+ MultiValueTooltip: Partial<MultiValueTooltipParams>
276
+ }
277
+
278
+ export interface PresetScatterParams {
279
+ Scatter: Partial<ScatterParams>
280
+ }
281
+
282
+ export interface PresetScatterBubblesParams {
283
+ ScatterBubbles: Partial<ScatterBubblesParams>
284
+ }
285
+
286
+ export interface PresetXYAuxParams {
287
+ XYAux: Partial<XYAuxParams>
288
+ }
289
+
290
+ export interface PresetXYAxesParams {
291
+ XYAxes: Partial<XYAxesParams>
292
+ }
293
+
294
+ export interface PresetXYZoomParams {
295
+ XYZoom: Partial<XYZoomParams>
296
+ }
297
+
244
298
  // -- tree --
245
299
  export type PresetTreePluginParams = PresetTreeLegendParams
246
300
  & PresetTreeMapParams