billboard.js 3.16.0-next.2 → 3.16.0

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 (46) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +95 -91
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +8 -8
  5. package/dist/billboard.pkgd.js +95 -91
  6. package/dist/billboard.pkgd.min.js +13 -13
  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 +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  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 +3 -3
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +128 -114
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +11 -11
  44. package/src/ChartInternal/ChartInternal.ts +51 -60
  45. package/src/ChartInternal/data/convert.ts +71 -45
  46. package/src/config/Options/axis/y2.ts +0 -13
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.16.0-next.2
8
+ * @version 3.16.0
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.16.0-next.2
8
+ * @version 3.16.0
9
9
  */
10
10
  (function webpackUniversalModuleDefinition(root, factory) {
11
11
  if(typeof exports === 'object' && typeof module === 'object')
@@ -3537,6 +3537,35 @@ function getDataKeyForJson(keysParam, config) {
3537
3537
  }
3538
3538
  return keys;
3539
3539
  }
3540
+ function setXS(ids, data, params) {
3541
+ const $$ = this;
3542
+ const { config } = $$;
3543
+ let xsData;
3544
+ ids.forEach((id) => {
3545
+ const xKey = $$.getXKey(id);
3546
+ if (params.customX || params.timeSeries) {
3547
+ if (params.xs.indexOf(xKey) >= 0) {
3548
+ xsData = (params.appendXs && $$.data.xs[id] || []).concat(
3549
+ data.map((d, i) => {
3550
+ const rawX = isValue(d[xKey]);
3551
+ return rawX ? $$.generateTargetX(rawX, id, i) : false;
3552
+ }).filter((v) => v !== false)
3553
+ );
3554
+ } else if (config.data_x) {
3555
+ xsData = this.getOtherTargetXs();
3556
+ } else if (notEmpty(config.data_xs)) {
3557
+ xsData = $$.getXValuesOfXKey(xKey, $$.data.targets);
3558
+ }
3559
+ } else {
3560
+ xsData = data.map((d, i) => i);
3561
+ }
3562
+ if (xsData) {
3563
+ $$.data.xs[id] = xsData;
3564
+ } else {
3565
+ throw new Error(`x is not defined for id = "${id}".`);
3566
+ }
3567
+ });
3568
+ }
3540
3569
  /* harmony default export */ var convert = ({
3541
3570
  /**
3542
3571
  * Convert data according its type
@@ -3578,18 +3607,17 @@ function getDataKeyForJson(keysParam, config) {
3578
3607
  throw Error("url or json or rows or columns is required.");
3579
3608
  }
3580
3609
  },
3610
+ /**
3611
+ * Convert data to targets
3612
+ * @param {object[]} data Data to convert
3613
+ * @param {boolean} appendXs Whether to append xs
3614
+ * @returns {IData[]} Converted targets
3615
+ * @private
3616
+ */
3581
3617
  convertDataToTargets(data, appendXs) {
3582
3618
  const $$ = this;
3583
3619
  const { axis, config, state } = $$;
3584
3620
  const chartType = config.data_type;
3585
- let isCategorized = false;
3586
- let isTimeSeries = false;
3587
- let isCustomX = false;
3588
- if (axis) {
3589
- isCategorized = axis.isCategorized();
3590
- isTimeSeries = axis.isTimeSeries();
3591
- isCustomX = axis.isCustomX();
3592
- }
3593
3621
  const dataKeys = Object.keys(data[0] || {});
3594
3622
  const { ids, xs } = dataKeys.length ? dataKeys.reduce((acc, key) => {
3595
3623
  if ($$.isX.call($$, key)) {
@@ -3599,33 +3627,19 @@ function getDataKeyForJson(keysParam, config) {
3599
3627
  }
3600
3628
  return acc;
3601
3629
  }, { ids: [], xs: [] }) : { ids: [], xs: [] };
3602
- let xsData;
3603
- ids.forEach((id) => {
3604
- const xKey = this.getXKey(id);
3605
- if (isCustomX || isTimeSeries) {
3606
- if (xs.indexOf(xKey) >= 0) {
3607
- xsData = (appendXs && $$.data.xs[id] || []).concat(
3608
- data.map((d) => d[xKey]).filter(isValue).map((rawX, i) => $$.generateTargetX(rawX, id, i))
3609
- );
3610
- } else if (config.data_x) {
3611
- xsData = this.getOtherTargetXs();
3612
- } else if (notEmpty(config.data_xs)) {
3613
- xsData = $$.getXValuesOfXKey(xKey, $$.data.targets);
3614
- }
3615
- } else {
3616
- xsData = data.map((d, i) => i);
3617
- }
3618
- xsData && (this.data.xs[id] = xsData);
3619
- });
3620
- ids.forEach((id) => {
3621
- if (!this.data.xs[id]) {
3622
- throw new Error(`x is not defined for id = "${id}".`);
3623
- }
3624
- });
3630
+ const params = {
3631
+ appendXs,
3632
+ xs,
3633
+ idConverter: config.data_idConverter.bind($$.api),
3634
+ categorized: axis == null ? void 0 : axis.isCategorized(),
3635
+ timeSeries: axis == null ? void 0 : axis.isTimeSeries(),
3636
+ customX: axis == null ? void 0 : axis.isCustomX()
3637
+ };
3638
+ setXS.bind($$)(ids, data, params);
3625
3639
  const targets = ids.map((id, index) => {
3626
3640
  const convertedId = config.data_idConverter.bind($$.api)(id);
3627
3641
  const xKey = $$.getXKey(id);
3628
- const isCategory = isCustomX && isCategorized;
3642
+ const isCategory = params.customX && params.categorized;
3629
3643
  const hasCategory = isCategory && (() => {
3630
3644
  const categorySet = new Set(config.axis_x_categories);
3631
3645
  return data.every((v) => categorySet.has(v.x));
@@ -8832,14 +8846,15 @@ class ChartInternal {
8832
8846
  init() {
8833
8847
  const $$ = this;
8834
8848
  const { config, state, $el } = $$;
8835
- const useCssRule = config.boost_useCssRule;
8849
+ const { boost_useCssRule, bindto } = config;
8836
8850
  checkModuleImport($$);
8851
+ const hasArcType = $$.hasArcType();
8837
8852
  state.hasRadar = !state.hasAxis && $$.hasType("radar");
8838
8853
  state.hasFunnel = !state.hasAxis && $$.hasType("funnel");
8839
8854
  state.hasTreemap = !state.hasAxis && $$.hasType("treemap");
8840
- state.hasAxis = !$$.hasArcType() && !state.hasFunnel && !state.hasTreemap;
8855
+ state.hasAxis = !hasArcType && !state.hasFunnel && !state.hasTreemap;
8841
8856
  state.datetimeId = `bb-${+/* @__PURE__ */ new Date() * getRandom()}`;
8842
- if (useCssRule) {
8857
+ if (boost_useCssRule) {
8843
8858
  const styleEl = browser_doc.createElement("style");
8844
8859
  styleEl.type = "text/css";
8845
8860
  browser_doc.head.appendChild(styleEl);
@@ -8849,19 +8864,19 @@ class ChartInternal {
8849
8864
  };
8850
8865
  $el.style = styleEl;
8851
8866
  }
8852
- const bindto = {
8853
- element: config.bindto,
8867
+ const bindConfig = {
8868
+ element: bindto,
8854
8869
  classname: "bb"
8855
8870
  };
8856
- if (isObject(config.bindto)) {
8857
- bindto.element = config.bindto.element || "#chart";
8858
- bindto.classname = config.bindto.classname || bindto.classname;
8871
+ if (isObject(bindto)) {
8872
+ bindConfig.element = bindto.element || "#chart";
8873
+ bindConfig.classname = bindto.classname || bindConfig.classname;
8859
8874
  }
8860
- $el.chart = isFunction(bindto.element.node) ? config.bindto.element : (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(bindto.element || []);
8875
+ $el.chart = isFunction(bindConfig.element.node) ? bindto.element : (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(bindConfig.element || []);
8861
8876
  if ($el.chart.empty()) {
8862
8877
  $el.chart = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(browser_doc.body.appendChild(browser_doc.createElement("div")));
8863
8878
  }
8864
- $el.chart.html("").classed(bindto.classname, true).classed(state.datetimeId, useCssRule).style("position", "relative");
8879
+ $el.chart.html("").classed(bindConfig.classname, true).classed(state.datetimeId, boost_useCssRule).style("position", "relative");
8865
8880
  $$.initParams();
8866
8881
  $$.initToRender();
8867
8882
  }
@@ -8898,7 +8913,6 @@ class ChartInternal {
8898
8913
  var _a;
8899
8914
  const $$ = this;
8900
8915
  const { config, format: format2, state } = $$;
8901
- const isRotated = config.axis_rotated;
8902
8916
  $$.color = $$.generateColor();
8903
8917
  $$.levelColor = $$.generateLevelColor();
8904
8918
  if (config.padding === false) {
@@ -8915,7 +8929,7 @@ class ChartInternal {
8915
8929
  format2.extraLineClasses = $$.generateExtraLineClass();
8916
8930
  format2.dataTime = config.data_xLocaltime ? external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.timeParse : external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.utcParse;
8917
8931
  format2.axisTime = config.axis_x_localtime ? external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.timeFormat : external_commonjs_d3_time_format_commonjs2_d3_time_format_amd_d3_time_format_root_d3_.utcFormat;
8918
- const isDragZoom = $$.config.zoom_enabled && $$.config.zoom_type === "drag";
8932
+ const isDragZoom = config.zoom_enabled && config.zoom_type === "drag";
8919
8933
  format2.defaultAxisTime = (d) => {
8920
8934
  const { x, zoom } = $$.scale;
8921
8935
  const isZoomed = isDragZoom ? zoom : zoom && x.orgDomain().toString() !== zoom.domain().toString();
@@ -8923,12 +8937,13 @@ class ChartInternal {
8923
8937
  return format2.axisTime(specifier)(d);
8924
8938
  };
8925
8939
  }
8926
- state.isLegendRight = config.legend_position === "right";
8927
- state.isLegendInset = config.legend_position === "inset";
8928
- state.isLegendTop = config.legend_inset_anchor === "top-left" || config.legend_inset_anchor === "top-right";
8929
- state.isLegendLeft = config.legend_inset_anchor === "top-left" || config.legend_inset_anchor === "bottom-left";
8940
+ const { legend_position, legend_inset_anchor, axis_rotated } = config;
8941
+ state.isLegendRight = legend_position === "right";
8942
+ state.isLegendInset = legend_position === "inset";
8943
+ state.isLegendTop = legend_inset_anchor === "top-left" || legend_inset_anchor === "top-right";
8944
+ state.isLegendLeft = legend_inset_anchor === "top-left" || legend_inset_anchor === "bottom-left";
8930
8945
  state.rotatedPadding.top = $$.getResettedPadding(state.rotatedPadding.top);
8931
- state.rotatedPadding.right = isRotated && !config.axis_x_show ? 0 : 30;
8946
+ state.rotatedPadding.right = axis_rotated && !config.axis_x_show ? 0 : 30;
8932
8947
  state.inputType = convertInputType(
8933
8948
  config.interaction_inputType_mouse,
8934
8949
  config.interaction_inputType_touch
@@ -8990,7 +9005,7 @@ class ChartInternal {
8990
9005
  if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
8991
9006
  $el.defs = $el.svg.append("defs");
8992
9007
  if (hasAxis) {
8993
- ["id", "idXAxis", "idYAxis", "idY2Axis", "idGrid"].forEach((v) => {
9008
+ ["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
8994
9009
  $$.appendClip($el.defs, state.clip[v]);
8995
9010
  });
8996
9011
  }
@@ -9055,22 +9070,23 @@ class ChartInternal {
9055
9070
  if ($$.config.bar_front) {
9056
9071
  shapes.push(shapes.shift());
9057
9072
  }
9058
- shapes.forEach((v) => {
9059
- const name = capitalize(v);
9060
- if (v === "line" && $$.hasTypeOf(name) || $$.hasType(v)) {
9073
+ for (const shape2 of shapes) {
9074
+ const name = capitalize(shape2);
9075
+ if (shape2 === "line" && $$.hasTypeOf(name) || $$.hasType(shape2)) {
9061
9076
  types.push(name);
9062
9077
  }
9063
- });
9078
+ }
9064
9079
  } else if (hasTreemap) {
9065
9080
  types.push("Treemap");
9066
9081
  } else if ($$.hasType("funnel")) {
9067
9082
  types.push("Funnel");
9068
9083
  } else {
9069
9084
  const hasPolar = $$.hasType("polar");
9085
+ const hasGauge = $$.hasType("gauge");
9070
9086
  if (!hasRadar) {
9071
9087
  types.push("Arc", "Pie");
9072
9088
  }
9073
- if ($$.hasType("gauge")) {
9089
+ if (hasGauge) {
9074
9090
  types.push("Gauge");
9075
9091
  } else if (hasRadar) {
9076
9092
  types.push("Radar");
@@ -9078,10 +9094,12 @@ class ChartInternal {
9078
9094
  types.push("Polar");
9079
9095
  }
9080
9096
  }
9081
- types.forEach((v) => {
9082
- $$[`init${v}`]();
9083
- });
9084
- notEmpty($$.config.data_labels) && !$$.hasArcType(null, ["radar"]) && $$.initText();
9097
+ for (const type of types) {
9098
+ $$[`init${type}`]();
9099
+ }
9100
+ if (notEmpty($$.config.data_labels) && !$$.hasArcType(null, ["radar"])) {
9101
+ $$.initText();
9102
+ }
9085
9103
  }
9086
9104
  /**
9087
9105
  * Set chart elements
@@ -9150,7 +9168,7 @@ class ChartInternal {
9150
9168
  * @private
9151
9169
  */
9152
9170
  updateTargets(targets) {
9153
- var _a;
9171
+ var _a, _b;
9154
9172
  const $$ = this;
9155
9173
  const { hasAxis, hasFunnel, hasRadar, hasTreemap } = $$.state;
9156
9174
  const helper = (type) => $$[`updateTargetsFor${type}`](
@@ -9158,13 +9176,14 @@ class ChartInternal {
9158
9176
  );
9159
9177
  $$.updateTargetsForText(targets);
9160
9178
  if (hasAxis) {
9161
- ["bar", "candlestick", "line"].forEach((v) => {
9162
- const name = capitalize(v);
9163
- if (v === "line" && $$.hasTypeOf(name) || $$.hasType(v)) {
9179
+ const shapes = ["bar", "candlestick", "line"];
9180
+ for (const shape2 of shapes) {
9181
+ const name = capitalize(shape2);
9182
+ if (shape2 === "line" && $$.hasTypeOf(name) || $$.hasType(shape2)) {
9164
9183
  helper(name);
9165
9184
  }
9166
- });
9167
- $$.updateTargetsForSubchart && $$.updateTargetsForSubchart(targets);
9185
+ }
9186
+ (_a = $$.updateTargetsForSubchart) == null ? void 0 : _a.call($$, targets);
9168
9187
  } else if ($$.hasArcType(targets)) {
9169
9188
  let type = "Arc";
9170
9189
  if (hasRadar) {
@@ -9180,7 +9199,7 @@ class ChartInternal {
9180
9199
  }
9181
9200
  const hasPointType = $$.hasType("bubble") || $$.hasType("scatter");
9182
9201
  if (hasPointType) {
9183
- (_a = $$.updateTargetForCircle) == null ? void 0 : _a.call($$);
9202
+ (_b = $$.updateTargetForCircle) == null ? void 0 : _b.call($$);
9184
9203
  }
9185
9204
  $$.filterTargetsToShowAtInit(hasPointType);
9186
9205
  }
@@ -9214,28 +9233,25 @@ class ChartInternal {
9214
9233
  TransitionForAxis: "Transition",
9215
9234
  Y: true
9216
9235
  };
9217
- Object.keys(withOptions).forEach((key) => {
9218
- let defVal = withOptions[key];
9219
- if (isString(defVal)) {
9220
- defVal = withOptions[defVal];
9221
- }
9222
- withOptions[key] = getOption(options, `with${key}`, defVal);
9223
- });
9236
+ for (const [key, defVal] of Object.entries(withOptions)) {
9237
+ const value = isString(defVal) ? withOptions[defVal] : defVal;
9238
+ withOptions[key] = getOption(options, `with${key}`, value);
9239
+ }
9224
9240
  return withOptions;
9225
9241
  }
9226
9242
  initialOpacity(d) {
9227
9243
  const $$ = this;
9228
9244
  const { withoutFadeIn } = $$.state;
9229
- const r = $$.getBaseValue(d) !== null && withoutFadeIn[d.id] ? null : "0";
9230
- return r;
9245
+ return $$.getBaseValue(d) !== null && withoutFadeIn[d.id] ? null : "0";
9231
9246
  }
9232
9247
  bindResize() {
9233
9248
  const $$ = this;
9234
9249
  const { $el, config, state } = $$;
9235
9250
  const resizeFunction = generateResize(config.resize_timer);
9251
+ const { resize_auto } = config;
9236
9252
  const list = [];
9237
9253
  list.push(() => callFn(config.onresize, $$.api));
9238
- if (/^(true|parent)$/.test(config.resize_auto)) {
9254
+ if (/^(true|parent)$/.test(resize_auto)) {
9239
9255
  list.push(() => {
9240
9256
  state.resizing = true;
9241
9257
  if (config.legend_show) {
@@ -9251,7 +9267,7 @@ class ChartInternal {
9251
9267
  });
9252
9268
  list.forEach((v) => resizeFunction.add(v));
9253
9269
  $$.resizeFunction = resizeFunction;
9254
- if (config.resize_auto === "parent") {
9270
+ if (resize_auto === "parent") {
9255
9271
  ($$.resizeFunction.resizeObserver = new ResizeObserver($$.resizeFunction.bind($$))).observe($el.chart.node().parentNode);
9256
9272
  } else {
9257
9273
  win.addEventListener("resize", $$.resizeFunction);
@@ -16709,18 +16725,6 @@ function smoothLines(el, type) {
16709
16725
 
16710
16726
  ;// ./src/config/Options/axis/y2.ts
16711
16727
  /* harmony default export */ var y2 = ({
16712
- /**
16713
- * Set clip-path attribute for y2 axis element
16714
- * - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
16715
- * @name axis․y2․clipPath
16716
- * @memberof Options
16717
- * @type {boolean}
16718
- * @default true
16719
- * @example
16720
- * // don't set 'clip-path' attribute
16721
- * clipPath: false
16722
- */
16723
- axis_y2_clipPath: true,
16724
16728
  /**
16725
16729
  * Show or hide y2 axis.
16726
16730
  * - **NOTE**:
@@ -22137,7 +22141,7 @@ const bb = {
22137
22141
  * bb.version; // "1.0.0"
22138
22142
  * @memberof bb
22139
22143
  */
22140
- version: "3.16.0-next.2",
22144
+ version: "3.16.0",
22141
22145
  /**
22142
22146
  * Generate chart
22143
22147
  * - **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.16.0-next.2
8
+ * @version 3.16.0
9
9
  */.bb svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle,.bb-chart-arc .bb-gauge-value{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-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{font-size:13px;fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:1em;fill:#fff;white-space:nowrap}.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:gray;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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;opacity:.9;box-shadow:7px 7px 12px -9px #777;white-space:nowrap}.bb-tooltip tr{border:1px solid #CCC}.bb-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.bb-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px}.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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{font-size:11px;border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}