@evergis/charts 4.0.51 → 4.0.52

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/index.js CHANGED
@@ -27,10 +27,10 @@ function _interopNamespaceDefault(e) {
27
27
 
28
28
  var d3__namespace = /*#__PURE__*/_interopNamespaceDefault(d3);
29
29
 
30
- const Wrapper = styled.div `
31
- position: relative;
32
- width: 100%;
33
- box-sizing: border-box;
30
+ const Wrapper = styled.div `
31
+ position: relative;
32
+ width: 100%;
33
+ box-sizing: border-box;
34
34
  `;
35
35
 
36
36
  function useNode() {
@@ -128,10 +128,10 @@ const drawMarkers = ({ svg, markers, width, left, top, count, yScale }) => {
128
128
  });
129
129
  };
130
130
 
131
- const SwipeScrollContainer = styled.div `
132
- width: 100%;
133
- overflow: hidden;
134
- user-select: none;
131
+ const SwipeScrollContainer = styled.div `
132
+ width: 100%;
133
+ overflow: hidden;
134
+ user-select: none;
135
135
  `;
136
136
 
137
137
  function animate({ duration, timing, draw, }) {
@@ -283,37 +283,37 @@ const getTranslate$1 = ({ anchor, index, translateX, translateY, }) => {
283
283
  }
284
284
  return `translate(${translateX}px, ${translateY}px)`;
285
285
  };
286
- const Label$2 = styled.div `
287
- display: flex;
288
- align-items: center;
289
- font-size: 12px;
286
+ const Label$2 = styled.div `
287
+ display: flex;
288
+ align-items: center;
289
+ font-size: 12px;
290
290
  `;
291
- const Name$1 = styled.div `
292
- text-align: center;
293
- max-width: 120px;
291
+ const Name$1 = styled.div `
292
+ text-align: center;
293
+ max-width: 120px;
294
294
  `;
295
- const middleBadgeStyles = styled.css `
296
- position: absolute;
297
- top: 50%;
298
- right: 0;
299
- transform: translate(calc(100% + 6px), -50%);
295
+ const middleBadgeStyles = styled.css `
296
+ position: absolute;
297
+ top: 50%;
298
+ right: 0;
299
+ transform: translate(calc(100% + 6px), -50%);
300
300
  `;
301
- const DefaultBadge = styled.div `
302
- display: flex;
303
- align-items: center;
304
- padding: 2px 4px;
305
- border-radius: 4px;
306
- color: rgb(255, 255, 255);
307
- background-color: rgb(144, 197, 61);
308
- margin-left: 8px;
301
+ const DefaultBadge = styled.div `
302
+ display: flex;
303
+ align-items: center;
304
+ padding: 2px 4px;
305
+ border-radius: 4px;
306
+ color: rgb(255, 255, 255);
307
+ background-color: rgb(144, 197, 61);
308
+ margin-left: 8px;
309
309
  `;
310
- const MiddleBadge = styled(DefaultBadge) `
311
- ${middleBadgeStyles}
310
+ const MiddleBadge = styled(DefaultBadge) `
311
+ ${middleBadgeStyles}
312
312
  `;
313
- const BadgePrefix = styled.div `
314
- margin-left: 4px;
315
- font-size: 10px;
316
- color: rgba(255, 255, 255, 0.54);
313
+ const BadgePrefix = styled.div `
314
+ margin-left: 4px;
315
+ font-size: 10px;
316
+ color: rgba(255, 255, 255, 0.54);
317
317
  `;
318
318
 
319
319
  const radarChartclassNames = {
@@ -328,29 +328,29 @@ const radarChartclassNames = {
328
328
  radarLabelBadgePrefix: 'radarLabelBadgePrefix',
329
329
  radarCircle: 'radarCircle',
330
330
  };
331
- const SvgWrapper$5 = styled(Wrapper) `
332
- .${radarChartclassNames.radarAxis} {
333
- path,
334
- line,
335
- circle {
336
- fill: none;
337
- stroke-width: 1px;
338
- stroke: rgba(149, 149, 149, 0.18);
339
- }
340
- }
341
- .${radarChartclassNames.radarAxisText} {
342
- font-size: 12px;
343
- fill-opacity: 0.56;
344
- }
345
- .${radarChartclassNames.radarPolygon} {
346
- fill-opacity: 0.06;
347
- stroke-width: 2px;
348
- fill: rgb(144, 197, 61);
349
- stroke: rgb(144, 197, 61);
350
- }
351
- .${radarChartclassNames.radarCircle} {
352
- fill: rgb(144, 197, 61);
353
- }
331
+ const SvgWrapper$5 = styled(Wrapper) `
332
+ .${radarChartclassNames.radarAxis} {
333
+ path,
334
+ line,
335
+ circle {
336
+ fill: none;
337
+ stroke-width: 1px;
338
+ stroke: rgba(149, 149, 149, 0.18);
339
+ }
340
+ }
341
+ .${radarChartclassNames.radarAxisText} {
342
+ font-size: 12px;
343
+ fill-opacity: 0.56;
344
+ }
345
+ .${radarChartclassNames.radarPolygon} {
346
+ fill-opacity: 0.06;
347
+ stroke-width: 2px;
348
+ fill: rgb(144, 197, 61);
349
+ stroke: rgb(144, 197, 61);
350
+ }
351
+ .${radarChartclassNames.radarCircle} {
352
+ fill: rgb(144, 197, 61);
353
+ }
354
354
  `;
355
355
 
356
356
  const getTranslate = ({ anchor, index, translateX, translateY, }) => {
@@ -372,8 +372,8 @@ const LabelContainer$1 = styled.div.attrs(props => ({
372
372
  style: {
373
373
  transform: getTranslate(props),
374
374
  },
375
- })) `
376
- position: absolute;
375
+ })) `
376
+ position: absolute;
377
377
  `;
378
378
 
379
379
  const degByIndex = (index, count) => {
@@ -637,24 +637,24 @@ const pieChartclassNames = {
637
637
  pieTooltipColorBox: 'pieTooltipColorBox',
638
638
  pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
639
639
  };
640
- const SvgWrapper$4 = styled(Wrapper) `
641
- .${pieChartclassNames.pieSliceLabel} {
642
- fill: #4a4a4a;
643
- }
644
-
645
- .${pieChartclassNames.pieRadialLabel} {
646
- position: absolute;
647
- max-width: 128px;
648
- }
649
-
650
- .${pieChartclassNames.pieRadialLink} {
651
- stroke: #000;
652
- }
653
-
654
- .${pieChartclassNames.pieFullChartTooltipCircle} {
655
- fill: transparent;
656
- cursor: pointer;
657
- }
640
+ const SvgWrapper$4 = styled(Wrapper) `
641
+ .${pieChartclassNames.pieSliceLabel} {
642
+ fill: #4a4a4a;
643
+ }
644
+
645
+ .${pieChartclassNames.pieRadialLabel} {
646
+ position: absolute;
647
+ max-width: 128px;
648
+ }
649
+
650
+ .${pieChartclassNames.pieRadialLink} {
651
+ stroke: #000;
652
+ }
653
+
654
+ .${pieChartclassNames.pieFullChartTooltipCircle} {
655
+ fill: transparent;
656
+ cursor: pointer;
657
+ }
658
658
  `;
659
659
 
660
660
  function radiansToDegrees(radians) {
@@ -754,90 +754,90 @@ const drawRadialLabels = ({ arc, enableRadialLabels, global, node, radius, dataR
754
754
  }
755
755
  };
756
756
 
757
- const TooltipFlex$1 = styled.div `
758
- width: 0;
759
- height: 0;
760
- display: flex;
761
- align-items: flex-end;
762
- justify-content: center;
763
- pointer-events: none;
764
- white-space: nowrap;
757
+ const TooltipFlex$1 = styled.div `
758
+ width: 0;
759
+ height: 0;
760
+ display: flex;
761
+ align-items: flex-end;
762
+ justify-content: center;
763
+ pointer-events: none;
764
+ white-space: nowrap;
765
765
  `;
766
766
  const LabelFlex = styled(TooltipFlex$1) ``;
767
- const LabelFlexCenter = styled(LabelFlex) `
768
- align-items: center;
767
+ const LabelFlexCenter = styled(LabelFlex) `
768
+ align-items: center;
769
769
  `;
770
- const TooltipContainer = styled.div `
771
- position: relative;
772
- font-size: 11px;
773
- color: #fff;
774
- margin-bottom: 8px;
775
- padding: 4px 6px;
776
- background-color: rgba(48, 69, 79, 1);
777
- border-radius: 4px;
778
- box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
779
-
780
- :before {
781
- content: '';
782
- position: absolute;
783
- bottom: 0;
784
- left: 50%;
785
- transform: translate(-50%, 100%);
786
- width: 0;
787
- height: 0;
788
- border-style: solid;
789
- border-width: 4px 3px 0 3px;
790
- border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
791
- }
770
+ const TooltipContainer = styled.div `
771
+ position: relative;
772
+ font-size: 11px;
773
+ color: #fff;
774
+ margin-bottom: 8px;
775
+ padding: 4px 6px;
776
+ background-color: rgba(48, 69, 79, 1);
777
+ border-radius: 4px;
778
+ box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
779
+
780
+ :before {
781
+ content: '';
782
+ position: absolute;
783
+ bottom: 0;
784
+ left: 50%;
785
+ transform: translate(-50%, 100%);
786
+ width: 0;
787
+ height: 0;
788
+ border-style: solid;
789
+ border-width: 4px 3px 0 3px;
790
+ border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
791
+ }
792
792
  `;
793
- const TooltipGroupName = styled.div `
794
- font-size: 14px;
795
- margin-bottom: 6px;
793
+ const TooltipGroupName = styled.div `
794
+ font-size: 14px;
795
+ margin-bottom: 6px;
796
796
  `;
797
- const TooltipItem = styled.div `
798
- display: flex;
799
- align-items: center;
800
- margin-bottom: 0.25rem;
801
-
802
- &:last-of-type {
803
- margin-bottom: 0;
804
- }
797
+ const TooltipItem = styled.div `
798
+ display: flex;
799
+ align-items: center;
800
+ margin-bottom: 0.25rem;
801
+
802
+ &:last-of-type {
803
+ margin-bottom: 0;
804
+ }
805
805
  `;
806
- const ColFlex = styled.div `
807
- display: flex;
808
- align-items: center;
809
- margin-right: 4px;
806
+ const ColFlex = styled.div `
807
+ display: flex;
808
+ align-items: center;
809
+ margin-right: 4px;
810
810
  `;
811
- const ColorBox = styled.div `
812
- margin-right: 4px;
813
- width: 10px;
814
- height: 10px;
815
- border-radius: 2px;
811
+ const ColorBox = styled.div `
812
+ margin-right: 4px;
813
+ width: 10px;
814
+ height: 10px;
815
+ border-radius: 2px;
816
816
  `;
817
- const ColorLine = styled(ColorBox) `
818
- height: 2px;
819
- border-radius: 0;
817
+ const ColorLine = styled(ColorBox) `
818
+ height: 2px;
819
+ border-radius: 0;
820
820
  `;
821
- const Name = styled.div `
822
- margin-right: 4px;
821
+ const Name = styled.div `
822
+ margin-right: 4px;
823
823
  `;
824
- const Value = styled.div `
825
- text-align: right;
826
- flex-shrink: 0;
827
- flex-grow: 1;
824
+ const Value = styled.div `
825
+ text-align: right;
826
+ flex-shrink: 0;
827
+ flex-grow: 1;
828
828
  `;
829
- const Label$1 = styled.div `
830
- position: relative;
831
- font-size: 11px;
832
- color: #fff;
833
- font-weight: bold;
834
- letter-spacing: 0.52px;
829
+ const Label$1 = styled.div `
830
+ position: relative;
831
+ font-size: 11px;
832
+ color: #fff;
833
+ font-weight: bold;
834
+ letter-spacing: 0.52px;
835
835
  `;
836
- const LabelTop = styled(Label$1) `
837
- top: 6px;
836
+ const LabelTop = styled(Label$1) `
837
+ top: 6px;
838
838
  `;
839
- const LabelBottom = styled(Label$1) `
840
- bottom: 6px;
839
+ const LabelBottom = styled(Label$1) `
840
+ bottom: 6px;
841
841
  `;
842
842
 
843
843
  const drawTooltip$3 = ({ fullChartTooltip, global, tooltipRoot, data, tooltipClassName, tooltipBind, renderTooltip, arc, allSlices, tooltipStyle, width, height, radius, }) => {
@@ -1282,53 +1282,53 @@ const calendarChartClassNames = {
1282
1282
  ...legendClassNames,
1283
1283
  };
1284
1284
  const headerHeight = "20px";
1285
- const SvgWrapper$3 = styled(Wrapper) `
1286
- .${calendarChartClassNames.calendarYear} {
1287
- display: flex;
1288
- margin-bottom: 16px;
1289
- }
1290
-
1291
- .${calendarChartClassNames.calendarYearTitle} {
1292
- display: inline-flex;
1293
- align-items: flex-end;
1294
- height: ${headerHeight};
1295
- margin-bottom: 4px;
1296
- font-weight: bold;
1297
- }
1298
-
1299
- .${calendarChartClassNames.calendarHeader} {
1300
- height: ${headerHeight};
1301
- margin-bottom: 4px;
1302
- position: relative;
1303
- display: flex;
1304
- }
1305
-
1306
- .${calendarChartClassNames.calendarMonth} {
1307
- font-size: 14px;
1308
- bottom: 0;
1309
- position: absolute;
1310
- }
1311
-
1312
- .${calendarChartClassNames.calendarAxis} {
1313
- display: flex;
1314
- flex-direction: column;
1315
- margin-right: 10px;
1316
- }
1317
-
1318
- .${calendarChartClassNames.calendarWeekDay} {
1319
- font-size: 12px;
1320
- display: inline-flex;
1321
- align-items: center;
1322
- justify-content: flex-end;
1323
- }
1324
-
1325
- .${calendarChartClassNames.calendarDays} {
1326
- position: relative;
1327
- }
1328
-
1329
- .${calendarChartClassNames.calendarDay} {
1330
- position: absolute;
1331
- }
1285
+ const SvgWrapper$3 = styled(Wrapper) `
1286
+ .${calendarChartClassNames.calendarYear} {
1287
+ display: flex;
1288
+ margin-bottom: 16px;
1289
+ }
1290
+
1291
+ .${calendarChartClassNames.calendarYearTitle} {
1292
+ display: inline-flex;
1293
+ align-items: flex-end;
1294
+ height: ${headerHeight};
1295
+ margin-bottom: 4px;
1296
+ font-weight: bold;
1297
+ }
1298
+
1299
+ .${calendarChartClassNames.calendarHeader} {
1300
+ height: ${headerHeight};
1301
+ margin-bottom: 4px;
1302
+ position: relative;
1303
+ display: flex;
1304
+ }
1305
+
1306
+ .${calendarChartClassNames.calendarMonth} {
1307
+ font-size: 14px;
1308
+ bottom: 0;
1309
+ position: absolute;
1310
+ }
1311
+
1312
+ .${calendarChartClassNames.calendarAxis} {
1313
+ display: flex;
1314
+ flex-direction: column;
1315
+ margin-right: 10px;
1316
+ }
1317
+
1318
+ .${calendarChartClassNames.calendarWeekDay} {
1319
+ font-size: 12px;
1320
+ display: inline-flex;
1321
+ align-items: center;
1322
+ justify-content: flex-end;
1323
+ }
1324
+
1325
+ .${calendarChartClassNames.calendarDays} {
1326
+ position: relative;
1327
+ }
1328
+
1329
+ .${calendarChartClassNames.calendarDay} {
1330
+ position: absolute;
1331
+ }
1332
1332
  `;
1333
1333
 
1334
1334
  const draw$3 = (node, props) => {
@@ -1555,67 +1555,67 @@ const lineChartClassNames = {
1555
1555
  lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
1556
1556
  lineChartMouseLabel: "lineChartMouseLabel",
1557
1557
  };
1558
- const SvgWrapper$2 = styled(Wrapper) `
1559
- .${lineChartClassNames.lineChartYScaleGlobal},
1560
- .${lineChartClassNames.lineChartXScaleGlobal},
1561
- .${lineChartClassNames.lineChartGridGlobal} {
1562
- shape-rendering: crispEdges;
1563
- }
1564
-
1565
- .${lineChartClassNames.lineChartLinesGlobal} {
1566
- fill: none;
1567
- stroke: steelblue;
1568
- stroke-width: 1.5px;
1569
- stroke-linejoin: round;
1570
- stroke-linecap: round;
1571
- }
1572
-
1573
- .${lineChartClassNames.lineChartArea} {
1574
- fill-opacity: 0.24;
1575
- }
1576
-
1577
- .${lineChartClassNames.lineChartGridLineX},
1578
- .${lineChartClassNames.lineChartGridLineY},
1579
- .${lineChartClassNames.lineChartMouseLine} {
1580
- stroke: rgba(149, 149, 149, 0.24);
1581
- }
1582
-
1583
- .${lineChartClassNames.lineChartMouseLine},
1584
- .${lineChartClassNames.lineChartMouseCircle} {
1585
- transition: opacity linear 200ms;
1586
- pointer-events: none;
1587
- stroke-width: 1px;
1588
- }
1589
-
1590
- .${lineChartClassNames.lineChartDot} {
1591
- stroke: #fff;
1592
- stroke-width: 2px;
1593
- }
1594
-
1595
- .${lineChartClassNames.lineChartMouseLine} {
1596
- shape-rendering: crispEdges;
1597
- }
1598
-
1599
- .${lineChartClassNames.lineChartMouseRect} {
1600
- fill: none;
1601
- pointer-events: all;
1602
- }
1558
+ const SvgWrapper$2 = styled(Wrapper) `
1559
+ .${lineChartClassNames.lineChartYScaleGlobal},
1560
+ .${lineChartClassNames.lineChartXScaleGlobal},
1561
+ .${lineChartClassNames.lineChartGridGlobal} {
1562
+ shape-rendering: crispEdges;
1563
+ }
1564
+
1565
+ .${lineChartClassNames.lineChartLinesGlobal} {
1566
+ fill: none;
1567
+ stroke: steelblue;
1568
+ stroke-width: 1.5px;
1569
+ stroke-linejoin: round;
1570
+ stroke-linecap: round;
1571
+ }
1572
+
1573
+ .${lineChartClassNames.lineChartArea} {
1574
+ fill-opacity: 0.24;
1575
+ }
1576
+
1577
+ .${lineChartClassNames.lineChartGridLineX},
1578
+ .${lineChartClassNames.lineChartGridLineY},
1579
+ .${lineChartClassNames.lineChartMouseLine} {
1580
+ stroke: rgba(149, 149, 149, 0.24);
1581
+ }
1582
+
1583
+ .${lineChartClassNames.lineChartMouseLine},
1584
+ .${lineChartClassNames.lineChartMouseCircle} {
1585
+ transition: opacity linear 200ms;
1586
+ pointer-events: none;
1587
+ stroke-width: 1px;
1588
+ }
1589
+
1590
+ .${lineChartClassNames.lineChartDot} {
1591
+ stroke: #fff;
1592
+ stroke-width: 2px;
1593
+ }
1594
+
1595
+ .${lineChartClassNames.lineChartMouseLine} {
1596
+ shape-rendering: crispEdges;
1597
+ }
1598
+
1599
+ .${lineChartClassNames.lineChartMouseRect} {
1600
+ fill: none;
1601
+ pointer-events: all;
1602
+ }
1603
1603
  `;
1604
- const TooltipStyles$2 = styled.createGlobalStyle `
1605
- .${lineChartClassNames.lineChartMouseLabel} {
1606
- transition: opacity linear 200ms;
1607
- z-index: 100;
1608
-
1609
- .${lineChartClassNames.lineChartLabelFlex} {
1610
- justify-content: flex-start;
1611
- align-items: center;
1612
- pointer-events: none;
1613
- }
1614
-
1615
- .${lineChartClassNames.lineChartLabel} {
1616
- margin: 0 0 0 10px;
1617
- }
1618
- }
1604
+ const TooltipStyles$2 = styled.createGlobalStyle `
1605
+ .${lineChartClassNames.lineChartMouseLabel} {
1606
+ transition: opacity linear 200ms;
1607
+ z-index: 100;
1608
+
1609
+ .${lineChartClassNames.lineChartLabelFlex} {
1610
+ justify-content: flex-start;
1611
+ align-items: center;
1612
+ pointer-events: none;
1613
+ }
1614
+
1615
+ .${lineChartClassNames.lineChartLabel} {
1616
+ margin: 0 0 0 10px;
1617
+ }
1618
+ }
1619
1619
  `;
1620
1620
 
1621
1621
  const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
@@ -1651,17 +1651,17 @@ const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, dr
1651
1651
  }
1652
1652
  };
1653
1653
 
1654
- const LabelContainer = styled.div `
1655
- width: 0;
1656
- height: 0;
1657
- display: flex;
1658
- align-items: flex-end;
1659
- justify-content: center;
1660
- font-size: 12px;
1661
- white-space: nowrap;
1654
+ const LabelContainer = styled.div `
1655
+ width: 0;
1656
+ height: 0;
1657
+ display: flex;
1658
+ align-items: flex-end;
1659
+ justify-content: center;
1660
+ font-size: 12px;
1661
+ white-space: nowrap;
1662
1662
  `;
1663
- const Label = styled.div `
1664
- margin-bottom: 4px;
1663
+ const Label = styled.div `
1664
+ margin-bottom: 4px;
1665
1665
  `;
1666
1666
 
1667
1667
  const labelClassName = "d3-chart-label";
@@ -2307,66 +2307,66 @@ const barChartClassNames = {
2307
2307
  ...labelClassnames,
2308
2308
  ...barChartLinesClassNames,
2309
2309
  };
2310
- const SvgWrapper$1 = styled(Wrapper) `
2311
- display: ${({ selectable }) => selectable && "inline-block"};
2312
- user-select: ${({ selectable }) => selectable && "none"};
2313
- width: ${({ selectable }) => selectable && "auto"};
2314
-
2315
- line {
2316
- stroke-width: 1px;
2317
- shape-rendering: crispEdges;
2318
- }
2319
-
2320
- .${barChartClassNames.barChartGridLineX},
2321
- .${barChartClassNames.barChartGridLineY} {
2322
- stroke: rgba(48, 69, 79, 0.06);
2323
- }
2324
-
2325
- .${barChartClassNames.barChartMouseRect} {
2326
- }
2327
-
2328
- .${barChartClassNames.barChartMouseRect} {
2329
- fill: none;
2330
- pointer-events: all;
2331
- }
2332
-
2333
- .${barChartClassNames.barChartLinesGlobal} {
2334
- stroke-width: 1.5px;
2335
- stroke-linejoin: round;
2336
- stroke-linecap: round;
2337
- }
2338
-
2339
- .${barChartClassNames.barChartLine} {
2340
- shape-rendering: auto;
2341
- }
2342
-
2343
- .${barChartClassNames.barChartArea} {
2344
- fill-opacity: 0.24;
2345
- }
2346
-
2347
- .${barChartClassNames.barChartSelection} {
2348
- position: absolute;
2349
- top: 0;
2350
- width: 0;
2351
- background: rgba(0, 170, 255, 0.06);
2352
- box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2353
- pointer-events: none;
2354
- }
2310
+ const SvgWrapper$1 = styled(Wrapper) `
2311
+ display: ${({ selectable }) => selectable && "inline-block"};
2312
+ user-select: ${({ selectable }) => selectable && "none"};
2313
+ width: ${({ selectable }) => selectable && "auto"};
2314
+
2315
+ line {
2316
+ stroke-width: 1px;
2317
+ shape-rendering: crispEdges;
2318
+ }
2319
+
2320
+ .${barChartClassNames.barChartGridLineX},
2321
+ .${barChartClassNames.barChartGridLineY} {
2322
+ stroke: rgba(48, 69, 79, 0.06);
2323
+ }
2324
+
2325
+ .${barChartClassNames.barChartMouseRect} {
2326
+ }
2327
+
2328
+ .${barChartClassNames.barChartMouseRect} {
2329
+ fill: none;
2330
+ pointer-events: all;
2331
+ }
2332
+
2333
+ .${barChartClassNames.barChartLinesGlobal} {
2334
+ stroke-width: 1.5px;
2335
+ stroke-linejoin: round;
2336
+ stroke-linecap: round;
2337
+ }
2338
+
2339
+ .${barChartClassNames.barChartLine} {
2340
+ shape-rendering: auto;
2341
+ }
2342
+
2343
+ .${barChartClassNames.barChartArea} {
2344
+ fill-opacity: 0.24;
2345
+ }
2346
+
2347
+ .${barChartClassNames.barChartSelection} {
2348
+ position: absolute;
2349
+ top: 0;
2350
+ width: 0;
2351
+ background: rgba(0, 170, 255, 0.06);
2352
+ box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2353
+ pointer-events: none;
2354
+ }
2355
2355
  `;
2356
- const TooltipStyles$1 = styled.createGlobalStyle `
2357
- .${barChartClassNames.barChartMouseTooltip} {
2358
- z-index: 100;
2359
- transition: all linear 144ms;
2360
-
2361
- .${barChartClassNames.barChartTooltipItem} {
2362
- padding: 0.125rem;
2363
- margin-bottom: 4px;
2364
-
2365
- :last-of-type {
2366
- margin-bottom: 0;
2367
- }
2368
- }
2369
- }
2356
+ const TooltipStyles$1 = styled.createGlobalStyle `
2357
+ .${barChartClassNames.barChartMouseTooltip} {
2358
+ z-index: 100;
2359
+ transition: all linear 144ms;
2360
+
2361
+ .${barChartClassNames.barChartTooltipItem} {
2362
+ padding: 0.125rem;
2363
+ margin-bottom: 4px;
2364
+
2365
+ :last-of-type {
2366
+ margin-bottom: 0;
2367
+ }
2368
+ }
2369
+ }
2370
2370
  `;
2371
2371
 
2372
2372
  const useSelection = (node, props) => {
@@ -3206,45 +3206,45 @@ const horizontalBarChartClassNames = {
3206
3206
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
3207
3207
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
3208
3208
  };
3209
- const Table = styled.table `
3210
- width: 100%;
3209
+ const Table = styled.table `
3210
+ width: 100%;
3211
3211
  `;
3212
- const LabelCell = styled.div `
3213
- text-align: right;
3212
+ const LabelCell = styled.div `
3213
+ text-align: right;
3214
3214
  `;
3215
- const BarFlex = styled.div `
3216
- width: 100%;
3217
- display: flex;
3218
- height: 1rem;
3215
+ const BarFlex = styled.div `
3216
+ width: 100%;
3217
+ display: flex;
3218
+ height: 1rem;
3219
3219
  `;
3220
- const BarsTd = styled.td `
3221
- width: 100%;
3222
- position: relative;
3223
- vertical-align: middle;
3220
+ const BarsTd = styled.td `
3221
+ width: 100%;
3222
+ position: relative;
3223
+ vertical-align: middle;
3224
3224
  `;
3225
- const TooltipFlex = styled(TooltipFlex$1) `
3226
- position: absolute;
3227
- top: 0;
3228
- left: 50%;
3229
- transform: translate(-50%, -50%);
3230
- will-change: left, top;
3225
+ const TooltipFlex = styled(TooltipFlex$1) `
3226
+ position: absolute;
3227
+ top: 0;
3228
+ left: 50%;
3229
+ transform: translate(-50%, -50%);
3230
+ will-change: left, top;
3231
3231
  `;
3232
- const StackSumContainer = styled.div `
3233
- position: relative;
3232
+ const StackSumContainer = styled.div `
3233
+ position: relative;
3234
3234
  `;
3235
- const StackSum = styled.div `
3236
- white-space: nowrap;
3237
- position: absolute;
3238
- top: 50%;
3239
- left: 50%;
3240
- transform: translate(0, -50%);
3235
+ const StackSum = styled.div `
3236
+ white-space: nowrap;
3237
+ position: absolute;
3238
+ top: 50%;
3239
+ left: 50%;
3240
+ transform: translate(0, -50%);
3241
3241
  `;
3242
- const StackWrapper = styled.div `
3243
- position: absolute;
3244
- top: 0;
3245
- display: flex;
3246
- justify-content: flex-start;
3247
- height: 100%;
3242
+ const StackWrapper = styled.div `
3243
+ position: absolute;
3244
+ top: 0;
3245
+ display: flex;
3246
+ justify-content: flex-start;
3247
+ height: 100%;
3248
3248
  `;
3249
3249
 
3250
3250
  const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
@@ -3296,10 +3296,10 @@ const useStackWrapper = (stackedTooltip) => {
3296
3296
  : ({ children }) => (jsxRuntime.jsx(react.Fragment, { children: children })), [stackedTooltip]);
3297
3297
  };
3298
3298
 
3299
- const BarStyled = styled.div `
3300
- position: relative;
3301
- display: inline-flex;
3302
- height: 100%;
3299
+ const BarStyled = styled.div `
3300
+ position: relative;
3301
+ display: inline-flex;
3302
+ height: 100%;
3303
3303
  `;
3304
3304
 
3305
3305
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -3316,23 +3316,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
3316
3316
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
3317
3317
  };
3318
3318
 
3319
- const TickTd = styled.td `
3320
- position: relative;
3319
+ const TickTd = styled.td `
3320
+ position: relative;
3321
3321
  `;
3322
- const Ticks = styled.div `
3323
- position: relative;
3324
- height: 1rem;
3322
+ const Ticks = styled.div `
3323
+ position: relative;
3324
+ height: 1rem;
3325
3325
  `;
3326
- const Tick = styled.div `
3327
- white-space: nowrap;
3328
- width: 0;
3329
- height: 0;
3330
- position: absolute;
3331
- top: 50%;
3332
- transform: translateY(-50%);
3333
- display: flex;
3334
- align-items: center;
3335
- justify-content: center;
3326
+ const Tick = styled.div `
3327
+ white-space: nowrap;
3328
+ width: 0;
3329
+ height: 0;
3330
+ position: absolute;
3331
+ top: 50%;
3332
+ transform: translateY(-50%);
3333
+ display: flex;
3334
+ align-items: center;
3335
+ justify-content: center;
3336
3336
  `;
3337
3337
 
3338
3338
  const hundred = 100;
@@ -3431,29 +3431,29 @@ const bubbleChartClassNames = {
3431
3431
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
3432
3432
  bubbleChartTip: "bubbleChartTip",
3433
3433
  };
3434
- const SvgWrapper = styled(Wrapper) `
3435
- .${bubbleChartClassNames.bubbleChartYAxis},
3436
- .${bubbleChartClassNames.bubbleChartXAxis},
3437
- .${bubbleChartClassNames.bubbleChartGridGlobal} {
3438
- shape-rendering: crispEdges;
3439
- }
3440
-
3441
- .${bubbleChartClassNames.bubbleChartGridLineX},
3442
- .${bubbleChartClassNames.bubbleChartGridLineY} {
3443
- stroke: rgba(149, 149, 149, 0.24);
3444
- }
3445
-
3446
- .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3447
- font-size: 10px;
3448
- }
3434
+ const SvgWrapper = styled(Wrapper) `
3435
+ .${bubbleChartClassNames.bubbleChartYAxis},
3436
+ .${bubbleChartClassNames.bubbleChartXAxis},
3437
+ .${bubbleChartClassNames.bubbleChartGridGlobal} {
3438
+ shape-rendering: crispEdges;
3439
+ }
3440
+
3441
+ .${bubbleChartClassNames.bubbleChartGridLineX},
3442
+ .${bubbleChartClassNames.bubbleChartGridLineY} {
3443
+ stroke: rgba(149, 149, 149, 0.24);
3444
+ }
3445
+
3446
+ .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3447
+ font-size: 10px;
3448
+ }
3449
3449
  `;
3450
- const TooltipStyles = styled.createGlobalStyle `
3451
- .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3452
- position: absolute;
3453
- transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3454
- pointer-events: none;
3455
- z-index: 1;
3456
- }
3450
+ const TooltipStyles = styled.createGlobalStyle `
3451
+ .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3452
+ position: absolute;
3453
+ transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3454
+ pointer-events: none;
3455
+ z-index: 1;
3456
+ }
3457
3457
  `;
3458
3458
 
3459
3459
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -3490,14 +3490,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
3490
3490
  }
3491
3491
  };
3492
3492
 
3493
- const Tooltip = styled.div `
3494
- width: 0;
3495
- height: 0;
3496
- display: flex;
3497
- align-items: flex-end;
3498
- justify-content: center;
3499
- font-size: 12px;
3500
- white-space: nowrap;
3493
+ const Tooltip = styled.div `
3494
+ width: 0;
3495
+ height: 0;
3496
+ display: flex;
3497
+ align-items: flex-end;
3498
+ justify-content: center;
3499
+ font-size: 12px;
3500
+ white-space: nowrap;
3501
3501
  `;
3502
3502
 
3503
3503
  const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {