billboard.js 3.8.2 → 3.9.0-next.2

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.
Files changed (63) hide show
  1. package/dist/billboard.css +7 -7
  2. package/dist/billboard.js +386 -71
  3. package/dist/billboard.min.css +2 -2
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +868 -361
  6. package/dist/billboard.pkgd.min.js +2 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +4 -3
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +4 -3
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +4 -4
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +484 -292
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +487 -294
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +488 -295
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +489 -297
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +501 -320
  22. package/dist/theme/dark.css +298 -0
  23. package/dist/theme/dark.min.css +9 -0
  24. package/dist/theme/datalab.css +9 -2
  25. package/dist/theme/datalab.min.css +2 -2
  26. package/dist/theme/graph.css +7 -5
  27. package/dist/theme/graph.min.css +2 -2
  28. package/dist/theme/insight.css +7 -5
  29. package/dist/theme/insight.min.css +2 -2
  30. package/dist-esm/billboard.js +367 -59
  31. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +4 -3
  33. package/dist-esm/plugin/billboardjs-plugin-stanford.js +4 -3
  34. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  35. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  36. package/package.json +35 -34
  37. package/src/Chart/Chart.ts +30 -1
  38. package/src/ChartInternal/ChartInternal.ts +12 -4
  39. package/src/ChartInternal/data/IData.ts +5 -0
  40. package/src/ChartInternal/data/data.ts +23 -9
  41. package/src/ChartInternal/internals/size.ts +5 -1
  42. package/src/ChartInternal/internals/text.ts +20 -15
  43. package/src/ChartInternal/internals/tooltip.ts +4 -3
  44. package/src/ChartInternal/shape/arc.ts +161 -18
  45. package/src/ChartInternal/shape/bar.ts +7 -3
  46. package/src/ChartInternal/shape/bubble.ts +0 -1
  47. package/src/ChartInternal/shape/point.ts +2 -0
  48. package/src/config/Options/common/legend.ts +1 -1
  49. package/src/config/Options/common/point.ts +30 -2
  50. package/src/config/Options/data/data.ts +22 -6
  51. package/src/config/Options/shape/arc.ts +73 -1
  52. package/src/config/Options/shape/bar.ts +7 -1
  53. package/src/config/Options/shape/donut.ts +5 -0
  54. package/src/config/Options/shape/gauge.ts +6 -0
  55. package/src/config/Store/State.ts +2 -1
  56. package/src/config/classes.ts +2 -1
  57. package/src/scss/billboard.scss +8 -5
  58. package/src/scss/theme/dark.scss +423 -0
  59. package/src/scss/theme/datalab.scss +11 -0
  60. package/src/scss/theme/graph.scss +9 -4
  61. package/src/scss/theme/insight.scss +9 -4
  62. package/types/options.d.ts +36 -14
  63. package/types/options.shape.d.ts +81 -4
