@plotdb/chart 3.15.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.js CHANGED
@@ -1535,6 +1535,23 @@ var module = {exports: {}};
1535
1535
  },
1536
1536
  canFilter: function(){
1537
1537
  return !!this.filterDims().length;
1538
+ },
1539
+ interactions: function(){
1540
+ var ret, k, v;
1541
+ if (!(this.mod || {}).interactions) {
1542
+ return null;
1543
+ }
1544
+ ret = this.mod.interactions.call(this) || {};
1545
+ return Object.fromEntries((function(){
1546
+ var ref$, results$ = [];
1547
+ for (k in ref$ = ret) {
1548
+ v = ref$[k];
1549
+ if (v && v.length) {
1550
+ results$.push([k, v]);
1551
+ }
1552
+ }
1553
+ return results$;
1554
+ }()));
1538
1555
  }
1539
1556
  });
1540
1557
  chart.commonConfig = {
@@ -1545,64 +1562,108 @@ var module = {exports: {}};
1545
1562
  'default': 350,
1546
1563
  min: 0,
1547
1564
  max: 5000,
1548
- step: 10
1565
+ step: 10,
1566
+ desc: {
1567
+ en: "duration of the transition when data changes, in ms",
1568
+ "zh-TW": "資料更換時轉場動畫的長度 ( 毫秒 )"
1569
+ }
1549
1570
  },
1550
1571
  interval: {
1551
1572
  type: 'number',
1552
1573
  'default': 1000,
1553
1574
  min: 100,
1554
1575
  max: 20000,
1555
- step: 50
1576
+ step: 50,
1577
+ desc: {
1578
+ en: "how long each frame stays when playing frames ( dataframe ), in ms",
1579
+ "zh-TW": "播放多個畫面 ( dataframe ) 時每格停留的時間 ( 毫秒 )"
1580
+ }
1556
1581
  },
1557
1582
  speed: {
1558
1583
  type: 'number',
1559
1584
  'default': 1,
1560
1585
  min: 0.1,
1561
1586
  max: 10,
1562
- step: 0.1
1587
+ step: 0.1,
1588
+ desc: {
1589
+ en: "playback speed; scales both transitions and frame time",
1590
+ "zh-TW": "播放速度倍率,轉場與每格停留的時間一起縮放"
1591
+ }
1563
1592
  },
1564
1593
  loop: {
1565
1594
  type: 'boolean',
1566
- 'default': true
1595
+ 'default': true,
1596
+ desc: {
1597
+ en: "start over after the last frame",
1598
+ "zh-TW": "播完最後一格後從頭再播"
1599
+ }
1567
1600
  },
1568
1601
  autoplay: {
1569
1602
  type: 'boolean',
1570
- 'default': true
1603
+ 'default': true,
1604
+ desc: {
1605
+ en: "start playing frames when the chart loads",
1606
+ "zh-TW": "圖表載入後自動開始播放"
1607
+ }
1571
1608
  }
1572
1609
  },
