@plotdb/chart 3.16.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Logs
2
2
 
3
+ ## v3.16.1
4
+
5
+ - add `desc` ( `{en, "zh-TW"}` ) to the shared config items ( `utils.config.preset`: default / tip / label /
6
+ legend / bin / axis, and `common-config`: animation / subset / empty / brush / annotation ). the makechart
7
+ style panel shows it under the label. items whose name already says it ( e.g. color, enabled ) have none
8
+ - note: `font` is shared by many sections, so it has no `desc`
9
+
10
+
3
11
  ## v3.16.0
4
12
 
5
13
  - new `chart.interactions()`: which user action emits a filter on which dimensions, as
package/bundle.js CHANGED
@@ -1562,64 +1562,108 @@ var module = {exports: {}};
1562
1562
  'default': 350,
1563
1563
  min: 0,
1564
1564
  max: 5000,
1565
- step: 10
1565
+ step: 10,
1566
+ desc: {
1567
+ en: "duration of the transition when data changes, in ms",
1568
+ "zh-TW": "資料更換時轉場動畫的長度 ( 毫秒 )"
1569
+ }
1566
1570
  },
1567
1571
  interval: {
1568
1572
  type: 'number',
1569
1573
  'default': 1000,
1570
1574
  min: 100,
1571
1575
  max: 20000,
1572
- 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
+ }
1573
1581
  },
1574
1582
  speed: {
1575
1583
  type: 'number',
1576
1584
  'default': 1,
1577
1585
  min: 0.1,
1578
1586
  max: 10,
1579
- step: 0.1
1587
+ step: 0.1,
1588
+ desc: {
1589
+ en: "playback speed; scales both transitions and frame time",
1590
+ "zh-TW": "播放速度倍率,轉場與每格停留的時間一起縮放"
1591
+ }
1580
1592
  },
1581
1593
  loop: {
1582
1594
  type: 'boolean',
1583
- 'default': true
1595
+ 'default': true,
1596
+ desc: {
1597
+ en: "start over after the last frame",
1598
+ "zh-TW": "播完最後一格後從頭再播"
1599
+ }
1584
1600
  },
1585
1601
  autoplay: {
1586
1602
  type: 'boolean',
1587
- 'default': true
1603
+ 'default': true,
1604
+ desc: {
1605
+ en: "start playing frames when the chart loads",
1606
+ "zh-TW": "圖表載入後自動開始播放"
1607
+ }
1588
1608
  }
1589
1609
  },
1590
1610
  subset: {
1591
1611
  mode: {
1592
1612
  type: 'choice',
1593
1613
  values: ['dim', 'partial', 'shrink'],
1594
- '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
+ }
1595
1619
  },
1596
1620
  opacity: {
1597
1621
  type: 'number',
1598
1622
  'default': 0.2,
1599
1623
  min: 0,
1600
1624
  max: 1,
1601
- step: 0.05
1625
+ step: 0.05,
1626
+ desc: {
1627
+ en: "opacity of filtered-out data in dim mode",
1628
+ "zh-TW": "dim 模式下被篩掉的資料的透明度"
1629
+ }
1602
1630
  },
1603
1631
  fade: {
1604
1632
  type: 'number',
1605
1633
  'default': 0.72,
1606
1634
  min: 0,
1607
1635
  max: 1,
1608
- 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
+ }
1609
1641
  },
1610
1642
  background: {
1611
1643
  type: 'color',
1612
- '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
+ }
1613
1649
  }
1614
1650
  },
1615
1651
  empty: {
1616
1652
  enabled: {
1617
1653
  type: 'boolean',
1618
- 'default': true
1654
+ 'default': true,
1655
+ desc: {
1656
+ en: "show a message in the middle when there is no data",
1657
+ "zh-TW": "沒有資料時在繪圖區中間顯示一行字"
1658
+ }
1619
1659
  },
1620
1660
  text: {
1621
1661
  type: 'text',
1622
- 'default': ''
1662
+ 'default': '',
1663
+ desc: {
1664
+ en: "the message; empty uses the default, No data to show",
1665
+ "zh-TW": "要顯示的文字;空白用預設的「沒有可顯示的資料」"
1666
+ }
1623
1667
  },
1624
1668
  color: {
1625
1669
  type: 'color',
@@ -1648,7 +1692,11 @@ var module = {exports: {}};
1648
1692
  brush: {
1649
1693
  fill: {
1650
1694
  type: 'color',
1651
- 'default': ''
1695
+ 'default': '',
1696
+ desc: {
1697
+ en: "fill color of the brush selection; empty uses the chart's default",
1698
+ "zh-TW": "刷選框的填色;空白用圖表預設"
1699
+ }
1652
1700
  },
1653
1701
  fillOpacity: {
1654
1702
  type: 'number',
@@ -1659,7 +1707,11 @@ var module = {exports: {}};
1659
1707
  },
1660
1708
  stroke: {
1661
1709
  type: 'color',
1662
- 'default': ''
1710
+ 'default': '',
1711
+ desc: {
1712
+ en: "outline color of the brush selection; empty uses the chart's default",
1713
+ "zh-TW": "刷選框的外框顏色;空白用圖表預設"
1714
+ }
1663
1715
  },
1664
1716
  strokeOpacity: {
1665
1717
  type: 'number',
@@ -1677,7 +1729,11 @@ var module = {exports: {}};
1677
1729
  },
1678
1730
  handleFill: {
1679
1731
  type: 'color',
1680
- 'default': ''
1732
+ 'default': '',
1733
+ desc: {
1734
+ en: "color of the handles at both ends of the brush",
1735
+ "zh-TW": "刷選框兩端握把的顏色"
1736
+ }
1681
1737
  },
1682
1738
  handleOpacity: {
1683
1739
  type: 'number',
@@ -1690,7 +1746,11 @@ var module = {exports: {}};
1690
1746
  annotation: {
1691
1747
  enabled: {
1692
1748
  type: 'boolean',
1693
- 'default': true
1749
+ 'default': true,
1750
+ desc: {
1751
+ en: "show annotations ( notes and reference lines ) on the chart",
1752
+ "zh-TW": "顯示圖上的標記 ( 註記與參考線 )"
1753
+ }
1694
1754
  },
1695
1755
  color: {
1696
1756
  type: 'color',
@@ -4913,51 +4973,91 @@ var chart = module.exports;
4913
4973
  preset: {
4914
4974
  'default': {
4915
4975
  margin: {
4916
- type: 'number'
4976
+ type: 'number',
4977
+ desc: {
4978
+ en: "space around the chart, in px",
4979
+ "zh-TW": "圖表四周的留白 ( px )"
4980
+ }
4917
4981
  },
4918
4982
  font: font,
4919
4983
  color: {
4920
4984
  type: 'color',
4921
- 'default': 'currentColor'
4985
+ 'default': 'currentColor',
4986
+ desc: {
4987
+ en: "default color of text and lines",
4988
+ "zh-TW": "文字與線條的預設顏色"
4989
+ }
4922
4990
  },
4923
4991
  palette: {
4924
- type: 'palette'
4992
+ type: 'palette',
4993
+ desc: {
4994
+ en: "colors for the data series or categories",
4995
+ "zh-TW": "資料系列或類別的配色"
4996
+ }
4925
4997
  },
4926
4998
  background: {
4927
4999
  type: 'color',
4928
- 'default': 'transparent'
5000
+ 'default': 'transparent',
5001
+ desc: {
5002
+ en: "chart background; unselected parts also fade toward this color",
5003
+ "zh-TW": "圖表的背景色,未選取的部分也會往這個顏色淡化"
5004
+ }
4929
5005
  }
4930
5006
  },
4931
5007
  font: font,
4932
5008
  tip: {
4933
5009
  enabled: {
4934
5010
  type: 'boolean',
4935
- 'default': true
5011
+ 'default': true,
5012
+ desc: {
5013
+ en: "show a tooltip when hovering over data",
5014
+ "zh-TW": "滑鼠移到資料上時顯示提示框"
5015
+ }
4936
5016
  },
4937
5017
  format: {
4938
5018
  type: 'format',
4939
- '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
+ }
4940
5024
  }
4941
5025
  },
4942
5026
  label: {
4943
5027
  format: {
4944
5028
  type: 'format',
4945
- 'default': '.3s'
5029
+ 'default': '.3s',
5030
+ desc: {
5031
+ en: "number format of data labels",
5032
+ "zh-TW": "資料標籤的數值格式"
5033
+ }
4946
5034
  }
4947
5035
  },
4948
5036
  legend: {
4949
5037
  mode: {
4950
5038
  type: 'choice',
4951
5039
  values: ['list', 'direct'],
4952
- '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
+ }
4953
5045
  },
4954
5046
  selectable: {
4955
5047
  type: 'boolean',
4956
- 'default': true
5048
+ 'default': true,
5049
+ desc: {
5050
+ en: "click legend items to show or hide them",
5051
+ "zh-TW": "可以點圖例項目來顯示或隱藏"
5052
+ }
4957
5053
  },
4958
5054
  actions: {
4959
5055
  type: 'boolean',
4960
- 'default': true
5056
+ 'default': true,
5057
+ desc: {
5058
+ en: "show the select all / none buttons",
5059
+ "zh-TW": "顯示「全選 / 全不選」按鈕"
5060
+ }
4961
5061
  },
4962
5062
  enabled: {
4963
5063
  type: 'boolean',
@@ -4977,71 +5077,119 @@ var chart = module.exports;
4977
5077
  mode: {
4978
5078
  type: 'choice',
4979
5079
  values: ['label', 'value', 'none'],
4980
- '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
+ }
4981
5085
  }
4982
5086
  },
4983
5087
  subset: {
4984
5088
  mode: {
4985
5089
  type: 'choice',
4986
5090
  values: ['shrink', 'dim', 'partial'],
4987
- '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
+ }
4988
5096
  },
4989
5097
  opacity: {
4990
5098
  type: 'number',
4991
5099
  'default': 0.2,
4992
5100
  min: 0,
4993
5101
  max: 1,
4994
- step: 0.05
5102
+ step: 0.05,
5103
+ desc: {
5104
+ en: "opacity of hidden items in dim mode",
5105
+ "zh-TW": "dim 模式下關掉的項目的透明度"
5106
+ }
4995
5107
  }
4996
5108
  },
4997
5109
  crossfilter: {
4998
5110
  type: 'boolean',
4999
- '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
+ }
5000
5116
  }
5001
5117
  },
5002
5118
  bin: {
5003
5119
  enabled: {
5004
5120
  type: 'boolean',
5005
- '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
+ }
5006
5126
  },
5007
5127
  width: {
5008
5128
  type: 'number',
5009
5129
  'default': 0,
5010
5130
  min: 0,
5011
5131
  max: 1000000,
5012
- 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
+ }
5013
5137
  },
5014
5138
  count: {
5015
5139
  type: 'number',
5016
5140
  'default': 0,
5017
5141
  min: 0,
5018
5142
  max: 100,
5019
- 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
+ }
5020
5148
  },