@@ -0,0 +1,423 @@
1
+ /*-- Dark Theme --*/
2
+ @charset "UTF-8";
3
+
4
+ $font-family: Helvetica, Arial, sans-serif, "nanumgothic", "Dotum";
5
+
6
+ /*-- Default color pattern --*/
7
+ .bb-color-pattern {
8
+ background-image: url("#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;");
9
+ }
10
+
11
+ /*-- Chart --*/
12
+ .bb {
13
+ svg {
14
+ font-size: 12px;
15
+ font-family: $font-family;
16
+ line-height: 1;
17
+ }
18
+
19
+ path, line {
20
+ fill: none;
21
+ stroke: #8d9cab;
22
+ }
23
+
24
+ text, .bb-button {
25
+ -webkit-user-select: none;
26
+ -moz-user-select: none;
27
+ -ms-user-select: none;
28
+ user-select: none;
29
+ fill: #8d9cab;
30
+ font-size: 11px;
31
+ }
32
+ }
33
+
34
+ .bb-legend-item-title,
35
+ .bb-xgrid-focus,
36
+ .bb-ygrid-focus,
37
+ .bb-ygrid,
38
+ .bb-line {
39
+ shape-rendering: crispEdges;
40
+ }
41
+
42
+ .bb-chart-arcs {
43
+ .bb-needle {
44
+ fill: #8d9cab;
45
+ }
46
+ }
47
+
48
+ /*-- Axis --*/
49
+ .bb-axis {
50
+ shape-rendering: crispEdges;
51
+ }
52
+
53
+ .bb-axis-y text, .bb-axis-y2 text {
54
+ fill: #8d9cab;
55
+ }
56
+
57
+ .bb-event-rects {
58
+ fill-opacity: 1 !important;
59
+
60
+ .bb-event-rect {
61
+ fill: transparent;
62
+ }
63
+
64
+ .bb-event-rect._active_ {
65
+ fill: rgba(39, 201, 3, 0.05);
66
+ }
67
+ }
68
+
69
+ .tick._active_ text {
70
+ fill: #00c83c !important;
71
+ }
72
+
73
+ /*-- Grid --*/
74
+ .bb-grid {
75
+ pointer-events: none;
76
+
77
+ line {
78
+ stroke: #5c666e;
79
+ }
80
+ }
81
+
82
+ .bb-xgrid-focus line, .bb-ygrid-focus line {
83
+ stroke: #ccd9e6;
84
+ }
85
+
86
+ /*-- Text on Chart --*/
87
+ .bb-text {
88
+ &.bb-empty {
89
+ fill: #8d9cab;
90
+ }
91
+ }
92
+
93
+ /*-- Line --*/
94
+ .bb-line {
95
+ stroke-width: 1px;
96
+ }
97
+
98
+ /*-- Point --*/
99
+ .bb-circle {
100
+ &._expanded_ {
101
+ stroke-width: 2px;
102
+ stroke: 8d9cab;
103
+ }
104
+ }
105
+
106
+ rect.bb-circle, use.bb-circle {
107
+ &._expanded_ {
108
+ stroke-width: 1px;
109
+ }
110
+ }
111
+
112
+ /*-- Subchart --*/
113
+ .selection {
114
+ stroke: none;
115
+ fill: #ccd9e6;
116
+ }
117
+
118
+ .bb-selected-circle {
119
+ fill: #ccd9e6;
120
+ stroke-width: 2px;
121
+ }
122
+
123
+ /*-- Bar --*/
124
+
125
+ .bb-bar {
126
+ stroke-width: 0.5px;
127
+
128
+ &._expanded_ {
129
+ fill-opacity: 0.75;
130
+ }
131
+ }
132
+
133
+ /*-- Candlestick --*/
134
+ .bb-candlestick {
135
+ stroke-width: 1px;
136
+
137
+ &._expanded_ {
138
+ fill-opacity: 0.75;
139
+ }
140
+ }
141
+
142
+ /*-- Focus --*/
143
+ .bb-target, .bb-circles {
144
+ &.bb-focused {
145
+ opacity: 1;
146
+
147
+ path {
148
+ &.bb-line, &.bb-step {
149
+ stroke-width: 2px;
150
+ }
151
+ }
152
+ }
153
+
154
+ &.bb-defocused {
155
+ opacity: 0.5 !important;
156
+
157
+ .text-overlapping {
158
+ opacity: .05 !important;
159
+ }
160
+ }
161
+ }
162
+
163
+ /*-- Region --*/
164
+ .bb-region {
165
+ fill: steelblue;
166
+ fill-opacity: 0.5;
167
+
168
+ &.selected rect {
169
+ fill: rgb(39, 201, 3);
170
+ }
171
+ }
172
+
173
+ /*-- Zoom region --*/
174
+ .bb-zoom-brush {
175
+ fill-opacity: .25;
176
+ fill: #ccd9e6;
177
+ }
178
+
179
+ /*-- Brush --*/
180
+ .bb-brush {
181
+ .extent {
182
+ fill-opacity: 0.5;
183
+ }
184
+ }
185
+
186
+ /*-- Select - Drag --*/
187
+ /*-- Legend --*/
188
+ .bb-legend-item {
189
+ user-select: none;
190
+
191
+ line {
192
+ stroke-width: 10px;
193
+ stroke-dasharray: 3px;
194
+ }
195
+
196
+ text {
197
+ transform: translateY(-1px);
198
+ }
199
+ }
200
+
201
+ .bb-legend-item-hidden {
202
+ opacity: 0.5;
203
+ }
204
+
205
+ .bb-legend-background {
206
+ opacity: 0.75;
207
+ stroke: lightgray;
208
+ stroke-width: 1;
209
+ }
210
+
211
+ /*-- Title --*/
212
+ .bb-title {
213
+ font-size: 14px;
214
+ }
215
+
216
+ /*-- Treemap --*/
217
+ .bb-chart-treemaps rect {
218
+ stroke: #8d9cab;
219
+ stroke-width: 1px;
220
+ }
221
+
222
+ /*-- Tooltip --*/
223
+ .bb-tooltip-container {
224
+ z-index: 10;
225
+ font-family: $font-family;
226
+ user-select: none;
227
+ }
228
+
229
+ .bb-tooltip {
230
+ border-collapse: separate;
231
+ border-spacing:0;
232
+ empty-cells:show;
233
+ border: 1px solid #828181;
234
+ border-radius: 5px;
235
+ background-color: #000;
236
+ text-align: left;
237
+ font-size: 11px;
238
+ color: #fff;
239
+ white-space: nowrap;
240
+
241
+ th {
242
+ font-size:12px;
243
+ padding:4px 8px;
244
+ text-align:left;
245
+ border-bottom: solid 1px #828181;
246
+ }
247
+
248
+ td {
249
+ padding: 4px 6px;
250
+
251
+ &:first-child {
252
+ padding-left: 8px;
253
+ }
254
+
255
+ &:last-child {
256
+ padding-right:8px;
257
+ }
258
+
259
+ > span, > svg {
260
+ display: inline-block;
261
+ width: 7px;
262
+ height: 7px;
263
+ margin: -1px 6px 0 0;
264
+ vertical-align: middle;
265
+ }
266
+
267
+ &.value {
268
+ border-left: 1px solid transparent;
269
+ text-align: right;
270
+ }
271
+ }
272
+
273
+ .bb-tooltip-title {
274
+ display: inline-block;
275
+ color: #aaa;
276
+ line-height: 20px;
277
+ }
278
+
279
+ .bb-tooltip-detail {
280
+ table {
281
+ border-collapse: collapse;
282
+ border-spacing: 0;
283
+ }
284
+
285
+ .bb-tooltip-name, .bb-tooltip-value {
286
+ font-size: 11px;
287
+ line-height: 13px;
288
+ padding: 4px 0 3px;
289
+ color: #444;
290
+ text-align: left;
291
+ font-weight: normal;
292
+ }
293
+
294
+ .bb-tooltip-value {
295
+ padding-left: 5px;
296
+ font-weight: 800;
297
+ font-size: 12px;
298
+ }
299
+ }
300
+ }
301
+
302
+ /*-- Area --*/
303
+ .bb-area {
304
+ stroke-width: 0;
305
+ opacity: 0.5;
306
+ }
307
+
308
+ /*-- Arc --*/
309
+ .bb-chart-arcs-title {
310
+ dominant-baseline: middle;
311
+ font-size: 1.3em;
312
+ }
313
+
314
+ text.bb-chart-arcs-gauge-title {
315
+ dominant-baseline: middle;
316
+ font-size: 2.7em;
317
+ }
318
+
319
+ .bb-chart-arcs {
320
+ .bb-chart-arcs-background {
321
+ fill: #3f3f3f;
322
+ stroke: none;
323
+ }
324
+
325
+ .bb-chart-arcs-gauge-unit {
326
+ fill: #828181;
327
+ font-size: 16px;
328
+ }
329
+
330
+ .bb-chart-arcs-gauge-min, .bb-chart-arcs-gauge-max {
331
+ fill: #777;
332
+ }
333
+
334
+ .bb-chart-arcs-title {
335
+ font-size: 16px !important;
336
+ fill: #b6c2ce;
337
+ font-weight: 600;
338
+ }
339
+
340
+ path.empty {
341
+ fill: #eaeaea;
342
+ stroke-width: 0;
343
+ }
344
+
345
+ /*-- Polar --*/
346
+ .bb-levels {
347
+ circle {
348
+ fill: none;
349
+ stroke: #848282;
350
+ stroke-width: .5px;
351
+ }
352
+
353
+ text {
354
+ fill: #848282;
355
+ }
356
+ }
357
+ }
358
+
359
+ .bb-chart-arc {
360
+ .bb-gauge-value {
361
+ fill: #b6c2ce;
362
+ }
363
+
364
+ rect {
365
+ stroke: #8d9cab;
366
+ stroke-width: 1;
367
+ }
368
+
369
+ text {
370
+ fill: #fff;
371
+ font-size: 13px;
372
+ }
373
+ }
374
+
375
+ /*-- Radar --*/
376
+ .bb-chart-radars {
377
+ .bb-levels {
378
+ polygon {
379
+ fill: none;
380
+ stroke: #848282;
381
+ stroke-width: .5px;
382
+ }
383
+
384
+ text {
385
+ fill: #848282;
386
+ }
387
+ }
388
+
389
+ .bb-axis {
390
+ line {
391
+ stroke: #848282;
392
+ stroke-width: .5px;
393
+ }
394
+
395
+ text {
396
+ font-size: 1.15em;
397
+ cursor: default;
398
+ }
399
+ }
400
+
401
+ .bb-shapes {
402
+ polygon {
403
+ fill-opacity: .2;
404
+ stroke-width: 1px;
405
+ }
406
+ }
407
+ }
408
+
409
+ /*-- Button --*/
410
+ .bb-button {
411
+ position: absolute;
412
+ top: 10px;
413
+ right: 10px;
414
+
415
+ .bb-zoom-reset {
416
+ border: solid 1px #ccc;
417
+ background-color: #000;
418
+ color: #fff;
419
+ padding: 5px;
420
+ border-radius: 5px;
421
+ cursor: pointer;
422
+ }
423
+ }
@@ -34,6 +34,12 @@ $text-font-size: 11px;
34
34
  }
