billboard.js 3.8.2 → 3.9.0-next.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/dist/billboard.css +7 -7
- package/dist/billboard.js +324 -59
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +806 -349
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +4 -3
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +4 -3
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +4 -4
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +484 -292
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +487 -294
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +488 -295
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +489 -297
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +501 -320
- package/dist/theme/dark.css +298 -0
- package/dist/theme/dark.min.css +9 -0
- package/dist/theme/datalab.css +9 -2
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +7 -5
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +7 -5
- package/dist/theme/insight.min.css +2 -2
- package/dist-esm/billboard.js +307 -44
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +4 -3
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +4 -3
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +34 -33
- package/src/Chart/Chart.ts +30 -1
- package/src/ChartInternal/ChartInternal.ts +3 -1
- package/src/ChartInternal/data/data.ts +2 -1
- package/src/ChartInternal/internals/size.ts +5 -1
- package/src/ChartInternal/internals/text.ts +20 -15
- package/src/ChartInternal/internals/tooltip.ts +4 -3
- package/src/ChartInternal/shape/arc.ts +161 -18
- package/src/config/Options/common/legend.ts +1 -1
- package/src/config/Options/data/data.ts +22 -6
- package/src/config/Options/shape/arc.ts +73 -1
- package/src/config/Options/shape/donut.ts +5 -0
- package/src/config/Options/shape/gauge.ts +6 -0
- package/src/config/Store/State.ts +2 -1
- package/src/config/classes.ts +2 -1
- package/src/scss/billboard.scss +8 -5
- package/src/scss/theme/dark.scss +423 -0
- package/src/scss/theme/datalab.scss +11 -0
- package/src/scss/theme/graph.scss +9 -4
- package/src/scss/theme/insight.scss +9 -4
- package/types/options.d.ts +29 -12
- package/types/options.shape.d.ts +72 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
3
3
|
* billboard.js project is licensed under the MIT license
|
|
4
4
|
*/
|
|
5
|
-
import type {ChartTypes} from "../../../../types/types";
|
|
5
|
+
import type {ChartTypes, d3Selection} from "../../../../types/types";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* data config options
|
|
@@ -321,7 +321,7 @@ export default {
|
|
|
321
321
|
* @property {boolean} [data.labels=false] Show or hide labels on each data points
|
|
322
322
|
* @property {boolean} [data.labels.centered=false] Centerize labels on `bar` shape. (**NOTE:** works only for 'bar' type)
|
|
323
323
|
* @property {Function} [data.labels.format] Set formatter function for data labels.<br>
|
|
324
|
-
* The formatter function receives 4 arguments such as v, id, i,
|
|
324
|
+
* The formatter function receives 4 arguments such as `v, id, i, texts` and it **must return a string** (`\n` character will be used as line break) that will be shown as the label.<br><br>
|
|
325
325
|
* The arguments are:<br>
|
|
326
326
|
* - `v` is the value of the data point where the label is shown.
|
|
327
327
|
* - `id` is the id of the data where the label is shown.
|
|
@@ -330,7 +330,14 @@ export default {
|
|
|
330
330
|
* Formatter function can be defined for each data by specifying as an object and D3 formatter function can be set (ex. d3.format('$'))
|
|
331
331
|
* @property {string|object} [data.labels.backgroundColors] Set label text background colors.
|
|
332
332
|
* @property {string|object|Function} [data.labels.colors] Set label text colors.
|
|
333
|
-
* @property {object} [data.labels.position] Set each dataset position, relative the original
|
|
333
|
+
* @property {object|Function} [data.labels.position] Set each dataset position, relative the original.<br><br>
|
|
334
|
+
* When function is specified, will receives 5 arguments such as `type, v, id, i, texts` and it must return a position number.<br><br>
|
|
335
|
+
* The arguments are:<br>
|
|
336
|
+
* - `type` coordinate type string, which will be 'x' or 'y'.
|
|
337
|
+
* - `v` is the value of the data point where the label is shown.
|
|
338
|
+
* - `id` is the id of the data where the label is shown.
|
|
339
|
+
* - `i` is the index of the data series point where the label is shown.
|
|
340
|
+
* - `texts` is the array of whole corresponding data series' text labels.<br><br>
|
|
334
341
|
* @property {number} [data.labels.position.x=0] x coordinate position, relative the original.
|
|
335
342
|
* @property {number} [data.labels.position.y=0] y coordinate position, relative the original.
|
|
336
343
|
* @property {object} [data.labels.rotate] Rotate label text. Specify degree value in a range of `0 ~ 360`.
|
|
@@ -351,7 +358,7 @@ export default {
|
|
|
351
358
|
*
|
|
352
359
|
* // or set specific options
|
|
353
360
|
* labels: {
|
|
354
|
-
* format: function(v, id, i,
|
|
361
|
+
* format: function(v, id, i, texts) {
|
|
355
362
|
* ...
|
|
356
363
|
* // to multiline, return with '\n' character
|
|
357
364
|
* return "Line1\nLine2";
|
|
@@ -393,6 +400,13 @@ export default {
|
|
|
393
400
|
* return d.value > 200 ? "cyan" : color;
|
|
394
401
|
* },
|
|
395
402
|
*
|
|
403
|
+
* // return x, y coordinate position
|
|
404
|
+
* // apt to handle each text position manually
|
|
405
|
+
* position: function(type, v, id, i, texts) {
|
|
406
|
+
* ...
|
|
407
|
+
* return type == "x" ? 10 : 20;
|
|
408
|
+
* },
|
|
409
|
+
*
|
|
396
410
|
* // set x, y coordinate position
|
|
397
411
|
* position: {
|
|
398
412
|
* x: -10,
|
|
@@ -413,9 +427,11 @@ export default {
|
|
|
413
427
|
data_labels:
|
|
414
428
|
<boolean | {
|
|
415
429
|
centered?: boolean;
|
|
416
|
-
format?:
|
|
430
|
+
format?: (v: number, id: string, i: number, texts: d3Selection) => number;
|
|
417
431
|
colors?: string|{[key: string]: string};
|
|
418
|
-
position?:
|
|
432
|
+
position?: (type: "x" | "y", v: number, id: string, i: number, texts: d3Selection) => number |
|
|
433
|
+
{[key: string]: number} |
|
|
434
|
+
{[key: string]: {x?: number; y?: number;}};
|
|
419
435
|
rotate?: number;
|
|
420
436
|
}> {},
|
|
421
437
|
data_labels_backgroundColors: <string|{[key: string]: string}|undefined> undefined,
|
|
@@ -16,9 +16,31 @@ export default {
|
|
|
16
16
|
* - **NOTE:**
|
|
17
17
|
* - Corner radius can't surpass the `(outerRadius - innerRadius) /2` of indicated shape.
|
|
18
18
|
* @property {number} [arc.cornerRadius.ratio=0] Set ratio relative of outer radius.
|
|
19
|
+
* @property {object} [arc.needle] Set needle options.
|
|
20
|
+
* @property {boolean} [arc.needle.show=false] Show or hide needle.
|
|
21
|
+
* @property {string} [arc.needle.color] Set needle filled color.
|
|
22
|
+
* @property {Function} [arc.needle.path] Set custom needle path function.
|
|
23
|
+
* - **NOTE:**
|
|
24
|
+
* - The path should be starting from 0,0 (which is center) to top center coordinate.
|
|
25
|
+
* - The function will receive, `length`{number} parameter which indicating the needle length in pixel relative to radius.
|
|
26
|
+
* @property {number} [arc.needle.value] Set needle value.
|
|
27
|
+
* - **NOTE:**
|
|
28
|
+
* - For single gauge chart, needle will point the data value by default, otherwise will point 0(zero).
|
|
29
|
+
* @property {number} [arc.needle.length=100] Set needle length in percentages relative to radius.
|
|
30
|
+
* @property {object} [arc.needle.top] Set needle top options.
|
|
31
|
+
* @property {number} [arc.needle.top.rx=0] Set needle top [rx radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
|
|
32
|
+
* @property {number} [arc.needle.top.ry=0] Set needle top [ry radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
|
|
33
|
+
* @property {number} [arc.needle.top.width=0] Set needle top width in pixel.
|
|
34
|
+
* @property {object} [arc.needle.bottom] Set needle bottom options.
|
|
35
|
+
* @property {number} [arc.needle.bottom.rx=1] Set needle bottom [rx radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
|
|
36
|
+
* @property {number} [arc.needle.bottom.ry=1] Set needle bottom [ry radius value](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve).
|
|
37
|
+
* @property {number} [arc.needle.bottom.width=15] Set needle bottom width in pixel.
|
|
38
|
+
* @property {number} [arc.needle.bottom.len=0] Set needle bottom length in pixel. Setting this value, will make bottom larger starting from center.
|
|
19
39
|
* @see [Demo: Donut corner radius](https://naver.github.io/billboard.js/demo/#DonutChartOptions.DonutCornerRadius)
|
|
20
40
|
* @see [Demo: Gauge corner radius](https://naver.github.io/billboard.js/demo/#GaugeChartOptions.GaugeCornerRadius)
|
|
21
41
|
* @see [Demo: Donut corner radius](https://naver.github.io/billboard.js/demo/#PieChartOptions.CornerRadius)
|
|
42
|
+
* @see [Demo: Donut needle](https://naver.github.io/billboard.js/demo/#DonutChartOptions.DonutNeedle)
|
|
43
|
+
* @see [Demo: Gauge needle](https://naver.github.io/billboard.js/demo/##GaugeChartOptions.GaugeNeedle)
|
|
22
44
|
* @example
|
|
23
45
|
* arc: {
|
|
24
46
|
* cornerRadius: 12,
|
|
@@ -37,11 +59,61 @@ export default {
|
|
|
37
59
|
* // set ratio relative of outer radius
|
|
38
60
|
* cornerRadius: {
|
|
39
61
|
* ratio: 0.5
|
|
62
|
+
* },
|
|
63
|
+
*
|
|
64
|
+
* needle: {
|
|
65
|
+
* show: true,
|
|
66
|
+
* color: "red", // any valid CSS color
|
|
67
|
+
* path: function(length) {
|
|
68
|
+
* const len = length - 20;
|
|
69
|
+
*
|
|
70
|
+
* // will return upper arrow shape path
|
|
71
|
+
* // Note: The path should begun from '0,0' coordinate to top center.
|
|
72
|
+
* const path = `M 0 -${len + 20}
|
|
73
|
+
* L -12 -${len}
|
|
74
|
+
* L -5 -${len}
|
|
75
|
+
* L -5 0
|
|
76
|
+
* A 1 1 0 0 0 5 0
|
|
77
|
+
* L 5 -${len}
|
|
78
|
+
* L 12 -${len} Z`;
|
|
79
|
+
*
|
|
80
|
+
* return path;
|
|
81
|
+
* },
|
|
82
|
+
* value: 40, // will make needle to point value 40.
|
|
83
|
+
* length: 80, // needle length in percentages relative to radius.
|
|
84
|
+
*
|
|
85
|
+
* top: {
|
|
86
|
+
* // rx and ry are the two radii of the ellipse;
|
|
87
|
+
* // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve
|
|
88
|
+
* rx: 1,
|
|
89
|
+
* ry: 1,
|
|
90
|
+
* width: 5
|
|
91
|
+
* },
|
|
92
|
+
* bottom: {
|
|
93
|
+
* // rx and ry are the two radii of the ellipse;
|
|
94
|
+
* // https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#elliptical_arc_curve
|
|
95
|
+
* rx: 1,
|
|
96
|
+
* ry: 1,
|
|
97
|
+
* width: 10
|
|
98
|
+
* len: 10
|
|
99
|
+
* }
|
|
40
100
|
* }
|
|
41
101
|
* }
|
|
42
102
|
*/
|
|
43
103
|
arc_cornerRadius: <
|
|
44
104
|
number|((id: string, value: number) => number)
|
|
45
105
|
> 0,
|
|
46
|
-
arc_cornerRadius_ratio: 0
|
|
106
|
+
arc_cornerRadius_ratio: 0,
|
|
107
|
+
arc_needle_show: false,
|
|
108
|
+
arc_needle_color: <string|undefined> undefined,
|
|
109
|
+
arc_needle_value: <number|undefined> undefined,
|
|
110
|
+
arc_needle_path: undefined,
|
|
111
|
+
arc_needle_length: 100,
|
|
112
|
+
arc_needle_top_rx: 0,
|
|
113
|
+
arc_needle_top_ry: 0,
|
|
114
|
+
arc_needle_top_width: 0,
|
|
115
|
+
arc_needle_bottom_rx: 1,
|
|
116
|
+
arc_needle_bottom_ry: 1,
|
|
117
|
+
arc_needle_bottom_width: 15,
|
|
118
|
+
arc_needle_bottom_len: 0
|
|
47
119
|
};
|
|
@@ -21,6 +21,8 @@ export default {
|
|
|
21
21
|
* @property {number} [donut.expand.duration=50] Set expand transition time in ms.
|
|
22
22
|
* @property {number} [donut.width] Set width of donut chart.
|
|
23
23
|
* @property {string} [donut.title=""] Set title of donut chart. Use `\n` character for line break.
|
|
24
|
+
* - **NOTE:**
|
|
25
|
+
* - When `arc.needle.show=true` is set, special template `{=NEEDLE_VALUE}` can be used inside the title text to show current needle value.
|
|
24
26
|
* @property {number} [donut.padAngle=0] Set padding between data.
|
|
25
27
|
* @property {number} [donut.startingAngle=0] Set starting angle where data draws.
|
|
26
28
|
* @example
|
|
@@ -63,6 +65,9 @@ export default {
|
|
|
63
65
|
* startingAngle: 1,
|
|
64
66
|
* title: "Donut Title"
|
|
65
67
|
*
|
|
68
|
+
* // when 'arc.needle.show=true' is set, can show current needle value.
|
|
69
|
+
* title: "Needle value:\n{=NEEDLE_VALUE}",
|
|
70
|
+
*
|
|
66
71
|
* // title with line break
|
|
67
72
|
* title: "Title1\nTitle2"
|
|
68
73
|
* }
|
|
@@ -46,6 +46,8 @@ export default {
|
|
|
46
46
|
* - 'arcLength < -100' defaults to -100
|
|
47
47
|
* - 'arcLength > 100' defaults to 100
|
|
48
48
|
* @property {string} [gauge.title=""] Set title of gauge chart. Use `\n` character for line break.
|
|
49
|
+
* - **NOTE:**
|
|
50
|
+
* - When `arc.needle.show=true` is set, special template `{=NEEDLE_VALUE}` can be used inside the title text to show current needle value.
|
|
49
51
|
* @property {string} [gauge.units] Set units of the gauge.
|
|
50
52
|
* @property {number} [gauge.width] Set width of gauge chart.
|
|
51
53
|
* @property {string} [gauge.type="single"] Set type of gauge to be displayed.<br><br>
|
|
@@ -92,6 +94,10 @@ export default {
|
|
|
92
94
|
* max: 200,
|
|
93
95
|
* type: "single" // or 'multi'
|
|
94
96
|
* title: "Title Text",
|
|
97
|
+
*
|
|
98
|
+
* // when 'arc.needle.show=true' is set, can show current needle value.
|
|
99
|
+
* title: "Needle value:\n{=NEEDLE_VALUE}",
|
|
100
|
+
*
|
|
95
101
|
* units: "%",
|
|
96
102
|
* width: 10,
|
|
97
103
|
* startingAngle: -1 * Math.PI / 2,
|
|
@@ -59,6 +59,7 @@ export default class State {
|
|
|
59
59
|
|
|
60
60
|
// current used chart type list
|
|
61
61
|
types: <string[]> [],
|
|
62
|
+
needle: undefined, // arc needle current value
|
|
62
63
|
},
|
|
63
64
|
|
|
64
65
|
// legend
|
|
@@ -111,7 +112,7 @@ export default class State {
|
|
|
111
112
|
pathGrid: ""
|
|
112
113
|
},
|
|
113
114
|
|
|
114
|
-
//
|
|
115
|
+
// state
|
|
115
116
|
event: null, // event object
|
|
116
117
|
dragStart: null,
|
|
117
118
|
dragging: false,
|
package/src/config/classes.ts
CHANGED
|
@@ -22,7 +22,8 @@ export const $ARC = {
|
|
|
22
22
|
chartArc: "bb-chart-arc",
|
|
23
23
|
chartArcs: "bb-chart-arcs",
|
|
24
24
|
chartArcsBackground: "bb-chart-arcs-background",
|
|
25
|
-
chartArcsTitle: "bb-chart-arcs-title"
|
|
25
|
+
chartArcsTitle: "bb-chart-arcs-title",
|
|
26
|
+
needle: "bb-needle"
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export const $AREA = {
|
package/src/scss/billboard.scss
CHANGED
|
@@ -20,12 +20,16 @@
|
|
|
20
20
|
.bb-legend-item-tile,
|
|
21
21
|
.bb-xgrid-focus,
|
|
22
22
|
.bb-ygrid-focus,
|
|
23
|
-
.bb-ygrid
|
|
24
|
-
.bb-event-rect,
|
|
25
|
-
.bb-bars path {
|
|
23
|
+
.bb-ygrid {
|
|
26
24
|
shape-rendering: crispEdges;
|
|
27
25
|
}
|
|
28
26
|
|
|
27
|
+
.bb-chart-arcs {
|
|
28
|
+
.bb-needle {
|
|
29
|
+
fill: #000;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
29
33
|
.bb-chart-arc {
|
|
30
34
|
.bb-gauge-value {
|
|
31
35
|
fill: #000;
|
|
@@ -186,9 +190,8 @@
|
|
|
186
190
|
background-color:#fff;
|
|
187
191
|
empty-cells:show;
|
|
188
192
|
opacity: 0.9;
|
|
189
|
-
-webkit-box-shadow: 7px 7px 12px -9px rgb(119,119,119);
|
|
190
|
-
-moz-box-shadow: 7px 7px 12px -9px rgb(119,119,119);
|
|
191
193
|
box-shadow: 7px 7px 12px -9px rgb(119,119,119);
|
|
194
|
+
white-space: nowrap;
|
|
192
195
|
|
|
193
196
|
tr {
|
|
194
197
|
border:1px solid #CCC;
|
|
@@ -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
|
+
}
|