5021
5149
  anchor: {
5022
5150
  type: 'number',
5023
5151
  'default': 0,
5024
5152
  min: -1000000,
5025
5153
  max: 1000000,
5026
- 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
+ }
5027
5159
  },
5028
5160
  closed: {
5029
5161
  type: 'choice',
5030
5162
  values: ['left', 'right'],
5031
- 'default': 'left'
5163
+ 'default': 'left',
5164
+ desc: {
5165
+ en: "which range a value on a boundary belongs to",
5166
+ "zh-TW": "剛好落在邊界上的值算進哪一側的區間"
5167
+ }
5032
5168
  },
5033
5169
  label: {
5034
5170
  type: 'choice',
5035
5171
  values: ['range', 'start', 'center'],
5036
- 'default': 'range'
5172
+ 'default': 'range',
5173
+ desc: {
5174
+ en: "label each group by its range, start or center",
5175
+ "zh-TW": "每組的標籤:區間、起點或中點"
5176
+ }
5037
5177
  },
5038
5178
  format: {
5039
5179
  type: 'format',
5040
- 'default': ''
5180
+ 'default': '',
5181
+ desc: {
5182
+ en: "number format of group labels; empty shows numbers as is",
5183
+ "zh-TW": "分組標籤的數值格式;空白表示照原樣顯示"
5184
+ }
5041
5185
  },
5042
5186
  empty: {
5043
5187
  type: 'boolean',
5044
- 'default': true
5188
+ 'default': true,
5189
+ desc: {
5190
+ en: "keep groups that have no data",
5191
+ "zh-TW": "保留沒有資料的組"
5192
+ }
5045
5193
  }
5046
5194
  },
5047
5195
  axis: {
@@ -5052,7 +5200,11 @@ var chart = module.exports;
5052
5200
  grid: {
5053
5201
  show: {
5054
5202
  type: 'boolean',
5055
- 'default': false
5203
+ 'default': false,
5204
+ desc: {
5205
+ en: "draw a grid line at each tick across the plot area",
5206
+ "zh-TW": "在每個刻度畫一條橫跨繪圖區的格線"
5207
+ }
5056
5208
  },
5057
5209
  color: {
5058
5210
  type: 'color',
@@ -5074,12 +5226,20 @@ var chart = module.exports;
5074
5226
  },
5075
5227
  dash: {
5076
5228
  type: 'text',
5077
- 'default': ''
5229
+ 'default': '',
5230
+ desc: {
5231
+ en: "dash pattern, e.g. 4 2; empty for a solid line",
5232
+ "zh-TW": "虛線樣式,例如 4 2;空白為實線"
5233
+ }
5078
5234
  }
5079
5235
  },
5080
5236
  center: {
5081
5237
  type: 'boolean',
5082
- '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
+ }
5083
5243
  },
5084
5244
  tick: {
5085
5245
  inner: {
@@ -5088,7 +5248,11 @@ var chart = module.exports;
5088
5248
  'default': 8,
5089
5249
  min: 0,
5090
5250
  max: 40,
5091
- step: 0.1
5251
+ step: 0.1,
5252
+ desc: {
5253
+ en: "length of the tick marks, in px",
5254
+ "zh-TW": "刻度線的長度 ( px )"
5255
+ }
5092
5256
  },
5093
5257
  color: {
5094
5258
  type: 'color',
@@ -5098,17 +5262,29 @@ var chart = module.exports;
5098
5262
  type: 'number',
5099
5263
  'default': 4,
5100
5264
  min: 1,
5101
- max: 40
5265
+ max: 40,
5266
+ desc: {
5267
+ en: "approximate number of ticks on a numeric axis",
5268
+ "zh-TW": "數值軸上大約要有幾個刻度"
5269
+ }
5102
5270
  },
5103
5271
  boundaryOffset: {
5104
5272
  type: 'boolean',
5105
- '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
+ }
5106
5278
  }
5107
5279
  },
5108
5280
  baseline: {
5109
5281
  show: {
5110
5282
  type: 'boolean',
5111
- 'default': true
5283
+ 'default': true,
5284
+ desc: {
5285
+ en: "draw the axis line",
5286
+ "zh-TW": "畫出軸線"
5287
+ }
5112
5288
  },
5113
5289
  color: {
5114
5290
  type: 'color',
@@ -5122,45 +5298,73 @@ var chart = module.exports;
5122
5298
  },
5123
5299
  format: {
5124
5300
  type: 'format',
5125
- 'default': '.3s'
5301
+ 'default': '.3s',
5302
+ desc: {
5303
+ en: "number format of the tick labels",
5304
+ "zh-TW": "刻度標籤的數值格式"
5305
+ }
5126
5306
  },
5127
5307
  direction: {
5128
5308
  type: 'choice',
5129
5309
  'default': 'horizontal',
5130
- 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
+ }
5131
5315
  },
5132
5316
  angle: {
5133
5317
  type: 'number',
5134
5318
  'default': 45,
5135
5319
  min: 0,
5136
5320
  max: 90,
5137
- step: 1
5321
+ step: 1,
5322
+ desc: {
5323
+ en: "angle of angled labels, in degrees",
5324
+ "zh-TW": "傾斜標籤的角度 ( 度 )"
5325
+ }
5138
5326
  },
5139
5327
  gap: {
5140
5328
  type: 'number',
5141
5329
  'default': 1.5,
5142
5330
  min: 0,
5143
5331
  max: 10,
5144
- 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
+ }
5145
5337
  },
5146
5338
  strategy: {
5147
5339
  type: 'choice',
5148
5340
  'default': 'stride',
5149
- 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
+ }
5150
5346
  },
5151
5347
  tolerance: {
5152
5348
  type: 'number',
5153
5349
  'default': 0.2,
5154
5350
  min: 0,
5155
5351
  max: 1,
5156
- 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
+ }
5157
5357
  },
5158
5358
  padding: {
5159
5359
  type: 'number',
5160
5360
  'default': 1,
5161
5361
  min: 0,
5162
5362
  max: 100,
5163
- step: 0.5
5363
+ step: 0.5,
5364
+ desc: {
5365
+ en: "space between the tick marks and the labels",
5366
+ "zh-TW": "刻度與標籤之間的距離"
5367
+ }
5164
5368
  },
5165
5369
  font: font
5166
5370
  },
@@ -5171,7 +5375,11 @@ var chart = module.exports;
5171
5375
  },
5172
5376
  text: {
5173
5377
  type: 'text',
5174
- 'default': ''
5378
+ 'default': '',
5379
+ desc: {
5380
+ en: "axis title",
5381
+ "zh-TW": "軸的標題文字"
5382
+ }
5175
5383
  },
5176
5384
  show: {
5177
5385
  type: 'boolean',
@@ -5182,11 +5390,19 @@ var chart = module.exports;
5182
5390
  'default': 1,
5183
5391
  min: 0,
5184
5392
  max: 100,
5185
- step: 0.5
5393
+ step: 0.5,
5394
+ desc: {
5395
+ en: "space between the labels and the axis title",
5396
+ "zh-TW": "刻度標籤與軸標題之間的距離"
5397
+ }
5186
5398
  },
5187
5399
  position: {
5188
5400
  type: 'choice',
5189
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
+ },
5190
5406
  values: [
5191
5407
  {
5192
5408
  name: 'in / start',
@@ -5218,7 +5434,11 @@ var chart = module.exports;
5218
5434
  },
5219
5435
  text: {
5220
5436
  type: 'text',
5221
- 'default': ''
5437
+ 'default': '',
5438
+ desc: {
5439
+ en: "a note at the start of the axis, e.g. a unit",
5440
+ "zh-TW": "寫在軸開頭的附註,例如單位"
5441
+ }
5222
5442
  },
5223
5443
  position: {
5224
5444
  type: 'choice',
@@ -5231,7 +5451,11 @@ var chart = module.exports;
5231
5451
  name: 'out',
5232
5452
  value: 1
5233
5453
  }
5234
- ]
5454
+ ],
5455
+ desc: {
5456
+ en: "put the note inside or outside the axis",
5457
+ "zh-TW": "附註放在軸的內側或外側"
5458
+ }
5235
5459
  },
5236
5460
  font: font,
5237
5461
  color: {
@@ -5243,7 +5467,11 @@ var chart = module.exports;
5243
5467
  'default': 1,
5244
5468
  min: 0,
5245
5469
  max: 100,
5246
- step: 0.5
5470
+ step: 0.5,
5471
+ desc: {
5472
+ en: "distance between the note and the axis",
5473
+ "zh-TW": "附註與軸的距離"
5474
+ }
5247
5475
  }
5248
5476
  },
5249
5477
  sideNoteEnd: {
@@ -5253,7 +5481,11 @@ var chart = module.exports;
5253
5481
  },
5254
5482
  text: {
5255
5483
  type: 'text',
5256
- 'default': ''
5484
+ 'default': '',
5485
+ desc: {
5486
+ en: "a note at the end of the axis, e.g. a unit",
5487
+ "zh-TW": "寫在軸結尾的附註,例如單位"
5488
+ }
5257
5489
  },
5258
5490
  position: {
5259
5491
  type: 'choice',
@@ -5266,7 +5498,11 @@ var chart = module.exports;
5266
5498
  name: 'out',
5267
5499
  value: 1
5268
5500
  }
5269
- ]
5501
+ ],
5502
+ desc: {
5503
+ en: "put the note inside or outside the axis",
5504
+ "zh-TW": "附註放在軸的內側或外側"
5505
+ }
5270
5506
  },
5271
5507
  font: font,
5272
5508
  color: {
@@ -5278,7 +5514,11 @@ var chart = module.exports;
5278
5514
  'default': 1,
5279
5515
  min: 0,
5280
5516
  max: 100,
5281
- step: 0.5
5517
+ step: 0.5,
5518
+ desc: {
5519
+ en: "distance between the note and the axis",
5520
+ "zh-TW": "附註與軸的距離"
5521
+ }
5282
5522
  }
5283
5523
  }
5284
5524
  }