35
35
  }
36
36
 
37
+ .bb-chart-arcs {
38
+ .bb-needle {
39
+ fill: #000;
40
+ }
41
+ }
42
+
37
43
  /*-- Axis --*/
38
44
  .bb-axis {
39
45
  stroke-width: $line-stroke-widdth;
@@ -212,6 +218,7 @@ $text-font-size: 11px;
212
218
  text-align: left;
213
219
  font-size: 11px;
214
220
  -webkit-font-smoothing: antialiased;
221
+ white-space: nowrap;
215
222
 
216
223
  th {
217
224
  font-size: 13px;
@@ -335,6 +342,10 @@ text.bb-chart-arcs-gauge-title {
335
342
  }
336
343
  }
337
344
 
345
+ .bb-line {
346
+ shape-rendering: crispEdges;
347
+ }
348
+
338
349
  .bb-chart-arc {
339
350
  .bb-gauge-value {
340
351
  fill: #3b6969;
@@ -38,10 +38,14 @@ $axis-color: #8c8c8c;
38
38
  .bb-legend-item-title,
39
39
  .bb-xgrid-focus,
40
40
  .bb-ygrid-focus,
41
- .bb-ygrid,
42
- .bb-event-rect,
43
- .bb-bars path {
44
- shape-rendering: crispEdges;
41
+ .bb-ygrid {
42
+ shape-rendering: crispEdges;
43
+ }
44
+
45
+ .bb-chart-arcs {
46
+ .bb-needle {
47
+ fill: #000;
48
+ }
45
49
  }
46
50
 
47
51
  /*-- Axis --*/
@@ -224,6 +228,7 @@ rect.bb-circle, use.bb-circle {
224
228
  text-align: left;
225
229
  font-size: 12px;
226
230
  box-shadow: .5px .5px 1px #999;
231
+ white-space: nowrap;
227
232
 
228
233
  th {
229
234
  font-size: 12px;
@@ -33,10 +33,14 @@ $font-family: sans-serif, Arial, "nanumgothic", "Dotum";
33
33
  .bb-legend-item-title,
34
34
  .bb-xgrid-focus,
35
35
  .bb-ygrid-focus,
36
- .bb-ygrid,
37
- .bb-event-rect,
38
- .bb-bars path {
39
- shape-rendering: crispEdges;
36
+ .bb-ygrid {
37
+ shape-rendering: crispEdges;
38
+ }
39
+
40
+ .bb-chart-arcs {
41
+ .bb-needle {
42
+ fill: #000;
43
+ }
40
44
  }
41
45
 
42
46
  /*-- Axis --*/
@@ -213,6 +217,7 @@ rect.bb-circle, use.bb-circle {
213
217
  background-color: #fff;
214
218
  text-align: left;
215
219
  font-size: 11px;
220
+ white-space: nowrap;
216
221
 
217
222
  th {
218
223
  font-size:12px;
@@ -5,7 +5,7 @@
5
5
  import {Axis} from "./axis";
6
6
  import {ChartTypes, d3Selection, DataItem, PrimitiveArray} from "./types";
7
7
  import {Chart} from "./chart";
8
- import {IArcData, IData, IDataRow} from "../src/ChartInternal/data/IData";
8
+ import {IArcData, IData, IDataPoint, IDataRow} from "../src/ChartInternal/data/IData";
9
9
  import {
10
10
  ArcOptions,
11
11
  AreaOptions,
@@ -23,6 +23,23 @@ import {
23
23
  TreemapOptions
24
24
  } from "./options.shape";
25
25
 
26
+ export type FormatFunction = (
27
+ this: Chart,
28
+ v: any,
29
+ id: string,
30
+ i: number,
31
+ texts: d3Selection
32
+ ) => string;
33
+
34
+ export type PositionFunction = (
35
+ this: Chart,
36
+ type: "x" | "y",
37
+ v: number,
38
+ id: string,
39
+ i: number,
40
+ texts: d3Selection
41
+ ) => number;
42
+
26
43
  export interface ChartOptions {
27
44
  /**
28
45
  * Specify the CSS selector or the element which the chart will be set to. D3 selection object can be specified also.
@@ -818,8 +835,13 @@ export interface PointOptions {
818
835
 
819
836
  /**
820
837
  * The senstivity value for interaction boundary.
838
+ *
839
+ * - **Available Values:**
840
+ * - {number}: Absolute sensitivity value which is the distance from the data point in pixel.
841
+ * - "radius": sensitivity based on point's radius
842
+ * - Function: callback for each point to determine the sensitivity
821
843
  */
822
- sensitivity?: number;
844
+ sensitivity?: number | "radius" | ((d: IDataPoint) => number);
823
845
 
824
846
  /**
825
847
  * The type of point to be drawn
@@ -1081,10 +1103,18 @@ export interface Data {
1081
1103
  */
1082
1104
  format?: FormatFunction | { [key: string]: FormatFunction };
1083
1105
 
1084
- position?: {
1085
- /**
1086
- * Set each dataset position, relative the original.
1087
- */
1106
+ /**
1107
+ * Set each dataset position, relative the original.
1108
+ *
1109
+ * When function is specified, will receives 5 arguments such as `type, v, id, i, texts` and it must return a position number.<br><br>
1110
+ * The arguments are:<br>
1111
+ * - `type` coordinate type string, which will be 'x' or 'y'.
1112
+ * - `v` is the value of the data point where the label is shown.
1113
+ * - `id` is the id of the data where the label is shown.
1114
+ * - `i` is the index of the data series point where the label is shown.
1115
+ * - `texts` is the array of whole corresponding data series' text labels.<br><br>
1116
+ */
1117
+ position?: PositionFunction | {
1088
1118
  [key: string]: {
1089
1119
  /**
1090
1120
  * x coordinate position, relative the original.
@@ -1271,11 +1301,3 @@ export interface Data {
1271
1301
  */
1272
1302
  onhidden?(this: Chart, ids: string[]): void;
1273
1303
  }
1274
-
1275
- export type FormatFunction = (
1276
- this: Chart,
1277
- v: any,
1278
- id: string,
1279
- i: number,
1280
- texts: SVGTextElement[]
1281
- ) => void;
@@ -14,6 +14,78 @@ export interface ArcOptions {
14
14
  cornerRadius?: number | ((id: string, value: number, outerRadius: number) => number) | {
15
15
  ratio?: number
16
16
  };
17
+
18
+ /**
19
+ * Set needle options.
20
+ */
21
+ needle?: {
22
+ /**
23
+ * Show or hide needle.
24
+ */
25
+ show?: boolean;
26
+
27
+ /**
28
+ * Set needle filled color.
29
+ */
30
+ color?: string;
31
+
32
+ /**
33
+ * Set custom needle path function.
34
+ * - **NOTE:**
35
+ * - The path should be starting from 0,0 (which is center) to top center coordinate.
36
+ * - The function will receive, `length`{number} parameter which indicating the needle length in pixel relative to radius.
37
+ */
38
+ path?: string;
39
+
40
+ /**
41
+ * Set needle value.
42
+ * - **NOTE:**
43
+ * - For single gauge chart, needle will point the data value by default, otherwise will point 0(zero).
44
+ */
45
+ length?: number;
46
+
47
+ /**
48
+ * Set needle top options.
49
+ */
50
+ top?: {
51
+ /**
52
+ * Set needle top [rx radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
53
+ */
54
+ rx?: number;
55
+
56
+ /**
57
+ * Set needle top [ry radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
58
+ */
59
+ ry?: number
60
+
61
+ /**
62
+ * Set needle top width in pixel.
63
+ */
64
+ width?: number;
65
+ }
66
+
67
+ bottom?: {
68
+ /**
69
+ * Set needle bottom [rx radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
70
+ */
71
+ rx?: number;
72
+
73
+ /**
74
+ * Set needle bottom [ry radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
75
+ */
76
+ ry?: number
77
+
78
+ /**
79
+ * Set needle bottom width in pixel.
80
+ */
81
+ width?: number;
82
+
83
+ /**
84
+ * Set needle bottom length in pixel. Setting this value, will make bottom larger starting from center.
85
+ */
86
+ len?: number;
87
+ }
88
+ };
17
89
  }
18
90
 
19
91
  export interface AreaOptions {
@@ -50,11 +122,9 @@ export interface AreaOptions {
50
122
 
51
123
  export interface BarOptions {
52
124
  /**
53
- * Set threshold ratio to show/hide labels.
125
+ * Set 'bar' to be positioned over(on the top) other shapes elements.
54
126
  */
55
- label?: {
56
- threshold?: number;
57
- };
127
+ front?: boolean;
58
128
 
59
129
  /**
60
130
  * Remove nullish data on bar indices positions.
@@ -63,6 +133,13 @@ export interface BarOptions {
63
133
  removeNull?: boolean;
64
134
  };
65
135
 
136
+ /**
137
+ * Set threshold ratio to show/hide labels.
138
+ */
139
+ label?: {
140
+ threshold?: number;
141
+ };
142
+
66
143
  /**
67
144
  * Set the linear gradient on bar.<br><br>
68
145
  * Or customize by giving below object value: