@evergis/charts 2.0.14 → 2.0.19

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.
@@ -80,7 +80,7 @@ const THROTTLE_DELAY = 44;
80
80
  const useResize = (width, callback, delay) => {
81
81
  const throttledCallback = useMemo(() => {
82
82
  return callback ? throttle(callback, delay || THROTTLE_DELAY) : undefined;
83
- }, [callback]);
83
+ }, [callback, delay]);
84
84
  useEffect(() => {
85
85
  throttledCallback && typeof width !== 'number' && window.addEventListener('resize', throttledCallback);
86
86
  return () => throttledCallback && window.removeEventListener('resize', throttledCallback);
@@ -718,7 +718,7 @@ function degreesToRadians(degrees) {
718
718
  }
719
719
 
720
720
  function _templateObject$5() {
721
- const data = _taggedTemplateLiteralLoose(["\n .", " {\n fill: #4a4a4a;\n }\n .", " {\n position: absolute;\n max-width: 128px;\n }\n .", " {\n stroke: #000;\n }\n"]);
721
+ const data = _taggedTemplateLiteralLoose(["\n .", " {\n fill: #4a4a4a;\n }\n .", " {\n position: absolute;\n max-width: 128px;\n }\n .", " {\n stroke: #000;\n }\n .", " {\n fill: transparent;\n cursor: pointer;\n }\n"]);
722
722
 
723
723
  _templateObject$5 = function _templateObject() {
724
724
  return data;
@@ -740,9 +740,10 @@ const pieChartclassNames = {
740
740
  pieTooltipItem: 'pieTooltipItem',
741
741
  pieTooltipName: 'pieTooltipName',
742
742
  pieTooltipValue: 'pieTooltipValue',
743
- pieTooltipColorBox: 'pieTooltipColorBox'
743
+ pieTooltipColorBox: 'pieTooltipColorBox',
744
+ pieFullChartTooltipCircle: 'pieFullChartTooltipCircle'
744
745
  };
745
- const SvgWrapper$1 = /*#__PURE__*/styled(Wrapper)( /*#__PURE__*/_templateObject$5(), pieChartclassNames.pieSliceLabel, pieChartclassNames.pieRadialLabel, pieChartclassNames.pieRadialLink);
746
+ const SvgWrapper$1 = /*#__PURE__*/styled(Wrapper)( /*#__PURE__*/_templateObject$5(), pieChartclassNames.pieSliceLabel, pieChartclassNames.pieRadialLabel, pieChartclassNames.pieRadialLink, pieChartclassNames.pieFullChartTooltipCircle);
746
747
 
747
748
  const getMidFactor = d => d.startAngle + (d.endAngle - d.startAngle) / 2 < Math.PI ? 1 : -1;
748
749
  const getAlign = d => {
@@ -971,7 +972,10 @@ const drawTooltip = (_ref) => {
971
972
  renderTooltip,
972
973
  arc,
973
974
  allSlices,
974
- tooltipStyle
975
+ tooltipStyle,
976
+ width,
977
+ height,
978
+ radius
975
979
  } = _ref;
976
980
  const container = tooltipRoot || document.querySelector('body');
977
981
  const format$1 = format(',');
@@ -1058,11 +1062,15 @@ const drawTooltip = (_ref) => {
1058
1062
 
1059
1063
  if (fullChartTooltip) {
1060
1064
  global.on('mouseover.fulltooltip', event => setTooltip(event));
1061
- global.on('mouseoutfulltooltip', () => {
1065
+ global.on('mouseout.fulltooltip', () => {
1062
1066
  tooltipContainer.html('');
1063
1067
  setVisible();
1064
1068
  });
1065
1069
 
1070
+ if (width && height) {
1071
+ global.append('circle').attr('class', pieChartclassNames.pieFullChartTooltipCircle).attr('r', radius).attr('cx', 0).attr('cy', 0);
1072
+ }
1073
+
1066
1074
  if (!tooltipBind) {
1067
1075
  global.on('touchmove.tooltipBind mousemove.tooltipBind', event => setPosition(event));
1068
1076
  }
@@ -1207,7 +1215,10 @@ const draw$1 = (node, props) => {
1207
1215
  renderTooltip,
1208
1216
  allSlices,
1209
1217
  arc: arc$1,
1210
- tooltipStyle
1218
+ tooltipStyle,
1219
+ width,
1220
+ height,
1221
+ radius
1211
1222
  });
1212
1223
  }
1213
1224
 
@@ -1702,16 +1713,21 @@ const drawTooltip$1 = (_ref) => {
1702
1713
  const mouseRect = mouseGlobal.append('rect').attr('width', x2 - x1).attr('height', Math.abs(y1 - y2)).attr('class', lineChartClassNames.lineChartMouseRect).attr('transform', "translate(" + x1 + ", " + y2 + ")");
1703
1714
  const mouseLine = mouseGlobal.append('path').attr('class', lineChartClassNames.lineChartMouseLine).style('opacity', '0');
1704
1715
  const lines = svg.selectAll("." + lineChartClassNames.lineChartLine).nodes();
1705
- const circles = mouseGlobal.selectAll('circle').data(chartData).join('circle').attr('class', lineChartClassNames.lineChartMouseCircle).attr('r', dynamicCircleRadius).attr('fill', (_ref3) => {
1716
+ const circles = mouseGlobal.selectAll('circle').data(chartData.filter((_ref3) => {
1706
1717
  let {
1707
- stroke
1718
+ dynamicDotOff
1708
1719
  } = _ref3;
1709
- return stroke || 'none';
1710
- }).attr('stroke', (_ref4) => {
1720
+ return !dynamicDotOff;
1721
+ })).join('circle').attr('class', lineChartClassNames.lineChartMouseCircle).attr('r', dynamicCircleRadius).attr('fill', (_ref4) => {
1711
1722
  let {
1712
1723
  stroke
1713
1724
  } = _ref4;
1714
1725
  return stroke || 'none';
1726
+ }).attr('stroke', (_ref5) => {
1727
+ let {
1728
+ stroke
1729
+ } = _ref5;
1730
+ return stroke || 'none';
1715
1731
  }).style('opacity', '0');
1716
1732
  let labelContainer = select("." + lineChartClassNames.lineChartMouseLabelContainer);
1717
1733
 
@@ -1772,27 +1788,27 @@ const drawTooltip$1 = (_ref) => {
1772
1788
  circles.attr('transform', (lineChartData, index) => {
1773
1789
  const value = getValue(lineChartData.values);
1774
1790
  return positions[index] && value ? 'translate(' + x + ',' + positions[index].y + ')' : 'translate(-9999, -9999)';
1775
- }).attr('style', (_ref5) => {
1791
+ }).attr('style', (_ref6) => {
1776
1792
  let {
1777
1793
  dynamicDotStyle
1778
- } = _ref5;
1794
+ } = _ref6;
1779
1795
  return dynamicDotStyle || '';
1780
1796
  });
1781
- const datas = chartData.map((_ref6, i) => {
1797
+ const datas = chartData.map((_ref7, i) => {
1782
1798
  let {
1783
1799
  values
1784
- } = _ref6,
1785
- rest = _objectWithoutPropertiesLoose(_ref6, ["values"]);
1800
+ } = _ref7,
1801
+ rest = _objectWithoutPropertiesLoose(_ref7, ["values"]);
1786
1802
 
1787
1803
  return _extends({}, rest, {
1788
1804
  value: getValue(values),
1789
1805
  invertValue: positions[i] ? yScale.invert(positions[i].y) : 0
1790
1806
  });
1791
1807
  });
1792
- const noHasData = datas.every((_ref7) => {
1808
+ const noHasData = datas.every((_ref8) => {
1793
1809
  let {
1794
1810
  value
1795
- } = _ref7;
1811
+ } = _ref8;
1796
1812
  return isVoid(value);
1797
1813
  });
1798
1814
 
@@ -1807,7 +1823,8 @@ const drawTooltip$1 = (_ref) => {
1807
1823
 
1808
1824
  const prevValue = (_datas$Number = datas[Number(acc)]) == null ? void 0 : _datas$Number.value;
1809
1825
  const value = (_datas$Number2 = datas[Number(key)]) == null ? void 0 : _datas$Number2.value;
1810
- return index === 0 || isVoid(value) ? acc : isVoid(prevValue) || positions[acc].y > positions[key].y ? key : acc;
1826
+ const dynamicDotOff = argData == null ? void 0 : argData[index].dynamicDotOff;
1827
+ return index === 0 || isVoid(value) || dynamicDotOff ? acc : isVoid(prevValue) || positions[acc].y > positions[key].y ? key : acc;
1811
1828
  }, '0');
1812
1829
  const labelTexts = labels && labels.style('left', left + "px").style('top', (_, i) => {
1813
1830
  const index = typeof stackedTooltipIndex === 'number' ? stackedTooltipIndex : stackedTooltip ? topIndex : i;
@@ -2053,7 +2070,7 @@ const draw$3 = (node, props) => {
2053
2070
  filter
2054
2071
  } = dot;
2055
2072
  const dotsGroup = dotsGlobal.append('g').attr('class', lineChartClassNames.lineChartDotsGlobal);
2056
- 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 || '');
2073
+ 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 || '');
2057
2074
 
2058
2075
  if (filter) {
2059
2076
  dotsGroup.selectAll('circle').select((_, i, g) => filter(item, i, g) ? g[i] : null).remove();
@@ -2207,8 +2224,18 @@ const drawLines = (_ref) => {
2207
2224
  };
2208
2225
  };
2209
2226
 
2227
+ function _templateObject2$4() {
2228
+ 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"]);
2229
+
2230
+ _templateObject2$4 = function _templateObject2() {
2231
+ return data;
2232
+ };
2233
+
2234
+ return data;
2235
+ }
2236
+
2210
2237
  function _templateObject$a() {
2211
- 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"]);
2238
+ 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"]);
2212
2239
 
2213
2240
  _templateObject$a = function _templateObject() {
2214
2241
  return data;
@@ -2247,7 +2274,8 @@ const barChartClassNames = /*#__PURE__*/_extends({
2247
2274
  barChartGridLineYZero: 'barChartGridLineYZero',
2248
2275
  barChartGridLineY: 'barChartGridLineY'
2249
2276
  }, tooltipClassnames, labelClassnames, barChartLinesClassNames);
2250
- const SvgWrapper$4 = /*#__PURE__*/styled(Wrapper)( /*#__PURE__*/_templateObject$a(), barChartClassNames.barChartGridLineX, barChartClassNames.barChartGridLineY, barChartClassNames.barChartMouseRect, barChartClassNames.barChartMouseRect, barChartClassNames.barChartMouseTooltip, barChartClassNames.barChartLinesGlobal, barChartClassNames.barChartLine, barChartClassNames.barChartArea, barChartClassNames.barChartTooltipItem);
2277
+ const SvgWrapper$4 = /*#__PURE__*/styled(Wrapper)( /*#__PURE__*/_templateObject$a(), barChartClassNames.barChartGridLineX, barChartClassNames.barChartGridLineY, barChartClassNames.barChartMouseRect, barChartClassNames.barChartMouseRect, barChartClassNames.barChartLinesGlobal, barChartClassNames.barChartLine, barChartClassNames.barChartArea);
2278
+ const TooltipStyles$1 = /*#__PURE__*/createGlobalStyle( /*#__PURE__*/_templateObject2$4(), barChartClassNames.barChartMouseTooltip, barChartClassNames.barChartTooltipItem);
2251
2279
 
2252
2280
  const drawGrid$1 = (_ref) => {
2253
2281
  let {
@@ -2432,7 +2460,9 @@ const drawTooltip$2 = (_ref) => {
2432
2460
  setTooltipPosition,
2433
2461
  onLabelItem,
2434
2462
  isBarTooltip,
2435
- bars
2463
+ bars,
2464
+ tooltipRoot,
2465
+ tooltipClassName
2436
2466
  } = _ref;
2437
2467
  select(node).select("." + barChartClassNames.barChartMouseContainer).remove();
2438
2468
  const xScaleBandDomain = xScale.domain();
@@ -2465,19 +2495,21 @@ const drawTooltip$2 = (_ref) => {
2465
2495
  }, []);
2466
2496
  const mouseGlobal = svg.append('g').attr('class', 'lineChartMouseGlobal');
2467
2497
  const mouseRect = mouseGlobal.append('rect').attr('width', x2 - x1).attr('height', Math.abs(y1 - y2)).attr('class', barChartClassNames.barChartMouseRect).attr('transform', "translate(" + x1 + ", " + y2 + ")");
2468
- const container = select(node).append('div').attr('class', barChartClassNames.barChartMouseContainer);
2469
2498
 
2470
2499
  if (dynamicTooltipEnable) {
2471
- const tooltip = container.append('div').attr('class', barChartClassNames.barChartMouseTooltip).style('opacity', '0').style('position', 'absolute').html(() => {
2472
- const html = ReactDOMServer.renderToString(React.createElement(TooltipFlex, {
2473
- className: barChartClassNames.barChartTooltipFlex
2474
- }, React.createElement(TooltipContainer, {
2475
- className: barChartClassNames.barChartTooltip
2476
- })));
2477
- return html;
2478
- });
2500
+ const tooltipContainer = tooltipRoot || document.querySelector('body');
2501
+ let tooltip = select("." + barChartClassNames.barChartMouseTooltip);
2502
+
2503
+ if (tooltip.size() === 0) {
2504
+ tooltip = select(tooltipContainer).append('div').attr('class', barChartClassNames.barChartMouseTooltip).style('opacity', '0').style('position', 'absolute').html(() => {
2505
+ const html = ReactDOMServer.renderToString(React.createElement(TooltipFlex, {
2506
+ className: barChartClassNames.barChartTooltipFlex
2507
+ }));
2508
+ return html;
2509
+ });
2510
+ }
2511
+
2479
2512
  const barChartTootipFlex = tooltip.select("." + barChartClassNames.barChartTooltipFlex);
2480
- const barChartTooltip = tooltip.select("." + barChartClassNames.barChartTooltip);
2481
2513
  let isVisible = false;
2482
2514
  let flagCurrIndex = null;
2483
2515
 
@@ -2487,20 +2519,25 @@ const drawTooltip$2 = (_ref) => {
2487
2519
  tooltip.style('opacity', opacity);
2488
2520
 
2489
2521
  if (!isVisible) {
2522
+ tooltip.attr('class', barChartClassNames.barChartMouseTooltip);
2490
2523
  flagCurrIndex = null;
2491
2524
  tooltip.style('transition', 'none');
2492
2525
  tooltip.style('top', null);
2493
2526
  tooltip.style('left', null);
2494
2527
  } else {
2528
+ tooltip.attr('class', barChartClassNames.barChartMouseTooltip + " " + (tooltipClassName || ''));
2495
2529
  tooltip.style('transition', null);
2496
2530
  }
2497
2531
  };
2498
2532
 
2499
2533
  mouseRect.on('mouseout.tooltip', () => setVisible());
2500
2534
  mouseRect.on('touchmove.tooltip mousemove.tooltip', event => {
2535
+ const [docX, docY] = pointer(event, document);
2501
2536
  const [rectrX] = pointer(event, mouseRect);
2502
- const [nodeX] = pointer(event, node);
2537
+ const [nodeX, nodeY] = pointer(event, node);
2503
2538
  const x = rectrX - (rectrX - nodeX);
2539
+ const offsetX = docX - nodeX;
2540
+ const offsetY = docY - nodeY;
2504
2541
  const currIndex = groups.findIndex(value => x <= value);
2505
2542
 
2506
2543
  if (isBarTooltip) {
@@ -2520,8 +2557,8 @@ const drawTooltip$2 = (_ref) => {
2520
2557
  }
2521
2558
  }
2522
2559
 
2523
- const top = typeof tooltipY === 'number' ? tooltipY : topYDomain[currIndex] - y2;
2524
- const left = tooltipBind ? (xScale(currIndex.toString()) || 0) + bandwidth / 2 : x;
2560
+ const top = (typeof tooltipY === 'number' ? tooltipY : topYDomain[currIndex] - y2) + offsetY;
2561
+ const left = (tooltipBind ? (xScale(currIndex.toString()) || 0) + bandwidth / 2 : x) + offsetX;
2525
2562
 
2526
2563
  if (tooltipBind && flagCurrIndex === currIndex) {
2527
2564
  return;
@@ -2579,8 +2616,10 @@ const drawTooltip$2 = (_ref) => {
2579
2616
  setVisible(true);
2580
2617
  }
2581
2618
 
2582
- barChartTooltip.html(() => {
2583
- const html = ReactDOMServer.renderToString(React.createElement(React.Fragment, null, currData && currData[0] && React.createElement(TooltipGroupName, {
2619
+ barChartTootipFlex.html(() => {
2620
+ const html = ReactDOMServer.renderToString(React.createElement(TooltipContainer, {
2621
+ className: barChartClassNames.barChartTooltip
2622
+ }, currData && currData[0] && React.createElement(TooltipGroupName, {
2584
2623
  className: barChartClassNames.barChartTooltipGroupName
2585
2624
  }, currData[0].groupName), currData && currData.map((_ref5) => {
2586
2625
  let {
@@ -2624,6 +2663,7 @@ const drawTooltip$2 = (_ref) => {
2624
2663
  });
2625
2664
  }
2626
2665
 
2666
+ const container = select(node).append('div').attr('class', barChartClassNames.barChartMouseContainer);
2627
2667
  const labelContainer = container.append('div').attr('class', barChartClassNames.barChartLabelContainer).style('position', 'absolute').style('top', y2 + "px");
2628
2668
 
2629
2669
  if (labelPosition) {
@@ -2755,7 +2795,9 @@ const draw$4 = (node, props) => {
2755
2795
  setTooltipPosition,
2756
2796
  onLabelItem,
2757
2797
  isBarTooltip,
2758
- xScaleItemWidth
2798
+ xScaleItemWidth,
2799
+ tooltipRoot,
2800
+ tooltipClassName
2759
2801
  } = props;
2760
2802
 
2761
2803
  if (node !== null && data.length) {
@@ -2910,7 +2952,9 @@ const draw$4 = (node, props) => {
2910
2952
  setTooltipPosition,
2911
2953
  onLabelItem,
2912
2954
  isBarTooltip,
2913
- bars: groups
2955
+ bars: groups,
2956
+ tooltipRoot,
2957
+ tooltipClassName
2914
2958
  });
2915
2959
  }
2916
2960
 
@@ -2941,7 +2985,7 @@ const BarChart = props => {
2941
2985
  return React.createElement("div", {
2942
2986
  className: className,
2943
2987
  style: style
2944
- }, React.createElement(SvgWrapper$4, {
2988
+ }, React.createElement(TooltipStyles$1, null), React.createElement(SvgWrapper$4, {
2945
2989
  ref: ref
2946
2990
  }, children));
2947
2991
  };
@@ -3068,10 +3112,10 @@ function _templateObject3$2() {
3068
3112
  return data;
3069
3113
  }
3070
3114
 
3071
- function _templateObject2$4() {
3115
+ function _templateObject2$5() {
3072
3116
  const data = _taggedTemplateLiteralLoose(["\n text-align: right;\n"]);
3073
3117
 
3074
- _templateObject2$4 = function _templateObject2() {
3118
+ _templateObject2$5 = function _templateObject2() {
3075
3119
  return data;
3076
3120
  };
3077
3121
 
@@ -3110,7 +3154,7 @@ const horizontalBarChartClassNames = {
3110
3154
  horizontalBarChartTooltipValue: 'horizontalBarChartTooltipValue'
3111
3155
  };
3112
3156
  const Table = /*#__PURE__*/styled.table( /*#__PURE__*/_templateObject$b());
3113
- const LabelCell = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject2$4());
3157
+ const LabelCell = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject2$5());
3114
3158
  const BarFlex = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject3$2());
3115
3159
  const BarsTd = /*#__PURE__*/styled.td( /*#__PURE__*/_templateObject4$2());
3116
3160
  const TooltipFlex$1 = /*#__PURE__*/styled(TooltipFlex)( /*#__PURE__*/_templateObject5$2());
@@ -3147,7 +3191,7 @@ const Tooltip = (_ref) => {
3147
3191
  }
3148
3192
  }), name && React.createElement(Name$1, {
3149
3193
  className: horizontalBarChartClassNames.horizontalBarChartTooltipName
3150
- }, "name"), React.createElement(Value, {
3194
+ }, name), React.createElement(Value, {
3151
3195
  className: horizontalBarChartClassNames.horizontalBarChartTooltipValue
3152
3196
  }, format$1(value)));
3153
3197
  })));
@@ -3160,7 +3204,8 @@ const useTooltip = (_ref) => {
3160
3204
  tooltipBind,
3161
3205
  tooltipStyle,
3162
3206
  tooltipRoot,
3163
- tooltipClassName
3207
+ tooltipClassName,
3208
+ hideTooltip
3164
3209
  } = _ref;
3165
3210
  useEffect(() => {
3166
3211
  const container = tooltipRoot || document.querySelector('body');
@@ -3199,8 +3244,9 @@ const useTooltip = (_ref) => {
3199
3244
  const onMouseLeave = useCallback(() => {
3200
3245
  if (rootElement) {
3201
3246
  rootElement.style.visibility = 'hidden';
3247
+ hideTooltip && hideTooltip();
3202
3248
  }
3203
- }, []);
3249
+ }, [hideTooltip]);
3204
3250
  return [onMouseMove, onMouseLeave];
3205
3251
  };
3206
3252
 
@@ -3300,10 +3346,10 @@ function _templateObject3$3() {
3300
3346
  return data;
3301
3347
  }
3302
3348
 
3303
- function _templateObject2$5() {
3349
+ function _templateObject2$6() {
3304
3350
  const data = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 1rem;\n"]);
3305
3351
 
3306
- _templateObject2$5 = function _templateObject2() {
3352
+ _templateObject2$6 = function _templateObject2() {
3307
3353
  return data;
3308
3354
  };
3309
3355
 
@@ -3320,7 +3366,7 @@ function _templateObject$d() {
3320
3366
  return data;
3321
3367
  }
3322
3368
  const TickTd = /*#__PURE__*/styled.td( /*#__PURE__*/_templateObject$d());
3323
- const Ticks = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject2$5());
3369
+ const Ticks = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject2$6());
3324
3370
  const Tick = /*#__PURE__*/styled.div( /*#__PURE__*/_templateObject3$3());
3325
3371
 
3326
3372
  const XScale = (_ref) => {
@@ -3380,7 +3426,8 @@ const HorizontalBarChart = (_ref) => {
3380
3426
  thead,
3381
3427
  withoutXScale,
3382
3428
  stackedTooltip,
3383
- fullChartTooltip
3429
+ fullChartTooltip,
3430
+ hideTooltip
3384
3431
  } = _ref;
3385
3432
  const {
3386
3433
  fullMax,
@@ -3395,7 +3442,8 @@ const HorizontalBarChart = (_ref) => {
3395
3442
  renderTooltip,
3396
3443
  tooltipBind,
3397
3444
  tooltipStyle,
3398
- tooltipClassName
3445
+ tooltipClassName,
3446
+ hideTooltip
3399
3447
  });
3400
3448
  const Stack = useStackWrapper(stackedTooltip);
3401
3449
  return React.createElement(Table, {
@@ -3476,10 +3524,10 @@ HorizontalBarChart.defaultProps = {
3476
3524
  withoutXScale: false
3477
3525
  };
3478
3526
 
3479
- function _templateObject2$6() {
3527
+ function _templateObject2$7() {
3480
3528
  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"]);
3481
3529
 
3482
- _templateObject2$6 = function _templateObject2() {
3530
+ _templateObject2$7 = function _templateObject2() {
3483
3531
  return data;
3484
3532
  };
3485
3533
 
@@ -3510,7 +3558,7 @@ const bubbleChartClassNames = {
3510
3558
  bubbleChartTip: 'bubbleChartTip'
3511
3559
  };
3512
3560
  const SvgWrapper$5 = /*#__PURE__*/styled(Wrapper)( /*#__PURE__*/_templateObject$e(), bubbleChartClassNames.bubbleChartYAxis, bubbleChartClassNames.bubbleChartXAxis, bubbleChartClassNames.bubbleChartGridGlobal, bubbleChartClassNames.bubbleChartGridLineX, bubbleChartClassNames.bubbleChartGridLineY, bubbleChartClassNames.bubbleChartYScaleLabel);
3513
- const TooltipStyles$1 = /*#__PURE__*/createGlobalStyle( /*#__PURE__*/_templateObject2$6(), bubbleChartClassNames.bubbleChartTooltipContainer);
3561
+ const TooltipStyles$2 = /*#__PURE__*/createGlobalStyle( /*#__PURE__*/_templateObject2$7(), bubbleChartClassNames.bubbleChartTooltipContainer);
3514
3562
 
3515
3563
  const drawGrid$2 = (_ref) => {
3516
3564
  let {
@@ -3792,7 +3840,7 @@ const BubbleChart = props => {
3792
3840
  return React.createElement("div", {
3793
3841
  className: className,
3794
3842
  style: style
3795
- }, React.createElement(TooltipStyles$1, null), React.createElement(SvgWrapper$5, {
3843
+ }, React.createElement(TooltipStyles$2, null), React.createElement(SvgWrapper$5, {
3796
3844
  ref: ref
3797
3845
  }, children));
3798
3846
  };