@evergis/charts 3.1.16 → 3.1.18

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) => {
@@ -646,21 +646,21 @@ const pieChartclassNames = {
646
646
  pieTooltipColorBox: 'pieTooltipColorBox',
647
647
  pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
648
648
  };
649
- const SvgWrapper$4 = styled(Wrapper) `
650
- .${pieChartclassNames.pieSliceLabel} {
651
- fill: #4a4a4a;
652
- }
653
- .${pieChartclassNames.pieRadialLabel} {
654
- position: absolute;
655
- max-width: 128px;
656
- }
657
- .${pieChartclassNames.pieRadialLink} {
658
- stroke: #000;
659
- }
660
- .${pieChartclassNames.pieFullChartTooltipCircle} {
661
- fill: transparent;
662
- cursor: pointer;
663
- }
649
+ const SvgWrapper$4 = styled(Wrapper) `
650
+ .${pieChartclassNames.pieSliceLabel} {
651
+ fill: #4a4a4a;
652
+ }
653
+ .${pieChartclassNames.pieRadialLabel} {
654
+ position: absolute;
655
+ max-width: 128px;
656
+ }
657
+ .${pieChartclassNames.pieRadialLink} {
658
+ stroke: #000;
659
+ }
660
+ .${pieChartclassNames.pieFullChartTooltipCircle} {
661
+ fill: transparent;
662
+ cursor: pointer;
663
+ }
664
664
  `;
665
665
 
666
666
  const getMidFactor = (d) => d.startAngle + (d.endAngle - d.startAngle) / 2 < Math.PI ? 1 : -1;
@@ -751,90 +751,90 @@ const drawRadialLabels = ({ arc, enableRadialLabels, global, node, radius, dataR
751
751
  }
752
752
  };
753
753
 
754
- const TooltipFlex$1 = styled.div `
755
- width: 0;
756
- height: 0;
757
- display: flex;
758
- align-items: flex-end;
759
- justify-content: center;
760
- pointer-events: none;
761
- white-space: nowrap;
754
+ const TooltipFlex$1 = styled.div `
755
+ width: 0;
756
+ height: 0;
757
+ display: flex;
758
+ align-items: flex-end;
759
+ justify-content: center;
760
+ pointer-events: none;
761
+ white-space: nowrap;
762
762
  `;
763
763
  const LabelFlex = styled(TooltipFlex$1) ``;
764
- const LabelFlexCenter = styled(LabelFlex) `
765
- align-items: center;
764
+ const LabelFlexCenter = styled(LabelFlex) `
765
+ align-items: center;
766
766
  `;
767
- const TooltipContainer = styled.div `
768
- position: relative;
769
- font-size: 11px;
770
- color: #fff;
771
- margin-bottom: 8px;
772
- padding: 4px 6px;
773
- background-color: rgba(48, 69, 79, 1);
774
- border-radius: 4px;
775
- box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
776
-
777
- :before {
778
- content: '';
779
- position: absolute;
780
- bottom: 0;
781
- left: 50%;
782
- transform: translate(-50%, 100%);
783
- width: 0;
784
- height: 0;
785
- border-style: solid;
786
- border-width: 4px 3px 0 3px;
787
- border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
788
- }
767
+ const TooltipContainer = styled.div `
768
+ position: relative;
769
+ font-size: 11px;
770
+ color: #fff;
771
+ margin-bottom: 8px;
772
+ padding: 4px 6px;
773
+ background-color: rgba(48, 69, 79, 1);
774
+ border-radius: 4px;
775
+ box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
776
+
777
+ :before {
778
+ content: '';
779
+ position: absolute;
780
+ bottom: 0;
781
+ left: 50%;
782
+ transform: translate(-50%, 100%);
783
+ width: 0;
784
+ height: 0;
785
+ border-style: solid;
786
+ border-width: 4px 3px 0 3px;
787
+ border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
788
+ }
789
789
  `;
790
- const TooltipGroupName = styled.div `
791
- font-size: 14px;
792
- margin-bottom: 6px;
790
+ const TooltipGroupName = styled.div `
791
+ font-size: 14px;
792
+ margin-bottom: 6px;
793
793
  `;
794
- const TooltipItem = styled.div `
795
- display: flex;
796
- align-items: center;
797
- margin-bottom: 0.25rem;
798
-
799
- &:last-of-type {
800
- margin-bottom: 0;
801
- }
794
+ const TooltipItem = styled.div `
795
+ display: flex;
796
+ align-items: center;
797
+ margin-bottom: 0.25rem;
798
+
799
+ &:last-of-type {
800
+ margin-bottom: 0;
801
+ }
802
802
  `;
803
- const ColFlex = styled.div `
804
- display: flex;
805
- align-items: center;
806
- margin-right: 4px;
803
+ const ColFlex = styled.div `
804
+ display: flex;
805
+ align-items: center;
806
+ margin-right: 4px;
807
807
  `;
808
- const ColorBox = styled.div `
809
- margin-right: 4px;
810
- width: 10px;
811
- height: 10px;
812
- border-radius: 2px;
808
+ const ColorBox = styled.div `
809
+ margin-right: 4px;
810
+ width: 10px;
811
+ height: 10px;
812
+ border-radius: 2px;
813
813
  `;
814
- const ColorLine = styled(ColorBox) `
815
- height: 2px;
816
- border-radius: 0;
814
+ const ColorLine = styled(ColorBox) `
815
+ height: 2px;
816
+ border-radius: 0;
817
817
  `;
818
- const Name = styled.div `
819
- margin-right: 4px;
818
+ const Name = styled.div `
819
+ margin-right: 4px;
820
820
  `;
821
- const Value = styled.div `
822
- text-align: right;
823
- flex-shrink: 0;
824
- flex-grow: 1;
821
+ const Value = styled.div `
822
+ text-align: right;
823
+ flex-shrink: 0;
824
+ flex-grow: 1;
825
825
  `;
826
- const Label$1 = styled.div `
827
- position: relative;
828
- font-size: 11px;
829
- color: #fff;
830
- font-weight: bold;
831
- letter-spacing: 0.52px;
826
+ const Label$1 = styled.div `
827
+ position: relative;
828
+ font-size: 11px;
829
+ color: #fff;
830
+ font-weight: bold;
831
+ letter-spacing: 0.52px;
832
832
  `;
833
- const LabelTop = styled(Label$1) `
834
- top: 6px;
833
+ const LabelTop = styled(Label$1) `
834
+ top: 6px;
835
835
  `;
836
- const LabelBottom = styled(Label$1) `
837
- bottom: 6px;
836
+ const LabelBottom = styled(Label$1) `
837
+ bottom: 6px;
838
838
  `;
839
839
 
840
840
  const drawTooltip$3 = ({ fullChartTooltip, global, tooltipRoot, data, tooltipClassName, tooltipBind, renderTooltip, arc, allSlices, tooltipStyle, width, height, radius, }) => {
@@ -1223,53 +1223,53 @@ const calendarChartClassNames = {
1223
1223
  ...legendClassNames,
1224
1224
  };
1225
1225
  const headerHeight = "20px";
1226
- const SvgWrapper$3 = styled(Wrapper) `
1227
- .${calendarChartClassNames.calendarYear} {
1228
- display: flex;
1229
- margin-bottom: 16px;
1230
- }
1231
-
1232
- .${calendarChartClassNames.calendarYearTitle} {
1233
- display: inline-flex;
1234
- align-items: flex-end;
1235
- height: ${headerHeight};
1236
- margin-bottom: 4px;
1237
- font-weight: bold;
1238
- }
1239
-
1240
- .${calendarChartClassNames.calendarHeader} {
1241
- height: ${headerHeight};
1242
- margin-bottom: 4px;
1243
- position: relative;
1244
- display: flex;
1245
- }
1246
-
1247
- .${calendarChartClassNames.calendarMonth} {
1248
- font-size: 14px;
1249
- bottom: 0;
1250
- position: absolute;
1251
- }
1252
-
1253
- .${calendarChartClassNames.calendarAxis} {
1254
- display: flex;
1255
- flex-direction: column;
1256
- margin-right: 10px;
1257
- }
1258
-
1259
- .${calendarChartClassNames.calendarWeekDay} {
1260
- font-size: 12px;
1261
- display: inline-flex;
1262
- align-items: center;
1263
- justify-content: flex-end;
1264
- }
1265
-
1266
- .${calendarChartClassNames.calendarDays} {
1267
- position: relative;
1268
- }
1269
-
1270
- .${calendarChartClassNames.calendarDay} {
1271
- position: absolute;
1272
- }
1226
+ const SvgWrapper$3 = styled(Wrapper) `
1227
+ .${calendarChartClassNames.calendarYear} {
1228
+ display: flex;
1229
+ margin-bottom: 16px;
1230
+ }
1231
+
1232
+ .${calendarChartClassNames.calendarYearTitle} {
1233
+ display: inline-flex;
1234
+ align-items: flex-end;
1235
+ height: ${headerHeight};
1236
+ margin-bottom: 4px;
1237
+ font-weight: bold;
1238
+ }
1239
+
1240
+ .${calendarChartClassNames.calendarHeader} {
1241
+ height: ${headerHeight};
1242
+ margin-bottom: 4px;
1243
+ position: relative;
1244
+ display: flex;
1245
+ }
1246
+
1247
+ .${calendarChartClassNames.calendarMonth} {
1248
+ font-size: 14px;
1249
+ bottom: 0;
1250
+ position: absolute;
1251
+ }
1252
+
1253
+ .${calendarChartClassNames.calendarAxis} {
1254
+ display: flex;
1255
+ flex-direction: column;
1256
+ margin-right: 10px;
1257
+ }
1258
+
1259
+ .${calendarChartClassNames.calendarWeekDay} {
1260
+ font-size: 12px;
1261
+ display: inline-flex;
1262
+ align-items: center;
1263
+ justify-content: flex-end;
1264
+ }
1265
+
1266
+ .${calendarChartClassNames.calendarDays} {
1267
+ position: relative;
1268
+ }
1269
+
1270
+ .${calendarChartClassNames.calendarDay} {
1271
+ position: absolute;
1272
+ }
1273
1273
  `;
1274
1274
 
1275
1275
  const draw$3 = (node, props) => {
@@ -1496,67 +1496,67 @@ const lineChartClassNames = {
1496
1496
  lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
1497
1497
  lineChartMouseLabel: "lineChartMouseLabel",
1498
1498
  };
1499
- const SvgWrapper$2 = styled(Wrapper) `
1500
- .${lineChartClassNames.lineChartYScaleGlobal},
1501
- .${lineChartClassNames.lineChartXScaleGlobal},
1502
- .${lineChartClassNames.lineChartGridGlobal} {
1503
- shape-rendering: crispEdges;
1504
- }
1505
-
1506
- .${lineChartClassNames.lineChartLinesGlobal} {
1507
- fill: none;
1508
- stroke: steelblue;
1509
- stroke-width: 1.5px;
1510
- stroke-linejoin: round;
1511
- stroke-linecap: round;
1512
- }
1513
-
1514
- .${lineChartClassNames.lineChartArea} {
1515
- fill-opacity: 0.24;
1516
- }
1517
-
1518
- .${lineChartClassNames.lineChartGridLineX},
1519
- .${lineChartClassNames.lineChartGridLineY},
1520
- .${lineChartClassNames.lineChartMouseLine} {
1521
- stroke: rgba(149, 149, 149, 0.24);
1522
- }
1523
-
1524
- .${lineChartClassNames.lineChartMouseLine},
1525
- .${lineChartClassNames.lineChartMouseCircle} {
1526
- transition: opacity linear 200ms;
1527
- pointer-events: none;
1528
- stroke-width: 1px;
1529
- }
1530
-
1531
- .${lineChartClassNames.lineChartDot} {
1532
- stroke: #fff;
1533
- stroke-width: 2px;
1534
- }
1535
-
1536
- .${lineChartClassNames.lineChartMouseLine} {
1537
- shape-rendering: crispEdges;
1538
- }
1539
-
1540
- .${lineChartClassNames.lineChartMouseRect} {
1541
- fill: none;
1542
- pointer-events: all;
1543
- }
1499
+ const SvgWrapper$2 = styled(Wrapper) `
1500
+ .${lineChartClassNames.lineChartYScaleGlobal},
1501
+ .${lineChartClassNames.lineChartXScaleGlobal},
1502
+ .${lineChartClassNames.lineChartGridGlobal} {
1503
+ shape-rendering: crispEdges;
1504
+ }
1505
+
1506
+ .${lineChartClassNames.lineChartLinesGlobal} {
1507
+ fill: none;
1508
+ stroke: steelblue;
1509
+ stroke-width: 1.5px;
1510
+ stroke-linejoin: round;
1511
+ stroke-linecap: round;
1512
+ }
1513
+
1514
+ .${lineChartClassNames.lineChartArea} {
1515
+ fill-opacity: 0.24;
1516
+ }
1517
+
1518
+ .${lineChartClassNames.lineChartGridLineX},
1519
+ .${lineChartClassNames.lineChartGridLineY},
1520
+ .${lineChartClassNames.lineChartMouseLine} {
1521
+ stroke: rgba(149, 149, 149, 0.24);
1522
+ }
1523
+
1524
+ .${lineChartClassNames.lineChartMouseLine},
1525
+ .${lineChartClassNames.lineChartMouseCircle} {
1526
+ transition: opacity linear 200ms;
1527
+ pointer-events: none;
1528
+ stroke-width: 1px;
1529
+ }
1530
+
1531
+ .${lineChartClassNames.lineChartDot} {
1532
+ stroke: #fff;
1533
+ stroke-width: 2px;
1534
+ }
1535
+
1536
+ .${lineChartClassNames.lineChartMouseLine} {
1537
+ shape-rendering: crispEdges;
1538
+ }
1539
+
1540
+ .${lineChartClassNames.lineChartMouseRect} {
1541
+ fill: none;
1542
+ pointer-events: all;
1543
+ }
1544
1544
  `;
1545
- const TooltipStyles$2 = styled.createGlobalStyle `
1546
- .${lineChartClassNames.lineChartMouseLabel} {
1547
- transition: opacity linear 200ms;
1548
- z-index: 100;
1549
-
1550
- .${lineChartClassNames.lineChartLabelFlex} {
1551
- justify-content: flex-start;
1552
- align-items: center;
1553
- pointer-events: none;
1554
- }
1555
-
1556
- .${lineChartClassNames.lineChartLabel} {
1557
- margin: 0 0 0 10px;
1558
- }
1559
- }
1545
+ const TooltipStyles$2 = styled.createGlobalStyle `
1546
+ .${lineChartClassNames.lineChartMouseLabel} {
1547
+ transition: opacity linear 200ms;
1548
+ z-index: 100;
1549
+
1550
+ .${lineChartClassNames.lineChartLabelFlex} {
1551
+ justify-content: flex-start;
1552
+ align-items: center;
1553
+ pointer-events: none;
1554
+ }
1555
+
1556
+ .${lineChartClassNames.lineChartLabel} {
1557
+ margin: 0 0 0 10px;
1558
+ }
1559
+ }
1560
1560
  `;
1561
1561
 
1562
1562
  const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
@@ -1592,17 +1592,17 @@ const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, dr
1592
1592
  }
1593
1593
  };
1594
1594
 
1595
- const LabelContainer = styled.div `
1596
- width: 0;
1597
- height: 0;
1598
- display: flex;
1599
- align-items: flex-end;
1600
- justify-content: center;
1601
- font-size: 12px;
1602
- white-space: nowrap;
1595
+ const LabelContainer = styled.div `
1596
+ width: 0;
1597
+ height: 0;
1598
+ display: flex;
1599
+ align-items: flex-end;
1600
+ justify-content: center;
1601
+ font-size: 12px;
1602
+ white-space: nowrap;
1603
1603
  `;
1604
- const Label = styled.div `
1605
- margin-bottom: 4px;
1604
+ const Label = styled.div `
1605
+ margin-bottom: 4px;
1606
1606
  `;
1607
1607
 
1608
1608
  const labelClassName = "d3-chart-label";
@@ -2191,66 +2191,66 @@ const barChartClassNames = {
2191
2191
  ...labelClassnames,
2192
2192
  ...barChartLinesClassNames,
2193
2193
  };
2194
- const SvgWrapper$1 = styled(Wrapper) `
2195
- display: ${({ selectable }) => selectable && "inline-block"};
2196
- user-select: ${({ selectable }) => selectable && "none"};
2197
- width: ${({ selectable }) => selectable && "auto"};
2198
-
2199
- line {
2200
- stroke-width: 1px;
2201
- shape-rendering: crispEdges;
2202
- }
2203
-
2204
- .${barChartClassNames.barChartGridLineX},
2205
- .${barChartClassNames.barChartGridLineY} {
2206
- stroke: rgba(48, 69, 79, 0.06);
2207
- }
2208
-
2209
- .${barChartClassNames.barChartMouseRect} {
2210
- }
2211
-
2212
- .${barChartClassNames.barChartMouseRect} {
2213
- fill: none;
2214
- pointer-events: all;
2215
- }
2216
-
2217
- .${barChartClassNames.barChartLinesGlobal} {
2218
- stroke-width: 1.5px;
2219
- stroke-linejoin: round;
2220
- stroke-linecap: round;
2221
- }
2222
-
2223
- .${barChartClassNames.barChartLine} {
2224
- shape-rendering: auto;
2225
- }
2226
-
2227
- .${barChartClassNames.barChartArea} {
2228
- fill-opacity: 0.24;
2229
- }
2230
-
2231
- .${barChartClassNames.barChartSelection} {
2232
- position: absolute;
2233
- top: 0;
2234
- width: 0;
2235
- background: rgba(0, 170, 255, 0.06);
2236
- box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2237
- pointer-events: none;
2238
- }
2194
+ const SvgWrapper$1 = styled(Wrapper) `
2195
+ display: ${({ selectable }) => selectable && "inline-block"};
2196
+ user-select: ${({ selectable }) => selectable && "none"};
2197
+ width: ${({ selectable }) => selectable && "auto"};
2198
+
2199
+ line {
2200
+ stroke-width: 1px;
2201
+ shape-rendering: crispEdges;
2202
+ }
2203
+
2204
+ .${barChartClassNames.barChartGridLineX},
2205
+ .${barChartClassNames.barChartGridLineY} {
2206
+ stroke: rgba(48, 69, 79, 0.06);
2207
+ }
2208
+
2209
+ .${barChartClassNames.barChartMouseRect} {
2210
+ }
2211
+
2212
+ .${barChartClassNames.barChartMouseRect} {
2213
+ fill: none;
2214
+ pointer-events: all;
2215
+ }
2216
+
2217
+ .${barChartClassNames.barChartLinesGlobal} {
2218
+ stroke-width: 1.5px;
2219
+ stroke-linejoin: round;
2220
+ stroke-linecap: round;
2221
+ }
2222
+
2223
+ .${barChartClassNames.barChartLine} {
2224
+ shape-rendering: auto;
2225
+ }
2226
+
2227
+ .${barChartClassNames.barChartArea} {
2228
+ fill-opacity: 0.24;
2229
+ }
2230
+
2231
+ .${barChartClassNames.barChartSelection} {
2232
+ position: absolute;
2233
+ top: 0;
2234
+ width: 0;
2235
+ background: rgba(0, 170, 255, 0.06);
2236
+ box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2237
+ pointer-events: none;
2238
+ }
2239
2239
  `;
2240
- const TooltipStyles$1 = styled.createGlobalStyle `
2241
- .${barChartClassNames.barChartMouseTooltip} {
2242
- z-index: 100;
2243
- transition: all linear 144ms;
2244
-
2245
- .${barChartClassNames.barChartTooltipItem} {
2246
- padding: 0.125rem;
2247
- margin-bottom: 4px;
2248
-
2249
- :last-of-type {
2250
- margin-bottom: 0;
2251
- }
2252
- }
2253
- }
2240
+ const TooltipStyles$1 = styled.createGlobalStyle `
2241
+ .${barChartClassNames.barChartMouseTooltip} {
2242
+ z-index: 100;
2243
+ transition: all linear 144ms;
2244
+
2245
+ .${barChartClassNames.barChartTooltipItem} {
2246
+ padding: 0.125rem;
2247
+ margin-bottom: 4px;
2248
+
2249
+ :last-of-type {
2250
+ margin-bottom: 0;
2251
+ }
2252
+ }
2253
+ }
2254
2254
  `;
2255
2255
 
2256
2256
  const useSelection = (node, props) => {
@@ -3058,45 +3058,45 @@ const horizontalBarChartClassNames = {
3058
3058
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
3059
3059
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
3060
3060
  };
3061
- const Table = styled.table `
3062
- width: 100%;
3061
+ const Table = styled.table `
3062
+ width: 100%;
3063
3063
  `;
3064
- const LabelCell = styled.div `
3065
- text-align: right;
3064
+ const LabelCell = styled.div `
3065
+ text-align: right;
3066
3066
  `;
3067
- const BarFlex = styled.div `
3068
- width: 100%;
3069
- display: flex;
3070
- height: 1rem;
3067
+ const BarFlex = styled.div `
3068
+ width: 100%;
3069
+ display: flex;
3070
+ height: 1rem;
3071
3071
  `;
3072
- const BarsTd = styled.td `
3073
- width: 100%;
3074
- position: relative;
3075
- vertical-align: middle;
3072
+ const BarsTd = styled.td `
3073
+ width: 100%;
3074
+ position: relative;
3075
+ vertical-align: middle;
3076
3076
  `;
3077
- const TooltipFlex = styled(TooltipFlex$1) `
3078
- position: absolute;
3079
- top: 0;
3080
- left: 50%;
3081
- transform: translate(-50%, -50%);
3082
- will-change: left, top;
3077
+ const TooltipFlex = styled(TooltipFlex$1) `
3078
+ position: absolute;
3079
+ top: 0;
3080
+ left: 50%;
3081
+ transform: translate(-50%, -50%);
3082
+ will-change: left, top;
3083
3083
  `;
3084
- const StackSumContainer = styled.div `
3085
- position: relative;
3084
+ const StackSumContainer = styled.div `
3085
+ position: relative;
3086
3086
  `;
3087
- const StackSum = styled.div `
3088
- white-space: nowrap;
3089
- position: absolute;
3090
- top: 50%;
3091
- left: 50%;
3092
- transform: translate(0, -50%);
3087
+ const StackSum = styled.div `
3088
+ white-space: nowrap;
3089
+ position: absolute;
3090
+ top: 50%;
3091
+ left: 50%;
3092
+ transform: translate(0, -50%);
3093
3093
  `;
3094
- const StackWrapper = styled.div `
3095
- position: absolute;
3096
- top: 0;
3097
- display: flex;
3098
- justify-content: flex-start;
3099
- height: 100%;
3094
+ const StackWrapper = styled.div `
3095
+ position: absolute;
3096
+ top: 0;
3097
+ display: flex;
3098
+ justify-content: flex-start;
3099
+ height: 100%;
3100
3100
  `;
3101
3101
 
3102
3102
  const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
@@ -3148,10 +3148,10 @@ const useStackWrapper = (stackedTooltip) => {
3148
3148
  : ({ children }) => (jsxRuntime.jsx(react.Fragment, { children: children })), [stackedTooltip]);
3149
3149
  };
3150
3150
 
3151
- const BarStyled = styled.div `
3152
- position: relative;
3153
- display: inline-flex;
3154
- height: 100%;
3151
+ const BarStyled = styled.div `
3152
+ position: relative;
3153
+ display: inline-flex;
3154
+ height: 100%;
3155
3155
  `;
3156
3156
 
3157
3157
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -3168,23 +3168,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
3168
3168
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
3169
3169
  };
3170
3170
 
3171
- const TickTd = styled.td `
3172
- position: relative;
3171
+ const TickTd = styled.td `
3172
+ position: relative;
3173
3173
  `;
3174
- const Ticks = styled.div `
3175
- position: relative;
3176
- height: 1rem;
3174
+ const Ticks = styled.div `
3175
+ position: relative;
3176
+ height: 1rem;
3177
3177
  `;
3178
- const Tick = styled.div `
3179
- white-space: nowrap;
3180
- width: 0;
3181
- height: 0;
3182
- position: absolute;
3183
- top: 50%;
3184
- transform: translateY(-50%);
3185
- display: flex;
3186
- align-items: center;
3187
- justify-content: center;
3178
+ const Tick = styled.div `
3179
+ white-space: nowrap;
3180
+ width: 0;
3181
+ height: 0;
3182
+ position: absolute;
3183
+ top: 50%;
3184
+ transform: translateY(-50%);
3185
+ display: flex;
3186
+ align-items: center;
3187
+ justify-content: center;
3188
3188
  `;
3189
3189
 
3190
3190
  const hundred = 100;
@@ -3283,29 +3283,29 @@ const bubbleChartClassNames = {
3283
3283
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
3284
3284
  bubbleChartTip: "bubbleChartTip",
3285
3285
  };
3286
- const SvgWrapper = styled(Wrapper) `
3287
- .${bubbleChartClassNames.bubbleChartYAxis},
3288
- .${bubbleChartClassNames.bubbleChartXAxis},
3289
- .${bubbleChartClassNames.bubbleChartGridGlobal} {
3290
- shape-rendering: crispEdges;
3291
- }
3292
-
3293
- .${bubbleChartClassNames.bubbleChartGridLineX},
3294
- .${bubbleChartClassNames.bubbleChartGridLineY} {
3295
- stroke: rgba(149, 149, 149, 0.24);
3296
- }
3297
-
3298
- .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3299
- font-size: 10px;
3300
- }
3286
+ const SvgWrapper = styled(Wrapper) `
3287
+ .${bubbleChartClassNames.bubbleChartYAxis},
3288
+ .${bubbleChartClassNames.bubbleChartXAxis},
3289
+ .${bubbleChartClassNames.bubbleChartGridGlobal} {
3290
+ shape-rendering: crispEdges;
3291
+ }
3292
+
3293
+ .${bubbleChartClassNames.bubbleChartGridLineX},
3294
+ .${bubbleChartClassNames.bubbleChartGridLineY} {
3295
+ stroke: rgba(149, 149, 149, 0.24);
3296
+ }
3297
+
3298
+ .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3299
+ font-size: 10px;
3300
+ }
3301
3301
  `;
3302
- const TooltipStyles = styled.createGlobalStyle `
3303
- .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3304
- position: absolute;
3305
- transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3306
- pointer-events: none;
3307
- z-index: 1;
3308
- }
3302
+ const TooltipStyles = styled.createGlobalStyle `
3303
+ .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3304
+ position: absolute;
3305
+ transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3306
+ pointer-events: none;
3307
+ z-index: 1;
3308
+ }
3309
3309
  `;
3310
3310
 
3311
3311
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -3342,14 +3342,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
3342
3342
  }
3343
3343
  };
3344
3344
 
3345
- const Tooltip = styled.div `
3346
- width: 0;
3347
- height: 0;
3348
- display: flex;
3349
- align-items: flex-end;
3350
- justify-content: center;
3351
- font-size: 12px;
3352
- white-space: nowrap;
3345
+ const Tooltip = styled.div `
3346
+ width: 0;
3347
+ height: 0;
3348
+ display: flex;
3349
+ align-items: flex-end;
3350
+ justify-content: center;
3351
+ font-size: 12px;
3352
+ white-space: nowrap;
3353
3353
  `;
3354
3354
 
3355
3355
  const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {