billboard.js 3.9.0 → 3.9.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.
Files changed (41) hide show
  1. package/README.md +5 -1
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +100 -83
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/billboard.pkgd.js +340 -192
  7. package/dist/billboard.pkgd.min.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +3 -3
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +3 -3
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +242 -111
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +243 -112
  20. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +242 -111
  21. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +243 -112
  22. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +242 -111
  23. package/dist/theme/dark.css +1 -1
  24. package/dist/theme/dark.min.css +1 -1
  25. package/dist/theme/datalab.css +1 -1
  26. package/dist/theme/datalab.min.css +1 -1
  27. package/dist/theme/graph.css +1 -1
  28. package/dist/theme/graph.min.css +1 -1
  29. package/dist/theme/insight.css +1 -1
  30. package/dist/theme/insight.min.css +1 -1
  31. package/dist-esm/billboard.js +71 -54
  32. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  34. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  35. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  36. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  37. package/package.json +23 -23
  38. package/src/ChartInternal/data/data.ts +2 -12
  39. package/src/ChartInternal/interactions/eventrect.ts +7 -4
  40. package/src/ChartInternal/internals/tooltip.ts +55 -41
  41. package/src/ChartInternal/shape/point.ts +20 -2
package/README.md CHANGED
@@ -40,7 +40,7 @@ If you have any questions, checkout the previous posts or create a new one at:
40
40
  - [Issue with 'question' label](https://github.com/naver/billboard.js/issues?utf8=%E2%9C%93&q=label%3Aquestion)
41
41
 
42
42
  ## Supported chart types
43
- <img src="https://naver.github.io/billboard.js/img/chart-types.png?v=10" width=800>
43
+ <img src="https://naver.github.io/billboard.js/img/chart-types.png?v=11" width=800>
44
44
 
45
45
  ## Download and Installation
46
46
 
@@ -99,6 +99,10 @@ You can download the compressed files for production
99
99
  - https://naver.github.io/billboard.js/release/latest/dist/theme/datalab.min.css
100
100
 
101
101
 
102
+ #### dark
103
+ - https://naver.github.io/billboard.js/release/latest/dist/theme/dark.css
104
+ - https://naver.github.io/billboard.js/release/latest/dist/theme/dark.min.css
105
+
102
106
  #### insight
103
107
  - https://naver.github.io/billboard.js/release/latest/dist/theme/insight.css
104
108
  - https://naver.github.io/billboard.js/release/latest/dist/theme/insight.min.css
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.0
8
+ * @version 3.9.1
9
9
  */
10
10
  /*-- Chart --*/
11
11
  .bb svg {
package/dist/billboard.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.0
8
+ * @version 3.9.1
9
9
  */
10
10
  (function webpackUniversalModuleDefinition(root, factory) {
11
11
  if(typeof exports === 'object' && typeof module === 'object')
@@ -5111,22 +5111,11 @@ function getDataKeyForJson(keysParam, config) {
5111
5111
  findClosest: function findClosest(values, pos) {
5112
5112
  var _this36 = this,
5113
5113
  $$ = this,
5114
- config = $$.config,
5115
5114
  main = $$.$el.main,
5116
5115
  data = values.filter(function (v) {
5117
5116
  _newArrowCheck(this, _this36);
5118
5117
  return v && isValue(v.value);
5119
5118
  }.bind(this)),
5120
- getSensitivity = function (d) {
5121
- _newArrowCheck(this, _this36);
5122
- var sensitivity = config.point_sensitivity;
5123
- if (isFunction(sensitivity)) {
5124
- sensitivity = sensitivity.call($$.api, d);
5125
- } else if (sensitivity === "radius") {
5126
- sensitivity = d.r;
5127
- }
5128
- return sensitivity;
5129
- }.bind(this),
5130
5119
  minDist,
5131
5120
  closest;
5132
5121
  // find mouseovering bar/candlestick
@@ -5149,7 +5138,7 @@ function getDataKeyForJson(keysParam, config) {
5149
5138
  }.bind(this)).forEach(function (v) {
5150
5139
  _newArrowCheck(this, _this36);
5151
5140
  var d = $$.dist(v, pos);
5152
- minDist = getSensitivity(v);
5141
+ minDist = $$.getPointSensitivity(v);
5153
5142
  if (d < minDist) {
5154
5143
  minDist = d;
5155
5144
  closest = v;
@@ -9722,17 +9711,65 @@ function title_getTextPos(pos, width) {
9722
9711
  getTooltipContentTemplate: function getTooltipContentTemplate(tplStr) {
9723
9712
  return (tplStr || "<table class=\"{=CLASS_TOOLTIP}\"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class=\"{=CLASS_TOOLTIP_NAME}\">\n\t\t\t\t\t<td class=\"name\">" + (this.patterns ? "{=COLOR}" : "<span style=\"background-color:{=COLOR}\"></span>") + "{=NAME}</td>\n\t\t\t\t\t<td class=\"value\">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>").replace(/(\r?\n|\t)/g, "").split(/{{(.*)}}/);
9724
9713
  },
9714
+ /**
9715
+ * Update tooltip position coordinate
9716
+ * @param {object} dataToShow Data object
9717
+ * @param {SVGElement} eventTarget Event element
9718
+ * @private
9719
+ */
9720
+ setTooltipPosition: function setTooltipPosition(dataToShow, eventTarget) {
9721
+ var _this4 = this,
9722
+ $$ = this,
9723
+ config = $$.config,
9724
+ scale = $$.scale,
9725
+ state = $$.state,
9726
+ _$$$$el = $$.$el,
9727
+ eventRect = _$$$$el.eventRect,
9728
+ tooltip = _$$$$el.tooltip,
9729
+ bindto = config.tooltip_contents.bindto,
9730
+ datum = tooltip.datum();
9731
+ if (!bindto && datum) {
9732
+ var _config$tooltip_posit,
9733
+ _config$tooltip_posit2,
9734
+ _getPointer = getPointer(state.event, eventTarget != null ? eventTarget : eventRect.node()),
9735
+ x = _getPointer[0],
9736
+ y = _getPointer[1],
9737
+ currPos = {
9738
+ x: x,
9739
+ y: y
9740
+ };
9741
+ // get mouse event position
9742
+
9743
+ if (scale.x && datum && "x" in datum) {
9744
+ currPos.xAxis = scale.x(datum.x);
9745
+ }
9746
+ var _datum$width = datum.width,
9747
+ width = _datum$width === void 0 ? 0 : _datum$width,
9748
+ _datum$height = datum.height,
9749
+ height = _datum$height === void 0 ? 0 : _datum$height,
9750
+ pos = (_config$tooltip_posit = (_config$tooltip_posit2 = config.tooltip_position) == null ? void 0 : _config$tooltip_posit2.bind($$.api)(dataToShow != null ? dataToShow : JSON.parse(datum.current), width, height, eventRect == null ? void 0 : eventRect.node(), currPos)) != null ? _config$tooltip_posit : $$.getTooltipPosition.bind($$)(width, height, currPos); // Get tooltip position
9751
+ ["top", "left"].forEach(function (v) {
9752
+ _newArrowCheck(this, _this4);
9753
+ var value = pos[v];
9754
+ tooltip.style(v, value + "px");
9755
+
9756
+ // Remember left pos in percentage to be used on resize call
9757
+ if (v === "left" && !datum.xPosInPercent) {
9758
+ datum.xPosInPercent = value / state.current.width * 100;
9759
+ }
9760
+ }.bind(this));
9761
+ }
9762
+ },
9725
9763
  /**
9726
9764
  * Returns the position of the tooltip
9727
- * @param {object} dataToShow data
9728
9765
  * @param {string} tWidth Width value of tooltip element
9729
9766
  * @param {string} tHeight Height value of tooltip element
9730
- * @param {HTMLElement} element Tooltip element
9767
+ * @param {object} currPos Current mouse position
9731
9768
  * @returns {object} top, left value
9732
9769
  * @private
9733
9770
  */
9734
- tooltipPosition: function tooltipPosition(dataToShow, tWidth, tHeight, element) {
9735
- var _this4 = this,
9771
+ getTooltipPosition: function getTooltipPosition(tWidth, tHeight, currPos) {
9772
+ var _this5 = this,
9736
9773
  $$ = this,
9737
9774
  config = $$.config,
9738
9775
  scale = $$.scale,
@@ -9743,16 +9780,14 @@ function title_getTextPos(pos, width) {
9743
9780
  current = _state.current,
9744
9781
  isLegendRight = _state.isLegendRight,
9745
9782
  inputType = _state.inputType,
9746
- event = _state.event,
9747
9783
  hasGauge = $$.hasType("gauge") && !config.gauge_fullCircle,
9748
9784
  hasTreemap = state.hasTreemap,
9749
9785
  isRotated = config.axis_rotated,
9750
9786
  svgLeft = $$.getSvgLeft(!0),
9751
9787
  chartRight = svgLeft + current.width - $$.getCurrentPaddingRight(),
9752
9788
  chartLeft = $$.getCurrentPaddingLeft(!0),
9753
- _getPointer = getPointer(event, element),
9754
- x = _getPointer[0],
9755
- y = _getPointer[1];
9789
+ x = currPos.x,
9790
+ y = currPos.y;
9756
9791
  // Determine tooltip position
9757
9792
  if ($$.hasArcType()) {
9758
9793
  var raw = inputType === "touch" || $$.hasType("radar");
@@ -9761,14 +9796,13 @@ function title_getTextPos(pos, width) {
9761
9796
  x += (width - (isLegendRight ? $$.getLegendWidth() : 0)) / 2;
9762
9797
  }
9763
9798
  } else if (!hasTreemap) {
9764
- var dataScale = scale.x(dataToShow[0].x);
9765
9799
  if (isRotated) {
9766
- y = dataScale + 20;
9800
+ y = currPos.xAxis + 20;
9767
9801
  x += svgLeft;
9768
9802
  chartRight -= svgLeft;
9769
9803
  } else {
9770
9804
  y -= 5;
9771
- x = svgLeft + chartLeft + 20 + (scale.zoom ? x : dataScale);
9805
+ x = svgLeft + chartLeft + 20 + (scale.zoom ? x : currPos.xAxis);
9772
9806
  }
9773
9807
  }
9774
9808
 
@@ -9787,7 +9821,7 @@ function title_getTextPos(pos, width) {
9787
9821
 
9788
9822
  // make sure to not be positioned out of viewport
9789
9823
  Object.keys(pos).forEach(function (v) {
9790
- _newArrowCheck(this, _this4);
9824
+ _newArrowCheck(this, _this5);
9791
9825
  if (pos[v] < 0) {
9792
9826
  pos[v] = 0;
9793
9827
  }
@@ -9797,33 +9831,27 @@ function title_getTextPos(pos, width) {
9797
9831
  /**
9798
9832
  * Show the tooltip
9799
9833
  * @param {object} selectedData Data object
9800
- * @param {SVGElement} eventRect Event <rect> element
9834
+ * @param {SVGElement} eventTarget Event element
9801
9835
  * @private
9802
9836
  */
9803
- showTooltip: function showTooltip(selectedData, eventRect) {
9804
- var _this5 = this,
9837
+ showTooltip: function showTooltip(selectedData, eventTarget) {
9838
+ var _this6 = this,
9805
9839
  $$ = this,
9806
9840
  config = $$.config,
9807
- scale = $$.scale,
9808
- state = $$.state,
9809
9841
  tooltip = $$.$el.tooltip,
9810
- bindto = config.tooltip_contents.bindto,
9811
9842
  dataToShow = selectedData.filter(function (d) {
9812
- _newArrowCheck(this, _this5);
9843
+ _newArrowCheck(this, _this6);
9813
9844
  return d && isValue($$.getBaseValue(d));
9814
9845
  }.bind(this));
9815
9846
  if (!tooltip || dataToShow.length === 0 || !config.tooltip_show) {
9816
9847
  return;
9817
9848
  }
9818
- var datum = tooltip.datum(),
9819
- _ref = datum || {},
9820
- _ref$width = _ref.width,
9821
- width = _ref$width === void 0 ? 0 : _ref$width,
9822
- _ref$height = _ref.height,
9823
- height = _ref$height === void 0 ? 0 : _ref$height;
9849
+ var datum = tooltip.datum();
9824
9850
  var dataStr = JSON.stringify(selectedData);
9825
9851
  if (!datum || datum.current !== dataStr) {
9826
- var index = selectedData.concat().sort()[0].index;
9852
+ var _selectedData$concat$ = selectedData.concat().sort()[0],
9853
+ index = _selectedData$concat$.index,
9854
+ x = _selectedData$concat$.x;
9827
9855
  callFn(config.tooltip_onshow, $$.api, selectedData);
9828
9856
 
9829
9857
  // set tooltip content
@@ -9837,57 +9865,28 @@ function title_getTextPos(pos, width) {
9837
9865
  )).style("display", null).style("visibility", null) // for IE9
9838
9866
  .datum(datum = {
9839
9867
  index: index,
9868
+ x: x,
9840
9869
  current: dataStr,
9841
- width: width = tooltip.property("offsetWidth"),
9842
- height: height = tooltip.property("offsetHeight")
9870
+ width: tooltip.property("offsetWidth"),
9871
+ height: tooltip.property("offsetHeight")
9843
9872
  });
9844
9873
  callFn(config.tooltip_onshown, $$.api, selectedData);
9845
9874
  $$._handleLinkedCharts(!0, index);
9846
9875
  }
9847
- if (!bindto) {
9848
- var _config$tooltip_posit,
9849
- _selectedData$filter,
9850
- fnPos = ((_config$tooltip_posit = config.tooltip_position) == null ? void 0 : _config$tooltip_posit.bind($$.api)) || $$.tooltipPosition.bind($$),
9851
- _getPointer2 = getPointer(state.event, eventRect),
9852
- x = _getPointer2[0],
9853
- y = _getPointer2[1],
9854
- currPos = {
9855
- x: x,
9856
- y: y
9857
- },
9858
- data = (_selectedData$filter = selectedData.filter(Boolean)) == null ? void 0 : _selectedData$filter.shift();
9859
- // get mouse event position
9860
-
9861
- if (scale.x && data && "x" in data) {
9862
- currPos.xAxis = scale.x(data.x);
9863
- }
9864
-
9865
- // Get tooltip dimensions
9866
- var pos = fnPos(dataToShow, width, height, eventRect, currPos);
9867
- ["top", "left"].forEach(function (v) {
9868
- _newArrowCheck(this, _this5);
9869
- var value = pos[v];
9870
- tooltip.style(v, value + "px");
9871
-
9872
- // Remember left pos in percentage to be used on resize call
9873
- if (v === "left" && !datum.xPosInPercent) {
9874
- datum.xPosInPercent = value / state.current.width * 100;
9875
- }
9876
- }.bind(this));
9877
- }
9876
+ $$.setTooltipPosition(dataToShow, eventTarget);
9878
9877
  },
9879
9878
  /**
9880
9879
  * Adjust tooltip position on resize event
9881
9880
  * @private
9882
9881
  */
9883
9882
  bindTooltipResizePos: function bindTooltipResizePos() {
9884
- var _this6 = this,
9883
+ var _this7 = this,
9885
9884
  $$ = this,
9886
9885
  resizeFunction = $$.resizeFunction,
9887
9886
  state = $$.state,
9888
9887
  tooltip = $$.$el.tooltip;
9889
9888
  resizeFunction.add(function () {
9890
- _newArrowCheck(this, _this6);
9889
+ _newArrowCheck(this, _this7);
9891
9890
  if (tooltip.style("display") === "block") {
9892
9891
  var current = state.current,
9893
9892
  _tooltip$datum = tooltip.datum(),
@@ -9931,7 +9930,7 @@ function title_getTextPos(pos, width) {
9931
9930
  * @private
9932
9931
  */
9933
9932
  _handleLinkedCharts: function _handleLinkedCharts(show, index) {
9934
- var _this7 = this,
9933
+ var _this8 = this,
9935
9934
  $$ = this,
9936
9935
  charts = $$.charts,
9937
9936
  config = $$.config,
@@ -9941,10 +9940,10 @@ function title_getTextPos(pos, width) {
9941
9940
  if (event != null && event.isTrusted && config.tooltip_linked && charts.length > 1) {
9942
9941
  var linkedName = config.tooltip_linked_name;
9943
9942
  charts.filter(function (c) {
9944
- _newArrowCheck(this, _this7);
9943
+ _newArrowCheck(this, _this8);
9945
9944
  return c !== $$.api;
9946
9945
  }.bind(this)).forEach(function (c) {
9947
- _newArrowCheck(this, _this7);
9946
+ _newArrowCheck(this, _this8);
9948
9947
  var _c$internal = c.internal,
9949
9948
  config = _c$internal.config,
9950
9949
  $el = _c$internal.$el,
@@ -15401,9 +15400,10 @@ var Axis_Axis = /*#__PURE__*/function () {
15401
15400
 
15402
15401
  // Show xgrid focus line
15403
15402
  $$.showGridFocus(selectedData);
15403
+ var dist = $$.dist(closest, mouse);
15404
15404
 
15405
15405
  // Show cursor as pointer if point is close to mouse position
15406
- if ($$.isBarType(closest.id) || $$.dist(closest, mouse) < config.point_sensitivity) {
15406
+ if ($$.isBarType(closest.id) || dist < $$.getPointSensitivity(closest)) {
15407
15407
  $$.$el.svg.select("." + $EVENT.eventRect).style("cursor", "pointer");
15408
15408
  if (!state.mouseover) {
15409
15409
  config.data_onover.call($$.api, closest);
@@ -15480,9 +15480,11 @@ var Axis_Axis = /*#__PURE__*/function () {
15480
15480
  index += 1;
15481
15481
  }
15482
15482
  }
15483
+ var eventOnSameIdx = config.tooltip_grouped && index === eventReceiver.currentIdx;
15483
15484
 
15484
15485
  // do nothing while dragging/flowing
15485
- if (state.dragging || state.flowing || $$.hasArcType() || config.tooltip_grouped && index === eventReceiver.currentIdx) {
15486
+ if (state.dragging || state.flowing || $$.hasArcType() || eventOnSameIdx) {
15487
+ eventOnSameIdx && $$.setTooltipPosition();
15486
15488
  return;
15487
15489
  }
15488
15490
  if (index !== eventReceiver.currentIdx) {
@@ -20865,6 +20867,21 @@ var getTransitionName = function () {
20865
20867
  }
20866
20868
  return Math.sqrt(Math.pow(cx - mouse[0], 2) + Math.pow(cy - mouse[1], 2)) < (r || this.config.point_sensitivity);
20867
20869
  },
20870
+ /**
20871
+ * Get data point sensitivity radius
20872
+ * @param {object} d Data point object
20873
+ * @returns {number} return the sensitivity value
20874
+ */
20875
+ getPointSensitivity: function getPointSensitivity(d) {
20876
+ var $$ = this;
20877
+ var sensitivity = $$.config.point_sensitivity;
20878
+ if (isFunction(sensitivity)) {
20879
+ sensitivity = sensitivity.call($$.api, d);
20880
+ } else if (sensitivity === "radius") {
20881
+ sensitivity = d.r;
20882
+ }
20883
+ return sensitivity;
20884
+ },
20868
20885
  insertPointInfoDefs: function insertPointInfoDefs(point, id) {
20869
20886
  var _this7 = this,
20870
20887
  $$ = this,
@@ -24576,9 +24593,9 @@ function selection_objectSpread(target) { for (var i = 1, source; i < arguments.
24576
24593
  e = event == null ? void 0 : event.sourceEvent,
24577
24594
  isUnZoom = (event == null ? void 0 : event.transform) === external_commonjs_d3_zoom_commonjs2_d3_zoom_amd_d3_zoom_root_d3_.zoomIdentity;
24578
24595
  if (((_startEvent = startEvent) == null ? void 0 : _startEvent.type.indexOf("touch")) > -1) {
24579
- var _e, _e$changedTouches;
24596
+ var _e;
24580
24597
  startEvent = startEvent.changedTouches[0];
24581
- e = (_e = e) == null ? void 0 : (_e$changedTouches = _e.changedTouches) == null ? void 0 : _e$changedTouches[0];
24598
+ e = (_e = e) == null || (_e = _e.changedTouches) == null ? void 0 : _e[0];
24582
24599
  }
24583
24600
 
24584
24601
  // if click, do nothing. otherwise, click interaction will be canceled.
@@ -25084,7 +25101,7 @@ var _defaults = {};
25084
25101
 
25085
25102
  /**
25086
25103
  * @namespace bb
25087
- * @version 3.9.0
25104
+ * @version 3.9.1
25088
25105
  */
25089
25106
  var bb = {
25090
25107
  /**
@@ -25094,7 +25111,7 @@ var bb = {
25094
25111
  * bb.version; // "1.0.0"
25095
25112
  * @memberof bb
25096
25113
  */
25097
- version: "3.9.0",
25114
+ version: "3.9.1",
25098
25115
  /**
25099
25116
  * Generate chart
25100
25117
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -5,5 +5,5 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.9.0
8
+ * @version 3.9.1
9
9
  */.bb svg{-webkit-tap-highlight-color:rgba(0,0,0,0);font:10px sans-serif}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arc .bb-gauge-value,.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-axis{shape-rendering:crispEdges}.bb-grid{pointer-events:none}.bb-grid line{stroke:#aaa}.bb-grid text{fill:#aaa}.bb-xgrid,.bb-ygrid{stroke-dasharray:3 3}.bb-text.bb-empty{fill:grey;font-size:2em}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:1px;stroke:#fff}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-brush .extent,.bb-region,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border-collapse:collapse;border-spacing:0;box-shadow:7px 7px 12px -9px #777;empty-cells:show;opacity:.9;white-space:nowrap}.bb-tooltip tr{border:1px solid #ccc}.bb-tooltip th{background-color:#aaa;color:#fff;font-size:14px;padding:2px 5px;text-align:left}.bb-tooltip td{background-color:#fff;border-left:1px dotted #999;font-size:13px;padding:3px 6px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:10px;margin-right:6px;width:10px}.bb-tooltip.value{text-align:right}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;font-size:11px;padding:5px}