@evergis/charts 2.0.16 → 2.0.20

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.
@@ -1,2 +1,2 @@
1
1
  import { DrawTooltipProps } from './types';
2
- export declare const drawTooltip: ({ svg, node, data, marshalledData, xScale, yScale, renderTooltip, labelPosition, marginTop, renderLabel, barWidth, barPadding, dynamicTooltipEnable, tooltipY, tooltipBind, lineData, formatTooltipValue, formatTooltipName, tooltipYDomain, setTooltipPosition, onLabelItem, isBarTooltip, bars, }: DrawTooltipProps) => void;
2
+ export declare const drawTooltip: ({ svg, node, data, marshalledData, xScale, yScale, renderTooltip, labelPosition, marginTop, renderLabel, barWidth, barPadding, dynamicTooltipEnable, tooltipY, tooltipBind, lineData, formatTooltipValue, formatTooltipName, tooltipYDomain, setTooltipPosition, onLabelItem, isBarTooltip, bars, tooltipRoot, tooltipClassName, }: DrawTooltipProps) => void;
@@ -10,4 +10,4 @@ export declare type DrawTooltipProps = {
10
10
  marginTop: number;
11
11
  barWidth: number;
12
12
  bars: d3.Selection<SVGGElement, BarChartMarshalledGroup[], SVGGElement, unknown>;
13
- } & Pick<BarChartProps, 'renderTooltip' | 'labelPosition' | 'renderLabel' | 'dynamicTooltipEnable' | 'tooltipY' | 'tooltipBind' | 'lineData' | 'formatTooltipValue' | 'formatTooltipName' | 'tooltipYDomain' | 'data' | 'barPadding' | 'setTooltipPosition' | 'onLabelItem' | 'isBarTooltip'>;
13
+ } & Pick<BarChartProps, 'renderTooltip' | 'labelPosition' | 'renderLabel' | 'dynamicTooltipEnable' | 'tooltipY' | 'tooltipBind' | 'lineData' | 'formatTooltipValue' | 'formatTooltipName' | 'tooltipYDomain' | 'data' | 'barPadding' | 'setTooltipPosition' | 'onLabelItem' | 'isBarTooltip' | 'tooltipRoot' | 'tooltipClassName'>;
@@ -30,3 +30,4 @@ export declare const barChartClassNames: {
30
30
  barChartGridLineY: string;
31
31
  };
32
32
  export declare const SvgWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
33
+ export declare const TooltipStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
@@ -101,6 +101,8 @@ export declare type BarChartProps = {
101
101
  onLabelItem?: (data: BarChartMarshalledGroup[]) => BarChartMarshalledGroup[];
102
102
  isBarTooltip?: boolean;
103
103
  xScaleItemWidth?: number;
104
+ tooltipRoot?: Element;
105
+ tooltipClassName?: string;
104
106
  };
105
107
  export declare type BarChartMergedData = (BarChartMarshalledGroup & BarChartLinetData & {
106
108
  groupName: string;
@@ -51,7 +51,7 @@ export declare type LineChartProps = {
51
51
  xScaleItemWidth?: number;
52
52
  };
53
53
  export declare type LineChartDot = {
54
- radius: number;
54
+ radius?: number;
55
55
  style?: string;
56
56
  filter?: (value: LineChartData, index: number, circles: (d3.BaseType | SVGCircleElement)[] | ArrayLike<d3.BaseType | SVGCircleElement>) => boolean;
57
57
  };
@@ -65,7 +65,9 @@ export declare type LineChartData = {
65
65
  style?: string;
66
66
  dot?: LineChartDot;
67
67
  dynamicDotStyle?: string;
68
+ dynamicDotOff?: boolean;
68
69
  areaStyle?: string;
70
+ tooltipOrder?: number;
69
71
  };
70
72
  export declare type LineChartDatas = Omit<LineChartData, 'values'> & {
71
73
  value: number | null;
@@ -1721,16 +1721,21 @@ const drawTooltip$1 = (_ref) => {
1721
1721
  const mouseRect = mouseGlobal.append('rect').attr('width', x2 - x1).attr('height', Math.abs(y1 - y2)).attr('class', lineChartClassNames.lineChartMouseRect).attr('transform', "translate(" + x1 + ", " + y2 + ")");
1722
1722
  const mouseLine = mouseGlobal.append('path').attr('class', lineChartClassNames.lineChartMouseLine).style('opacity', '0');
1723
1723
  const lines = svg.selectAll("." + lineChartClassNames.lineChartLine).nodes();
1724
- const circles = mouseGlobal.selectAll('circle').data(chartData).join('circle').attr('class', lineChartClassNames.lineChartMouseCircle).attr('r', dynamicCircleRadius).attr('fill', (_ref3) => {
1724
+ const circles = mouseGlobal.selectAll('circle').data(chartData.filter((_ref3) => {
1725
1725
  let {
1726
- stroke
1726
+ dynamicDotOff
1727
1727
  } = _ref3;
1728
- return stroke || 'none';
1729
- }).attr('stroke', (_ref4) => {
1728
+ return !dynamicDotOff;
1729
+ })).join('circle').attr('class', lineChartClassNames.lineChartMouseCircle).attr('r', dynamicCircleRadius).attr('fill', (_ref4) => {
1730
1730
  let {
1731
1731
  stroke
1732
1732
  } = _ref4;
1733
1733
  return stroke || 'none';
1734
+ }).attr('stroke', (_ref5) => {
1735
+ let {
1736
+ stroke
1737
+ } = _ref5;
1738
+ return stroke || 'none';
1734
1739
  }).style('opacity', '0');
1735
1740
  let labelContainer = d3.select("." + lineChartClassNames.lineChartMouseLabelContainer);
1736
1741
 
@@ -1791,27 +1796,27 @@ const drawTooltip$1 = (_ref) => {
1791
1796
  circles.attr('transform', (lineChartData, index) => {
1792
1797
  const value = getValue(lineChartData.values);
1793
1798
  return positions[index] && value ? 'translate(' + x + ',' + positions[index].y + ')' : 'translate(-9999, -9999)';
1794
- }).attr('style', (_ref5) => {
1799
+ }).attr('style', (_ref6) => {
1795
1800
  let {
1796
1801
  dynamicDotStyle
1797
- } = _ref5;
1802
+ } = _ref6;
1798
1803
  return dynamicDotStyle || '';
1799
1804
  });
1800
- const datas = chartData.map((_ref6, i) => {
1805
+ const datas = chartData.map((_ref7, i) => {
1801
1806
  let {
1802
1807
  values
1803
- } = _ref6,
1804
- rest = _objectWithoutPropertiesLoose(_ref6, ["values"]);
1808
+ } = _ref7,
1809
+ rest = _objectWithoutPropertiesLoose(_ref7, ["values"]);
1805
1810
 
1806
1811
  return _extends({}, rest, {
1807
1812
  value: getValue(values),
1808
1813
  invertValue: positions[i] ? yScale.invert(positions[i].y) : 0
1809
1814
  });
1810
1815
  });
1811
- const noHasData = datas.every((_ref7) => {
1816
+ const noHasData = datas.every((_ref8) => {
1812
1817
  let {
1813
1818
  value
1814
- } = _ref7;
1819
+ } = _ref8;
1815
1820
  return isVoid(value);
1816
1821
  });
1817
1822
 
@@ -1826,7 +1831,8 @@ const drawTooltip$1 = (_ref) => {
1826
1831
 
1827
1832
  const prevValue = (_datas$Number = datas[Number(acc)]) == null ? void 0 : _datas$Number.value;
1828
1833
  const value = (_datas$Number2 = datas[Number(key)]) == null ? void 0 : _datas$Number2.value;
1829
- return index === 0 || isVoid(value) ? acc : isVoid(prevValue) || positions[acc].y > positions[key].y ? key : acc;
1834
+ const dynamicDotOff = argData == null ? void 0 : argData[index].dynamicDotOff;
1835
+ return index === 0 || isVoid(value) || dynamicDotOff ? acc : isVoid(prevValue) || positions[acc].y > positions[key].y ? key : acc;
1830
1836
  }, '0');
1831
1837
  const labelTexts = labels && labels.style('left', left + "px").style('top', (_, i) => {
1832
1838
  const index = typeof stackedTooltipIndex === 'number' ? stackedTooltipIndex : stackedTooltip ? topIndex : i;
@@ -2072,7 +2078,7 @@ const draw$3 = (node, props) => {
2072
2078
  filter
2073
2079
  } = dot;
2074
2080
  const dotsGroup = dotsGlobal.append('g').attr('class', lineChartClassNames.lineChartDotsGlobal);
2075
- dotsGroup.selectAll('circle').data(values).join('circle').attr('cx', (_, index) => xScale(index)).attr('class', lineChartClassNames.lineChartDot).attr('cy', d => yScale(d)).attr('r', radius).attr('style', style || '');
2081
+ dotsGroup.selectAll('circle').data(values).join('circle').attr('cx', (_, index) => xScale(index)).attr('class', lineChartClassNames.lineChartDot).attr('cy', d => yScale(d)).attr('r', radius || 0).attr('style', style || '');
2076
2082
 
2077
2083
  if (filter) {
2078
2084
  dotsGroup.selectAll('circle').select((_, i, g) => filter(item, i, g) ? g[i] : null).remove();
@@ -2226,8 +2232,18 @@ const drawLines = (_ref) => {
2226
2232
  };
2227
2233
  };
2228
2234
 
2235
+ function _templateObject2$4() {
2236
+ const data = _taggedTemplateLiteralLoose(["\n .", " {\n z-index: 1;\n transition: all linear 144ms;\n\n .", " {\n margin-bottom: 4px;\n :last-of-type {\n margin-bottom: 0;\n }\n }\n }\n"]);
2237
+
2238
+ _templateObject2$4 = function _templateObject2() {
2239
+ return data;
2240
+ };
2241
+
2242
+ return data;
2243
+ }
2244
+
2229
2245
  function _templateObject$a() {
2230
- const data = _taggedTemplateLiteralLoose(["\n line {\n stroke-width: 1px;\n shape-rendering: crispEdges;\n }\n .", ",\n .", " {\n stroke: rgba(48, 69, 79, 0.06);\n }\n .", " {\n }\n .", " {\n fill: none;\n pointer-events: all;\n }\n .", " {\n z-index: 1;\n }\n .", " {\n stroke-width: 1.5px;\n stroke-linejoin: round;\n stroke-linecap: round;\n }\n .", " {\n shape-rendering: auto;\n }\n .", " {\n fill-opacity: 0.24;\n }\n .", " {\n margin-bottom: 4px;\n :last-of-type {\n margin-bottom: 0;\n }\n }\n"]);
2246
+ const data = _taggedTemplateLiteralLoose(["\n line {\n stroke-width: 1px;\n shape-rendering: crispEdges;\n }\n .", ",\n .", " {\n stroke: rgba(48, 69, 79, 0.06);\n }\n .", " {\n }\n .", " {\n fill: none;\n pointer-events: all;\n }\n .", " {\n stroke-width: 1.5px;\n stroke-linejoin: round;\n stroke-linecap: round;\n }\n .", " {\n shape-rendering: auto;\n }\n .", " {\n fill-opacity: 0.24;\n }\n"]);
2231
2247
 
2232
2248
  _templateObject$a = function _templateObject() {
2233
2249
  return data;
@@ -2266,7 +2282,8 @@ const barChartClassNames = /*#__PURE__*/_extends({
2266
2282
  barChartGridLineYZero: 'barChartGridLineYZero',
2267
2283
  barChartGridLineY: 'barChartGridLineY'
2268
2284
  }, tooltipClassnames, labelClassnames, barChartLinesClassNames);
2269
- const SvgWrapper$4 = /*#__PURE__*/styled__default(Wrapper)( /*#__PURE__*/_templateObject$a(), barChartClassNames.barChartGridLineX, barChartClassNames.barChartGridLineY, barChartClassNames.barChartMouseRect, barChartClassNames.barChartMouseRect, barChartClassNames.barChartMouseTooltip, barChartClassNames.barChartLinesGlobal, barChartClassNames.barChartLine, barChartClassNames.barChartArea, barChartClassNames.barChartTooltipItem);
2285
+ const SvgWrapper$4 = /*#__PURE__*/styled__default(Wrapper)( /*#__PURE__*/_templateObject$a(), barChartClassNames.barChartGridLineX, barChartClassNames.barChartGridLineY, barChartClassNames.barChartMouseRect, barChartClassNames.barChartMouseRect, barChartClassNames.barChartLinesGlobal, barChartClassNames.barChartLine, barChartClassNames.barChartArea);
2286
+ const TooltipStyles$1 = /*#__PURE__*/styled.createGlobalStyle( /*#__PURE__*/_templateObject2$4(), barChartClassNames.barChartMouseTooltip, barChartClassNames.barChartTooltipItem);
2270
2287
 
2271
2288
  const drawGrid$1 = (_ref) => {
2272
2289
  let {
@@ -2451,7 +2468,9 @@ const drawTooltip$2 = (_ref) => {
2451
2468
  setTooltipPosition,
2452
2469
  onLabelItem,
2453
2470
  isBarTooltip,
2454
- bars
2471
+ bars,
2472
+ tooltipRoot,
2473
+ tooltipClassName
2455
2474
  } = _ref;
2456
2475
  d3.select(node).select("." + barChartClassNames.barChartMouseContainer).remove();
2457
2476
  const xScaleBandDomain = xScale.domain();
@@ -2484,19 +2503,21 @@ const drawTooltip$2 = (_ref) => {
2484
2503
  }, []);
2485
2504
  const mouseGlobal = svg.append('g').attr('class', 'lineChartMouseGlobal');
2486
2505
  const mouseRect = mouseGlobal.append('rect').attr('width', x2 - x1).attr('height', Math.abs(y1 - y2)).attr('class', barChartClassNames.barChartMouseRect).attr('transform', "translate(" + x1 + ", " + y2 + ")");
2487
- const container = d3.select(node).append('div').attr('class', barChartClassNames.barChartMouseContainer);
2488
2506
 
2489
2507
  if (dynamicTooltipEnable) {
2490
- const tooltip = container.append('div').attr('class', barChartClassNames.barChartMouseTooltip).style('opacity', '0').style('position', 'absolute').html(() => {
2491
- const html = ReactDOMServer.renderToString(React__default.createElement(TooltipFlex, {
2492
- className: barChartClassNames.barChartTooltipFlex
2493
- }, React__default.createElement(TooltipContainer, {
2494
- className: barChartClassNames.barChartTooltip
2495
- })));
2496
- return html;
2497
- });
2508
+ const tooltipContainer = tooltipRoot || document.querySelector('body');
2509
+ let tooltip = d3.select("." + barChartClassNames.barChartMouseTooltip);
2510
+
2511
+ if (tooltip.size() === 0) {
2512
+ tooltip = d3.select(tooltipContainer).append('div').attr('class', barChartClassNames.barChartMouseTooltip).style('opacity', '0').style('position', 'absolute').html(() => {
2513
+ const html = ReactDOMServer.renderToString(React__default.createElement(TooltipFlex, {
2514
+ className: barChartClassNames.barChartTooltipFlex
2515
+ }));
2516
+ return html;
2517
+ });
2518
+ }
2519
+
2498
2520
  const barChartTootipFlex = tooltip.select("." + barChartClassNames.barChartTooltipFlex);
2499
- const barChartTooltip = tooltip.select("." + barChartClassNames.barChartTooltip);
2500
2521
  let isVisible = false;
2501
2522
  let flagCurrIndex = null;
2502
2523
 
@@ -2506,20 +2527,25 @@ const drawTooltip$2 = (_ref) => {
2506
2527
  tooltip.style('opacity', opacity);
2507
2528
 
2508
2529
  if (!isVisible) {
2530
+ tooltip.attr('class', barChartClassNames.barChartMouseTooltip);
2509
2531
  flagCurrIndex = null;
2510
2532
  tooltip.style('transition', 'none');
2511
2533
  tooltip.style('top', null);
2512
2534
  tooltip.style('left', null);
2513
2535
  } else {
2536
+ tooltip.attr('class', barChartClassNames.barChartMouseTooltip + " " + (tooltipClassName || ''));
2514
2537
  tooltip.style('transition', null);
2515
2538
  }
2516
2539
  };
2517
2540
 
2518
2541
  mouseRect.on('mouseout.tooltip', () => setVisible());
2519
2542
  mouseRect.on('touchmove.tooltip mousemove.tooltip', event => {
2543
+ const [docX, docY] = d3.pointer(event, document);
2520
2544
  const [rectrX] = d3.pointer(event, mouseRect);
2521
- const [nodeX] = d3.pointer(event, node);
2545
+ const [nodeX, nodeY] = d3.pointer(event, node);
2522
2546
  const x = rectrX - (rectrX - nodeX);
2547
+ const offsetX = docX - nodeX;
2548
+ const offsetY = docY - nodeY;
2523
2549
  const currIndex = groups.findIndex(value => x <= value);
2524
2550
 
2525
2551
  if (isBarTooltip) {
@@ -2539,8 +2565,8 @@ const drawTooltip$2 = (_ref) => {
2539
2565
  }
2540
2566
  }
2541
2567
 
2542
- const top = typeof tooltipY === 'number' ? tooltipY : topYDomain[currIndex] - y2;
2543
- const left = tooltipBind ? (xScale(currIndex.toString()) || 0) + bandwidth / 2 : x;
2568
+ const top = (typeof tooltipY === 'number' ? tooltipY : topYDomain[currIndex] - y2) + offsetY;
2569
+ const left = (tooltipBind ? (xScale(currIndex.toString()) || 0) + bandwidth / 2 : x) + offsetX;
2544
2570
 
2545
2571
  if (tooltipBind && flagCurrIndex === currIndex) {
2546
2572
  return;
@@ -2598,8 +2624,10 @@ const drawTooltip$2 = (_ref) => {
2598
2624
  setVisible(true);
2599
2625
  }
2600
2626
 
2601
- barChartTooltip.html(() => {
2602
- const html = ReactDOMServer.renderToString(React__default.createElement(React__default.Fragment, null, currData && currData[0] && React__default.createElement(TooltipGroupName, {
2627
+ barChartTootipFlex.html(() => {
2628
+ const html = ReactDOMServer.renderToString(React__default.createElement(TooltipContainer, {
2629
+ className: barChartClassNames.barChartTooltip
2630
+ }, currData && currData[0] && React__default.createElement(TooltipGroupName, {
2603
2631
  className: barChartClassNames.barChartTooltipGroupName
2604
2632
  }, currData[0].groupName), currData && currData.map((_ref5) => {
2605
2633
  let {
@@ -2643,6 +2671,7 @@ const drawTooltip$2 = (_ref) => {
2643
2671
  });
2644
2672
  }
2645
2673
 
2674
+ const container = d3.select(node).append('div').attr('class', barChartClassNames.barChartMouseContainer);
2646
2675
  const labelContainer = container.append('div').attr('class', barChartClassNames.barChartLabelContainer).style('position', 'absolute').style('top', y2 + "px");
2647
2676
 
2648
2677
  if (labelPosition) {
@@ -2774,7 +2803,9 @@ const draw$4 = (node, props) => {
2774
2803
  setTooltipPosition,
2775
2804
  onLabelItem,
2776
2805
  isBarTooltip,
2777
- xScaleItemWidth
2806
+ xScaleItemWidth,
2807
+ tooltipRoot,
2808
+ tooltipClassName
2778
2809
  } = props;
2779
2810
 
2780
2811
  if (node !== null && data.length) {
@@ -2929,7 +2960,9 @@ const draw$4 = (node, props) => {
2929
2960
  setTooltipPosition,
2930
2961
  onLabelItem,
2931
2962
  isBarTooltip,
2932
- bars: groups
2963
+ bars: groups,
2964
+ tooltipRoot,
2965
+ tooltipClassName
2933
2966
  });
2934
2967
  }
2935
2968
 
@@ -2960,7 +2993,7 @@ const BarChart = props => {
2960
2993
  return React__default.createElement("div", {
2961
2994
  className: className,
2962
2995
  style: style
2963
- }, React__default.createElement(SvgWrapper$4, {
2996
+ }, React__default.createElement(TooltipStyles$1, null), React__default.createElement(SvgWrapper$4, {
2964
2997
  ref: ref
2965
2998
  }, children));
2966
2999
  };
@@ -3087,10 +3120,10 @@ function _templateObject3$2() {
3087
3120
  return data;
3088
3121
  }
3089
3122
 
3090
- function _templateObject2$4() {
3123
+ function _templateObject2$5() {
3091
3124
  const data = _taggedTemplateLiteralLoose(["\n text-align: right;\n"]);
3092
3125
 
3093
- _templateObject2$4 = function _templateObject2() {
3126
+ _templateObject2$5 = function _templateObject2() {
3094
3127
  return data;
3095
3128
  };
3096
3129
 
@@ -3129,7 +3162,7 @@ const horizontalBarChartClassNames = {
3129
3162
  horizontalBarChartTooltipValue: 'horizontalBarChartTooltipValue'
3130
3163
  };
3131
3164
  const Table = /*#__PURE__*/styled__default.table( /*#__PURE__*/_templateObject$b());
3132
- const LabelCell = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$4());
3165
+ const LabelCell = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$5());
3133
3166
  const BarFlex = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject3$2());
3134
3167
  const BarsTd = /*#__PURE__*/styled__default.td( /*#__PURE__*/_templateObject4$2());
3135
3168
  const TooltipFlex$1 = /*#__PURE__*/styled__default(TooltipFlex)( /*#__PURE__*/_templateObject5$2());
@@ -3321,10 +3354,10 @@ function _templateObject3$3() {
3321
3354
  return data;
3322
3355
  }
3323
3356
 
3324
- function _templateObject2$5() {
3357
+ function _templateObject2$6() {
3325
3358
  const data = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 1rem;\n"]);
3326
3359
 
3327
- _templateObject2$5 = function _templateObject2() {
3360
+ _templateObject2$6 = function _templateObject2() {
3328
3361
  return data;
3329
3362
  };
3330
3363
 
@@ -3341,7 +3374,7 @@ function _templateObject$d() {
3341
3374
  return data;
3342
3375
  }
3343
3376
  const TickTd = /*#__PURE__*/styled__default.td( /*#__PURE__*/_templateObject$d());
3344
- const Ticks = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$5());
3377
+ const Ticks = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject2$6());
3345
3378
  const Tick = /*#__PURE__*/styled__default.div( /*#__PURE__*/_templateObject3$3());
3346
3379
 
3347
3380
  const XScale = (_ref) => {
@@ -3499,10 +3532,10 @@ HorizontalBarChart.defaultProps = {
3499
3532
  withoutXScale: false
3500
3533
  };
3501
3534
 
3502
- function _templateObject2$6() {
3535
+ function _templateObject2$7() {
3503
3536
  const data = _taggedTemplateLiteralLoose(["\n .", " {\n position: absolute;\n transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);\n pointer-events: none;\n z-index: 1;\n }\n"]);
3504
3537
 
3505
- _templateObject2$6 = function _templateObject2() {
3538
+ _templateObject2$7 = function _templateObject2() {
3506
3539
  return data;
3507
3540
  };
3508
3541
 
@@ -3533,7 +3566,7 @@ const bubbleChartClassNames = {
3533
3566
  bubbleChartTip: 'bubbleChartTip'
3534
3567
  };
3535
3568
  const SvgWrapper$5 = /*#__PURE__*/styled__default(Wrapper)( /*#__PURE__*/_templateObject$e(), bubbleChartClassNames.bubbleChartYAxis, bubbleChartClassNames.bubbleChartXAxis, bubbleChartClassNames.bubbleChartGridGlobal, bubbleChartClassNames.bubbleChartGridLineX, bubbleChartClassNames.bubbleChartGridLineY, bubbleChartClassNames.bubbleChartYScaleLabel);
3536
- const TooltipStyles$1 = /*#__PURE__*/styled.createGlobalStyle( /*#__PURE__*/_templateObject2$6(), bubbleChartClassNames.bubbleChartTooltipContainer);
3569
+ const TooltipStyles$2 = /*#__PURE__*/styled.createGlobalStyle( /*#__PURE__*/_templateObject2$7(), bubbleChartClassNames.bubbleChartTooltipContainer);
3537
3570
 
3538
3571
  const drawGrid$2 = (_ref) => {
3539
3572
  let {
@@ -3815,7 +3848,7 @@ const BubbleChart = props => {
3815
3848
  return React__default.createElement("div", {
3816
3849
  className: className,
3817
3850
  style: style
3818
- }, React__default.createElement(TooltipStyles$1, null), React__default.createElement(SvgWrapper$5, {
3851
+ }, React__default.createElement(TooltipStyles$2, null), React__default.createElement(SvgWrapper$5, {
3819
3852
  ref: ref
3820
3853
  }, children));
3821
3854
  };