1573
1610
  subset: {
1574
1611
  mode: {
1575
1612
  type: 'choice',
1576
1613
  values: ['dim', 'partial', 'shrink'],
1577
- 'default': 'dim'
1614
+ 'default': 'dim',
1615
+ desc: {
1616
+ en: "how filtered-out data looks: dim lowers its opacity, partial greys out the unselected part of each mark, shrink draws only the selected part",
1617
+ "zh-TW": "被篩掉的資料怎麼呈現:dim 變淡,partial 把每個圖形未選的部分變灰,shrink 只畫選中的部分"
1618
+ }
1578
1619
  },
1579
1620
  opacity: {
1580
1621
  type: 'number',
1581
1622
  'default': 0.2,
1582
1623
  min: 0,
1583
1624
  max: 1,
1584
- step: 0.05
1625
+ step: 0.05,
1626
+ desc: {
1627
+ en: "opacity of filtered-out data in dim mode",
1628
+ "zh-TW": "dim 模式下被篩掉的資料的透明度"
1629
+ }
1585
1630
  },
1586
1631
  fade: {
1587
1632
  type: 'number',
1588
1633
  'default': 0.72,
1589
1634
  min: 0,
1590
1635
  max: 1,
1591
- step: 0.01
1636
+ step: 0.01,
1637
+ desc: {
1638
+ en: "in partial mode, how far the unselected part fades toward the background ( 0 to 1 )",
1639
+ "zh-TW": "partial 模式下未選部分往背景色淡化的程度 ( 0 到 1 )"
1640
+ }
1592
1641
  },
1593
1642
  background: {
1594
1643
  type: 'color',
1595
- 'default': 'transparent'
1644
+ 'default': 'transparent',
1645
+ desc: {
1646
+ en: "color the unselected part fades toward; set it on a dark background, or it turns light grey",
1647
+ "zh-TW": "未選部分往哪個顏色淡化;深色底的圖要設定,否則會是亮灰色"
1648
+ }
1596
1649
  }
1597
1650
  },
1598
1651
  empty: {
1599
1652
  enabled: {
1600
1653
  type: 'boolean',
1601
- 'default': true
1654
+ 'default': true,
1655
+ desc: {
1656
+ en: "show a message in the middle when there is no data",
1657
+ "zh-TW": "沒有資料時在繪圖區中間顯示一行字"
1658
+ }
1602
1659
  },
1603
1660
  text: {
1604
1661
  type: 'text',
1605
- 'default': ''
1662
+ 'default': '',
1663
+ desc: {
1664
+ en: "the message; empty uses the default, No data to show",
1665
+ "zh-TW": "要顯示的文字;空白用預設的「沒有可顯示的資料」"
1666
+ }
1606
1667
  },
1607
1668
  color: {
1608
1669
  type: 'color',
@@ -1631,7 +1692,11 @@ var module = {exports: {}};
1631
1692
  brush: {
1632
1693
  fill: {
1633
1694
  type: 'color',
1634
- 'default': ''
1695
+ 'default': '',
1696
+ desc: {
1697
+ en: "fill color of the brush selection; empty uses the chart's default",
1698
+ "zh-TW": "刷選框的填色;空白用圖表預設"
1699
+ }
1635
1700
  },
1636
1701
  fillOpacity: {
1637
1702
  type: 'number',
@@ -1642,7 +1707,11 @@ var module = {exports: {}};
1642
1707
  },
1643
1708
  stroke: {
1644
1709
  type: 'color',
1645
- 'default': ''
1710
+ 'default': '',
1711
+ desc: {
1712
+ en: "outline color of the brush selection; empty uses the chart's default",
1713
+ "zh-TW": "刷選框的外框顏色;空白用圖表預設"
1714
+ }
1646
1715
  },
1647
1716
  strokeOpacity: {
1648
1717
  type: 'number',
@@ -1660,7 +1729,11 @@ var module = {exports: {}};
1660
1729
  },
1661
1730
  handleFill: {
1662
1731
  type: 'color',
1663
- 'default': ''
1732
+ 'default': '',
1733
+ desc: {
1734
+ en: "color of the handles at both ends of the brush",
1735
+ "zh-TW": "刷選框兩端握把的顏色"
1736
+ }
1664
1737
  },
1665
1738
  handleOpacity: {
1666
1739
  type: 'number',
@@ -1673,7 +1746,11 @@ var module = {exports: {}};
1673
1746
  annotation: {
1674
1747
  enabled: {
1675
1748
  type: 'boolean',
1676
- 'default': true
1749
+ 'default': true,
1750
+ desc: {
1751
+ en: "show annotations ( notes and reference lines ) on the chart",
1752
+ "zh-TW": "顯示圖上的標記 ( 註記與參考線 )"
1753
+ }
1677
1754
  },
1678
1755
  color: {
1679
1756
  type: 'color',
@@ -4896,51 +4973,91 @@ var chart = module.exports;
4896
4973
  preset: {
4897
4974
  'default': {
4898
4975
  margin: {
4899
- type: 'number'
4976
+ type: 'number',
4977
+ desc: {
4978
+ en: "space around the chart, in px",
4979
+ "zh-TW": "圖表四周的留白 ( px )"
4980
+ }
4900
4981
  },
4901
4982
  font: font,
4902
4983
  color: {
4903
4984
  type: 'color',
4904
- 'default': 'currentColor'
4985
+ 'default': 'currentColor',
4986
+ desc: {
4987
+ en: "default color of text and lines",
4988
+ "zh-TW": "文字與線條的預設顏色"
4989
+ }
4905
4990
  },
4906
4991
  palette: {
4907
- type: 'palette'
4992
+ type: 'palette',
4993
+ desc: {
4994
+ en: "colors for the data series or categories",
4995
+ "zh-TW": "資料系列或類別的配色"
4996
+ }
4908
4997
  },
4909
4998
  background: {
4910
4999
  type: 'color',
4911
- 'default': 'transparent'
5000
+ 'default': 'transparent',
5001
+ desc: {
5002
+ en: "chart background; unselected parts also fade toward this color",
5003
+ "zh-TW": "圖表的背景色,未選取的部分也會往這個顏色淡化"
5004
+ }
4912
5005
  }
4913
5006
  },
4914
5007
  font: font,
4915
5008
  tip: {
4916
5009
  enabled: {
4917
5010
  type: 'boolean',
4918
- 'default': true
5011
+ 'default': true,
5012
+ desc: {
5013
+ en: "show a tooltip when hovering over data",
5014
+ "zh-TW": "滑鼠移到資料上時顯示提示框"
5015
+ }
4919
5016
  },
4920
5017
  format: {
4921
5018
  type: 'format',
4922
- 'default': '.3s'
5019
+ 'default': '.3s',
5020
+ desc: {
5021
+ en: "number format in the tooltip, e.g. .3s ( d3-format )",
5022
+ "zh-TW": "提示框裡數值的格式,例如 .3s ( d3-format )"
5023
+ }
4923
5024
  }
4924
5025
  },
4925
5026
  label: {
4926
5027
  format: {
4927
5028
  type: 'format',
4928
- 'default': '.3s'
5029
+ 'default': '.3s',
5030
+ desc: {
5031
+ en: "number format of data labels",
5032
+ "zh-TW": "資料標籤的數值格式"
5033
+ }
4929
5034
  }
4930
5035
  },
4931
5036
  legend: {
4932
5037
  mode: {
4933
5038
  type: 'choice',
4934
5039
  values: ['list', 'direct'],
4935
- 'default': 'list'
5040
+ 'default': 'list',
5041
+ desc: {
5042
+ en: "list: a separate legend; direct: names placed next to the data ( falls back to list when the chart can't )",
5043
+ "zh-TW": "list:獨立的圖例清單;direct:名稱直接標在資料旁 ( 圖表不支援時改用 list )"
5044
+ }
4936
5045
  },
4937
5046
  selectable: {
4938
5047
  type: 'boolean',
4939
- 'default': true
5048
+ 'default': true,
5049
+ desc: {
5050
+ en: "click legend items to show or hide them",
5051
+ "zh-TW": "可以點圖例項目來顯示或隱藏"
5052
+ }
4940
5053
  },
4941
5054
  actions: {
4942
5055
  type: 'boolean',
4943
- 'default': true
5056
+ 'default': true,
5057
+ desc: {
5058
+ en: "show the select all / none buttons",
5059
+ "zh-TW": "顯示「全選 / 全不選」按鈕"
5060
+ }
4944
5061
  },
4945
5062
  enabled: {
4946
5063
  type: 'boolean',
@@ -4960,71 +5077,119 @@ var chart = module.exports;
4960
5077
  mode: {
4961
5078
  type: 'choice',
4962
5079
  values: ['label', 'value', 'none'],
4963
- 'default': 'value'
5080
+ 'default': 'value',
5081
+ desc: {
5082
+ en: "sort items by label or value, or keep the data order ( none )",
5083
+ "zh-TW": "圖例項目依名稱或數值排序,none 維持資料順序"
5084
+ }
4964
5085
  }
4965
5086
  },
4966
5087
  subset: {
4967
5088
  mode: {
4968
5089
  type: 'choice',
4969
5090
  values: ['shrink', 'dim', 'partial'],
4970
- 'default': 'shrink'
5091
+ 'default': 'shrink',
5092
+ desc: {
5093
+ en: "how hidden items look: shrink removes them, dim keeps their place and lowers opacity",
5094
+ "zh-TW": "關掉的項目怎麼呈現:shrink 整個拿掉,dim 保留位置但變淡"
5095
+ }
4971
5096
  },
4972
5097
  opacity: {
4973
5098
  type: 'number',
4974
5099
  'default': 0.2,
4975
5100
  min: 0,
4976
5101
  max: 1,
4977
- step: 0.05
5102
+ step: 0.05,
5103
+ desc: {
5104
+ en: "opacity of hidden items in dim mode",
5105
+ "zh-TW": "dim 模式下關掉的項目的透明度"
5106
+ }
4978
5107
  }
4979
5108
  },
4980
5109
  crossfilter: {
4981
5110
  type: 'boolean',
4982
- 'default': false
5111
+ 'default': false,
5112
+ desc: {
5113
+ en: "legend selection also filters other charts on a dashboard. for charts whose legend items are data values, like pie",
5114
+ "zh-TW": "圖例的選取同時篩選儀表板上的其他圖;適用於圖例項目就是資料值的圖,例如圓餅圖"
5115
+ }
4983
5116
  }
4984
5117
  },
4985
5118
  bin: {
4986
5119
  enabled: {
4987
5120
  type: 'boolean',
4988
- 'default': false
5121
+ 'default': false,
5122
+ desc: {
5123
+ en: "group raw values into ranges ( a histogram ); needs the value field bound",
5124
+ "zh-TW": "把原始數值分組成區間 ( 直方圖 ),需要綁定 value 欄位"
5125
+ }
4989
5126
  },
4990
5127
  width: {
4991
5128
  type: 'number',
4992
5129
  'default': 0,
4993
5130
  min: 0,
4994
5131
  max: 1000000,
4995
- step: 0.01
5132
+ step: 0.01,
5133
+ desc: {
5134
+ en: "width of each range; 0 picks a round width automatically",
5135
+ "zh-TW": "每組的寬度;0 表示自動挑一個整齊的組距"
5136
+ }
4996
5137
  },
4997
5138
  count: {
4998
5139
  type: 'number',
4999
5140
  'default': 0,
5000
5141
  min: 0,
5001
5142
  max: 100,
5002
- step: 1
5143
+ step: 1,
5144
+ desc: {
5145
+ en: "target number of groups when the width is automatic; 0 decides by the number of rows",
5146
+ "zh-TW": "自動組距時希望分成幾組;0 表示依資料筆數決定"
5147
+ }
5003
5148
  },
5004
5149
  anchor: {
5005
5150
  type: 'number',
5006
5151
  'default': 0,
5007
5152
  min: -1000000,
5008
5153
  max: 1000000,
5009
- step: 0.01
5154
+ step: 0.01,
5155
+ desc: {
5156
+ en: "ranges are aligned so that boundaries fall on this value plus multiples of the width",
5157
+ "zh-TW": "區間邊界對齊的位置:邊界一定落在這個值加上組距的整數倍"
5158
+ }
5010
5159
  },
5011
5160
  closed: {
5012
5161
  type: 'choice',
5013
5162
  values: ['left', 'right'],
5014
- 'default': 'left'
5163
+ 'default': 'left',
5164
+ desc: {
5165
+ en: "which range a value on a boundary belongs to",
5166
+ "zh-TW": "剛好落在邊界上的值算進哪一側的區間"
5167
+ }
5015
5168
  },
5016
5169
  label: {
5017
5170
  type: 'choice',
5018
5171
  values: ['range', 'start', 'center'],
5019
- 'default': 'range'
5172
+ 'default': 'range',
5173
+ desc: {
5174
+ en: "label each group by its range, start or center",
5175
+ "zh-TW": "每組的標籤:區間、起點或中點"
5176
+ }
5020
5177
  },
5021
5178
  format: {
5022
5179
  type: 'format',
5023
- 'default': ''
5180
+ 'default': '',
5181
+ desc: {
5182
+ en: "number format of group labels; empty shows numbers as is",
5183
+ "zh-TW": "分組標籤的數值格式;空白表示照原樣顯示"
5184
+ }
5024
5185
  },
5025
5186
  empty: {
5026
5187
  type: 'boolean',
5027
- 'default': true
5188
+ 'default': true,
5189
+ desc: {
5190
+ en: "keep groups that have no data",
5191
+ "zh-TW": "保留沒有資料的組"
5192
+ }
5028
5193
  }
5029
5194
  },
5030
5195
  axis: {
@@ -5035,7 +5200,11 @@ var chart = module.exports;
5035
5200
  grid: {
5036
5201
  show: {
5037
5202
  type: 'boolean',
5038
- 'default': false
5203
+ 'default': false,
5204
+ desc: {
5205
+ en: "draw a grid line at each tick across the plot area",
5206
+ "zh-TW": "在每個刻度畫一條橫跨繪圖區的格線"
5207
+ }
5039
5208
  },
5040
5209
  color: {
5041
5210
  type: 'color',
@@ -5057,12 +5226,20 @@ var chart = module.exports;
5057
5226
  },
5058
5227
  dash: {
5059
5228
  type: 'text',
5060
- 'default': ''
5229
+ 'default': '',
5230
+ desc: {
5231
+ en: "dash pattern, e.g. 4 2; empty for a solid line",
5232
+ "zh-TW": "虛線樣式,例如 4 2;空白為實線"
5233
+ }
5061
5234
  }
5062
5235
  },
5063
5236
  center: {
5064
5237
  type: 'boolean',
5065
- 'default': false
5238
+ 'default': false,
5239
+ desc: {
5240
+ en: "place the axis through the middle of the plot area ( only in charts that support it, e.g. scatter )",
5241
+ "zh-TW": "把軸放在繪圖區中間 ( 支援的圖才有作用,例如散佈圖 )"
5242
+ }
5066
5243
  },
5067
5244
  tick: {
5068
5245
  inner: {
@@ -5071,7 +5248,11 @@ var chart = module.exports;
5071
5248
  'default': 8,
5072
5249
  min: 0,
5073
5250
  max: 40,
5074
- step: 0.1
5251
+ step: 0.1,
5252
+ desc: {
5253
+ en: "length of the tick marks, in px",
5254
+ "zh-TW": "刻度線的長度 ( px )"
5255
+ }
5075
5256
  },
5076
5257
  color: {
5077
5258
  type: 'color',
@@ -5081,17 +5262,29 @@ var chart = module.exports;
5081
5262
  type: 'number',
5082
5263
  'default': 4,
5083
5264
  min: 1,
5084
- max: 40
5265
+ max: 40,
5266
+ desc: {
5267
+ en: "approximate number of ticks on a numeric axis",
5268
+ "zh-TW": "數值軸上大約要有幾個刻度"
5269
+ }
5085
5270
  },
5086
5271
  boundaryOffset: {
5087
5272
  type: 'boolean',
5088
- 'default': true
5273
+ 'default': true,
5274
+ desc: {
5275
+ en: "align the first and last labels inward so they don't stick out past the ends of the axis",
5276
+ "zh-TW": "頭尾兩個標籤往內對齊,不凸出軸的兩端"
5277
+ }
5089
5278
  }
5090
5279
  },
5091
5280
  baseline: {
5092
5281
  show: {
5093
5282
  type: 'boolean',
5094
- 'default': true
5283
+ 'default': true,
5284
+ desc: {
5285
+ en: "draw the axis line",
5286
+ "zh-TW": "畫出軸線"
5287
+ }
5095
5288
  },
5096
5289
  color: {
5097
5290
  type: 'color',
@@ -5105,45 +5298,73 @@ var chart = module.exports;
5105
5298
  },
5106
5299
  format: {
5107
5300
  type: 'format',
5108
- 'default': '.3s'
5301
+ 'default': '.3s',
5302
+ desc: {
5303
+ en: "number format of the tick labels",
5304
+ "zh-TW": "刻度標籤的數值格式"
5305
+ }
5109
5306
  },
5110
5307
  direction: {
5111
5308
  type: 'choice',
5112
5309
  'default': 'horizontal',
5113
- values: ['horizontal', 'angled', 'vertical', 'auto']
5310
+ values: ['horizontal', 'angled', 'vertical', 'auto'],
5311
+ desc: {
5312
+ en: "label orientation; auto tries horizontal, angled, then vertical, and hides some labels only if none fits",
5313
+ "zh-TW": "標籤方向;auto 依序試水平、傾斜、垂直,都放不下才隱藏部分標籤"
5314
+ }
5114
5315
  },
5115
5316
  angle: {
5116
5317
  type: 'number',
5117
5318
  'default': 45,
5118
5319
  min: 0,
5119
5320
  max: 90,
5120
- step: 1
5321
+ step: 1,
5322
+ desc: {
5323
+ en: "angle of angled labels, in degrees",
5324
+ "zh-TW": "傾斜標籤的角度 ( 度 )"
5325
+ }
5121
5326
  },
5122
5327
  gap: {
5123
5328
  type: 'number',
5124
5329
  'default': 1.5,
5125
5330
  min: 0,
5126
5331
  max: 10,
5127
- step: 0.1
5332
+ step: 0.1,
5333
+ desc: {
5334
+ en: "minimum space between labels, in em; when they don't fit, only every nth label is shown",
5335
+ "zh-TW": "相鄰標籤至少要隔多遠 ( em );太擠時每隔幾個才顯示一個"
5336
+ }
5128
5337
  },
5129
5338
  strategy: {
5130
5339
  type: 'choice',
5131
5340
  'default': 'stride',
5132
- values: ['stride', 'ends']
5341
+ values: ['stride', 'ends'],
5342
+ desc: {
5343
+ en: "which labels to keep when they don't fit: stride keeps every nth from the first, ends always keeps the first and last",
5344
+ "zh-TW": "放不下時保留哪些標籤:stride 從第一個起每隔幾個留一個,ends 一定保留頭尾"
5345
+ }
5133
5346
  },
5134
5347
  tolerance: {
5135
5348
  type: 'number',
5136
5349
  'default': 0.2,
5137
5350
  min: 0,
5138
5351
  max: 1,
5139
- step: 0.05
5352
+ step: 0.05,
5353
+ desc: {
5354
+ en: "with ends, how uneven the spacing may be ( 0.2 = ±20% ); 0 accepts only equal spacing",
5355
+ "zh-TW": "ends 模式下間距可以不平均到什麼程度 ( 0.2 = ±20% );0 表示只接受完全平均"
5356
+ }
5140
5357
  },
5141
5358
  padding: {
5142
5359
  type: 'number',
5143
5360
  'default': 1,
5144
5361
  min: 0,
5145
5362
  max: 100,
5146
- step: 0.5
5363
+ step: 0.5,
5364
+ desc: {
5365
+ en: "space between the tick marks and the labels",
5366
+ "zh-TW": "刻度與標籤之間的距離"
5367
+ }
5147
5368
  },
5148
5369
  font: font
5149
5370
  },
@@ -5154,7 +5375,11 @@ var chart = module.exports;
5154
5375
  },
5155
5376
  text: {
5156
5377
  type: 'text',
5157
- 'default': ''
5378
+ 'default': '',
5379
+ desc: {
5380
+ en: "axis title",
5381
+ "zh-TW": "軸的標題文字"
5382
+ }
5158
5383
  },
5159
5384
  show: {
5160
5385
  type: 'boolean',
@@ -5165,11 +5390,19 @@ var chart = module.exports;
5165
5390
  'default': 1,
5166
5391
  min: 0,
5167
5392
  max: 100,
5168
- step: 0.5
5393
+ step: 0.5,
5394
+ desc: {
5395
+ en: "space between the labels and the axis title",
5396
+ "zh-TW": "刻度標籤與軸標題之間的距離"
5397
+ }
5169
5398
  },
5170
5399
  position: {
5171
5400
  type: 'choice',
5172
5401
  'default': 4,
5402
+ desc: {
5403
+ en: "where the axis title sits: inside or outside the axis, at its start, middle or end",
5404
+ "zh-TW": "軸標題的位置:軸內或軸外,對齊開頭、中間或結尾"
5405
+ },
5173
5406
  values: [
5174
5407
  {
5175
5408
  name: 'in / start',
@@ -5201,7 +5434,11 @@ var chart = module.exports;
5201
5434
  },
5202
5435
  text: {
5203
5436
  type: 'text',
5204
- 'default': ''
5437
+ 'default': '',
5438
+ desc: {
5439
+ en: "a note at the start of the axis, e.g. a unit",
5440
+ "zh-TW": "寫在軸開頭的附註,例如單位"
5441
+ }
5205
5442
  },
5206
5443
  position: {
5207
5444
  type: 'choice',
@@ -5214,7 +5451,11 @@ var chart = module.exports;
5214
5451
  name: 'out',
5215
5452
  value: 1
5216
5453
  }
5217
- ]
5454
+ ],
5455
+ desc: {
5456
+ en: "put the note inside or outside the axis",
5457
+ "zh-TW": "附註放在軸的內側或外側"
5458
+ }
5218
5459
  },
5219
5460
  font: font,
5220
5461
  color: {
@@ -5226,7 +5467,11 @@ var chart = module.exports;
5226
5467
  'default': 1,
5227
5468
  min: 0,
5228
5469
  max: 100,
5229
- step: 0.5
5470
+ step: 0.5,
5471
+ desc: {
5472
+ en: "distance between the note and the axis",
5473
+ "zh-TW": "附註與軸的距離"
5474
+ }
5230
5475
  }
5231
5476
  },
5232
5477
  sideNoteEnd: {
@@ -5236,7 +5481,11 @@ var chart = module.exports;
5236
5481
  },
5237
5482
  text: {
5238
5483
  type: 'text',
5239
- 'default': ''
5484
+ 'default': '',
5485
+ desc: {
5486
+ en: "a note at the end of the axis, e.g. a unit",
5487
+ "zh-TW": "寫在軸結尾的附註,例如單位"
5488
+ }
5240
5489
  },
5241
5490
  position: {
5242
5491
  type: 'choice',
@@ -5249,7 +5498,11 @@ var chart = module.exports;
5249
5498
  name: 'out',
5250
5499
  value: 1
5251
5500
  }
5252
- ]
5501
+ ],
5502
+ desc: {
5503
+ en: "put the note inside or outside the axis",
5504
+ "zh-TW": "附註放在軸的內側或外側"
5505
+ }
5253
5506
  },
5254
5507
  font: font,
5255
5508
  color: {
@@ -5261,7 +5514,11 @@ var chart = module.exports;
5261
5514
  'default': 1,
5262
5515
  min: 0,
5263
5516
  max: 100,
5264
- step: 0.5
5517
+ step: 0.5,
5518
+ desc: {
5519
+ en: "distance between the note and the axis",
5520
+ "zh-TW": "附註與軸的距離"
5521
+ }
5265
5522
  }
5266
5523
  }
5267
5524
  }