@evergis/charts 3.1.15 → 3.1.17

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.
@@ -6,10 +6,10 @@ import ReactDOMServer from 'react-dom/server';
6
6
  import { uniqueId } from 'lodash';
7
7
  import { unmountComponentAtNode, render } from 'react-dom';
8
8
 
9
- const Wrapper = styled.div `
10
- position: relative;
11
- width: 100%;
12
- box-sizing: border-box;
9
+ const Wrapper = styled.div `
10
+ position: relative;
11
+ width: 100%;
12
+ box-sizing: border-box;
13
13
  `;
14
14
 
15
15
  function useNode() {
@@ -107,10 +107,10 @@ const drawMarkers = ({ svg, markers, width, left, top, count, yScale }) => {
107
107
  });
108
108
  };
109
109
 
110
- const SwipeScrollContainer = styled.div `
111
- width: 100%;
112
- overflow: hidden;
113
- user-select: none;
110
+ const SwipeScrollContainer = styled.div `
111
+ width: 100%;
112
+ overflow: hidden;
113
+ user-select: none;
114
114
  `;
115
115
 
116
116
  function animate({ duration, timing, draw, }) {
@@ -262,37 +262,37 @@ const getTranslate$1 = ({ anchor, index, translateX, translateY, }) => {
262
262
  }
263
263
  return `translate(${translateX}px, ${translateY}px)`;
264
264
  };
265
- const Label$2 = styled.div `
266
- display: flex;
267
- align-items: center;
268
- font-size: 12px;
265
+ const Label$2 = styled.div `
266
+ display: flex;
267
+ align-items: center;
268
+ font-size: 12px;
269
269
  `;
270
- const Name$1 = styled.div `
271
- text-align: center;
272
- max-width: 120px;
270
+ const Name$1 = styled.div `
271
+ text-align: center;
272
+ max-width: 120px;
273
273
  `;
274
- const middleBadgeStyles = css `
275
- position: absolute;
276
- top: 50%;
277
- right: 0;
278
- transform: translate(calc(100% + 6px), -50%);
274
+ const middleBadgeStyles = css `
275
+ position: absolute;
276
+ top: 50%;
277
+ right: 0;
278
+ transform: translate(calc(100% + 6px), -50%);
279
279
  `;
280
- const DefaultBadge = styled.div `
281
- display: flex;
282
- align-items: center;
283
- padding: 2px 4px;
284
- border-radius: 4px;
285
- color: rgb(255, 255, 255);
286
- background-color: rgb(144, 197, 61);
287
- margin-left: 8px;
280
+ const DefaultBadge = styled.div `
281
+ display: flex;
282
+ align-items: center;
283
+ padding: 2px 4px;
284
+ border-radius: 4px;
285
+ color: rgb(255, 255, 255);
286
+ background-color: rgb(144, 197, 61);
287
+ margin-left: 8px;
288
288
  `;
289
- const MiddleBadge = styled(DefaultBadge) `
290
- ${middleBadgeStyles}
289
+ const MiddleBadge = styled(DefaultBadge) `
290
+ ${middleBadgeStyles}
291
291
  `;
292
- const BadgePrefix = styled.div `
293
- margin-left: 4px;
294
- font-size: 10px;
295
- color: rgba(255, 255, 255, 0.54);
292
+ const BadgePrefix = styled.div `
293
+ margin-left: 4px;
294
+ font-size: 10px;
295
+ color: rgba(255, 255, 255, 0.54);
296
296
  `;
297
297
 
298
298
  const radarChartclassNames = {
@@ -307,29 +307,29 @@ const radarChartclassNames = {
307
307
  radarLabelBadgePrefix: 'radarLabelBadgePrefix',
308
308
  radarCircle: 'radarCircle',
309
309
  };
310
- const SvgWrapper$5 = styled(Wrapper) `
311
- .${radarChartclassNames.radarAxis} {
312
- path,
313
- line,
314
- circle {
315
- fill: none;
316
- stroke-width: 1px;
317
- stroke: rgba(149, 149, 149, 0.18);
318
- }
319
- }
320
- .${radarChartclassNames.radarAxisText} {
321
- font-size: 12px;
322
- fill-opacity: 0.56;
323
- }
324
- .${radarChartclassNames.radarPolygon} {
325
- fill-opacity: 0.06;
326
- stroke-width: 2px;
327
- fill: rgb(144, 197, 61);
328
- stroke: rgb(144, 197, 61);
329
- }
330
- .${radarChartclassNames.radarCircle} {
331
- fill: rgb(144, 197, 61);
332
- }
310
+ const SvgWrapper$5 = styled(Wrapper) `
311
+ .${radarChartclassNames.radarAxis} {
312
+ path,
313
+ line,
314
+ circle {
315
+ fill: none;
316
+ stroke-width: 1px;
317
+ stroke: rgba(149, 149, 149, 0.18);
318
+ }
319
+ }
320
+ .${radarChartclassNames.radarAxisText} {
321
+ font-size: 12px;
322
+ fill-opacity: 0.56;
323
+ }
324
+ .${radarChartclassNames.radarPolygon} {
325
+ fill-opacity: 0.06;
326
+ stroke-width: 2px;
327
+ fill: rgb(144, 197, 61);
328
+ stroke: rgb(144, 197, 61);
329
+ }
330
+ .${radarChartclassNames.radarCircle} {
331
+ fill: rgb(144, 197, 61);
332
+ }
333
333
  `;
334
334
 
335
335
  const getTranslate = ({ anchor, index, translateX, translateY, }) => {
@@ -351,8 +351,8 @@ const LabelContainer$1 = styled.div.attrs(props => ({
351
351
  style: {
352
352
  transform: getTranslate(props),
353
353
  },
354
- })) `
355
- position: absolute;
354
+ })) `
355
+ position: absolute;
356
356
  `;
357
357
 
358
358
  const degByIndex = (index, count) => {
@@ -625,21 +625,21 @@ const pieChartclassNames = {
625
625
  pieTooltipColorBox: 'pieTooltipColorBox',
626
626
  pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
627
627
  };
628
- const SvgWrapper$4 = styled(Wrapper) `
629
- .${pieChartclassNames.pieSliceLabel} {
630
- fill: #4a4a4a;
631
- }
632
- .${pieChartclassNames.pieRadialLabel} {
633
- position: absolute;
634
- max-width: 128px;
635
- }
636
- .${pieChartclassNames.pieRadialLink} {
637
- stroke: #000;
638
- }
639
- .${pieChartclassNames.pieFullChartTooltipCircle} {
640
- fill: transparent;
641
- cursor: pointer;
642
- }
628
+ const SvgWrapper$4 = styled(Wrapper) `
629
+ .${pieChartclassNames.pieSliceLabel} {
630
+ fill: #4a4a4a;
631
+ }
632
+ .${pieChartclassNames.pieRadialLabel} {
633
+ position: absolute;
634
+ max-width: 128px;
635
+ }
636
+ .${pieChartclassNames.pieRadialLink} {
637
+ stroke: #000;
638
+ }
639
+ .${pieChartclassNames.pieFullChartTooltipCircle} {
640
+ fill: transparent;
641
+ cursor: pointer;
642
+ }
643
643
  `;
644
644
 
645
645
  const getMidFactor = (d) => d.startAngle + (d.endAngle - d.startAngle) / 2 < Math.PI ? 1 : -1;
@@ -730,90 +730,90 @@ const drawRadialLabels = ({ arc, enableRadialLabels, global, node, radius, dataR
730
730
  }
731
731
  };
732
732
 
733
- const TooltipFlex$1 = styled.div `
734
- width: 0;
735
- height: 0;
736
- display: flex;
737
- align-items: flex-end;
738
- justify-content: center;
739
- pointer-events: none;
740
- white-space: nowrap;
733
+ const TooltipFlex$1 = styled.div `
734
+ width: 0;
735
+ height: 0;
736
+ display: flex;
737
+ align-items: flex-end;
738
+ justify-content: center;
739
+ pointer-events: none;
740
+ white-space: nowrap;
741
741
  `;
742
742
  const LabelFlex = styled(TooltipFlex$1) ``;
743
- const LabelFlexCenter = styled(LabelFlex) `
744
- align-items: center;
743
+ const LabelFlexCenter = styled(LabelFlex) `
744
+ align-items: center;
745
745
  `;
746
- const TooltipContainer = styled.div `
747
- position: relative;
748
- font-size: 11px;
749
- color: #fff;
750
- margin-bottom: 8px;
751
- padding: 4px 6px;
752
- background-color: rgba(48, 69, 79, 1);
753
- border-radius: 4px;
754
- box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
755
-
756
- :before {
757
- content: '';
758
- position: absolute;
759
- bottom: 0;
760
- left: 50%;
761
- transform: translate(-50%, 100%);
762
- width: 0;
763
- height: 0;
764
- border-style: solid;
765
- border-width: 4px 3px 0 3px;
766
- border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
767
- }
746
+ const TooltipContainer = styled.div `
747
+ position: relative;
748
+ font-size: 11px;
749
+ color: #fff;
750
+ margin-bottom: 8px;
751
+ padding: 4px 6px;
752
+ background-color: rgba(48, 69, 79, 1);
753
+ border-radius: 4px;
754
+ box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
755
+
756
+ :before {
757
+ content: '';
758
+ position: absolute;
759
+ bottom: 0;
760
+ left: 50%;
761
+ transform: translate(-50%, 100%);
762
+ width: 0;
763
+ height: 0;
764
+ border-style: solid;
765
+ border-width: 4px 3px 0 3px;
766
+ border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
767
+ }
768
768
  `;
769
- const TooltipGroupName = styled.div `
770
- font-size: 14px;
771
- margin-bottom: 6px;
769
+ const TooltipGroupName = styled.div `
770
+ font-size: 14px;
771
+ margin-bottom: 6px;
772
772
  `;
773
- const TooltipItem = styled.div `
774
- display: flex;
775
- align-items: center;
776
- margin-bottom: 0.25rem;
777
-
778
- &:last-of-type {
779
- margin-bottom: 0;
780
- }
773
+ const TooltipItem = styled.div `
774
+ display: flex;
775
+ align-items: center;
776
+ margin-bottom: 0.25rem;
777
+
778
+ &:last-of-type {
779
+ margin-bottom: 0;
780
+ }
781
781
  `;
782
- const ColFlex = styled.div `
783
- display: flex;
784
- align-items: center;
785
- margin-right: 4px;
782
+ const ColFlex = styled.div `
783
+ display: flex;
784
+ align-items: center;
785
+ margin-right: 4px;
786
786
  `;
787
- const ColorBox = styled.div `
788
- margin-right: 4px;
789
- width: 10px;
790
- height: 10px;
791
- border-radius: 2px;
787
+ const ColorBox = styled.div `
788
+ margin-right: 4px;
789
+ width: 10px;
790
+ height: 10px;
791
+ border-radius: 2px;
792
792
  `;
793
- const ColorLine = styled(ColorBox) `
794
- height: 2px;
795
- border-radius: 0;
793
+ const ColorLine = styled(ColorBox) `
794
+ height: 2px;
795
+ border-radius: 0;
796
796
  `;
797
- const Name = styled.div `
798
- margin-right: 4px;
797
+ const Name = styled.div `
798
+ margin-right: 4px;
799
799
  `;
800
- const Value = styled.div `
801
- text-align: right;
802
- flex-shrink: 0;
803
- flex-grow: 1;
800
+ const Value = styled.div `
801
+ text-align: right;
802
+ flex-shrink: 0;
803
+ flex-grow: 1;
804
804
  `;
805
- const Label$1 = styled.div `
806
- position: relative;
807
- font-size: 11px;
808
- color: #fff;
809
- font-weight: bold;
810
- letter-spacing: 0.52px;
805
+ const Label$1 = styled.div `
806
+ position: relative;
807
+ font-size: 11px;
808
+ color: #fff;
809
+ font-weight: bold;
810
+ letter-spacing: 0.52px;
811
811
  `;
812
- const LabelTop = styled(Label$1) `
813
- top: 6px;
812
+ const LabelTop = styled(Label$1) `
813
+ top: 6px;
814
814
  `;
815
- const LabelBottom = styled(Label$1) `
816
- bottom: 6px;
815
+ const LabelBottom = styled(Label$1) `
816
+ bottom: 6px;
817
817
  `;
818
818
 
819
819
  const drawTooltip$3 = ({ fullChartTooltip, global, tooltipRoot, data, tooltipClassName, tooltipBind, renderTooltip, arc, allSlices, tooltipStyle, width, height, radius, }) => {
@@ -1202,53 +1202,53 @@ const calendarChartClassNames = {
1202
1202
  ...legendClassNames,
1203
1203
  };
1204
1204
  const headerHeight = "20px";
1205
- const SvgWrapper$3 = styled(Wrapper) `
1206
- .${calendarChartClassNames.calendarYear} {
1207
- display: flex;
1208
- margin-bottom: 16px;
1209
- }
1210
-
1211
- .${calendarChartClassNames.calendarYearTitle} {
1212
- display: inline-flex;
1213
- align-items: flex-end;
1214
- height: ${headerHeight};
1215
- margin-bottom: 4px;
1216
- font-weight: bold;
1217
- }
1218
-
1219
- .${calendarChartClassNames.calendarHeader} {
1220
- height: ${headerHeight};
1221
- margin-bottom: 4px;
1222
- position: relative;
1223
- display: flex;
1224
- }
1225
-
1226
- .${calendarChartClassNames.calendarMonth} {
1227
- font-size: 14px;
1228
- bottom: 0;
1229
- position: absolute;
1230
- }
1231
-
1232
- .${calendarChartClassNames.calendarAxis} {
1233
- display: flex;
1234
- flex-direction: column;
1235
- margin-right: 10px;
1236
- }
1237
-
1238
- .${calendarChartClassNames.calendarWeekDay} {
1239
- font-size: 12px;
1240
- display: inline-flex;
1241
- align-items: center;
1242
- justify-content: flex-end;
1243
- }
1244
-
1245
- .${calendarChartClassNames.calendarDays} {
1246
- position: relative;
1247
- }
1248
-
1249
- .${calendarChartClassNames.calendarDay} {
1250
- position: absolute;
1251
- }
1205
+ const SvgWrapper$3 = styled(Wrapper) `
1206
+ .${calendarChartClassNames.calendarYear} {
1207
+ display: flex;
1208
+ margin-bottom: 16px;
1209
+ }
1210
+
1211
+ .${calendarChartClassNames.calendarYearTitle} {
1212
+ display: inline-flex;
1213
+ align-items: flex-end;
1214
+ height: ${headerHeight};
1215
+ margin-bottom: 4px;
1216
+ font-weight: bold;
1217
+ }
1218
+
1219
+ .${calendarChartClassNames.calendarHeader} {
1220
+ height: ${headerHeight};
1221
+ margin-bottom: 4px;
1222
+ position: relative;
1223
+ display: flex;
1224
+ }
1225
+
1226
+ .${calendarChartClassNames.calendarMonth} {
1227
+ font-size: 14px;
1228
+ bottom: 0;
1229
+ position: absolute;
1230
+ }
1231
+
1232
+ .${calendarChartClassNames.calendarAxis} {
1233
+ display: flex;
1234
+ flex-direction: column;
1235
+ margin-right: 10px;
1236
+ }
1237
+
1238
+ .${calendarChartClassNames.calendarWeekDay} {
1239
+ font-size: 12px;
1240
+ display: inline-flex;
1241
+ align-items: center;
1242
+ justify-content: flex-end;
1243
+ }
1244
+
1245
+ .${calendarChartClassNames.calendarDays} {
1246
+ position: relative;
1247
+ }
1248
+
1249
+ .${calendarChartClassNames.calendarDay} {
1250
+ position: absolute;
1251
+ }
1252
1252
  `;
1253
1253
 
1254
1254
  const draw$3 = (node, props) => {
@@ -1475,67 +1475,67 @@ const lineChartClassNames = {
1475
1475
  lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
1476
1476
  lineChartMouseLabel: "lineChartMouseLabel",
1477
1477
  };
1478
- const SvgWrapper$2 = styled(Wrapper) `
1479
- .${lineChartClassNames.lineChartYScaleGlobal},
1480
- .${lineChartClassNames.lineChartXScaleGlobal},
1481
- .${lineChartClassNames.lineChartGridGlobal} {
1482
- shape-rendering: crispEdges;
1483
- }
1484
-
1485
- .${lineChartClassNames.lineChartLinesGlobal} {
1486
- fill: none;
1487
- stroke: steelblue;
1488
- stroke-width: 1.5px;
1489
- stroke-linejoin: round;
1490
- stroke-linecap: round;
1491
- }
1492
-
1493
- .${lineChartClassNames.lineChartArea} {
1494
- fill-opacity: 0.24;
1495
- }
1496
-
1497
- .${lineChartClassNames.lineChartGridLineX},
1498
- .${lineChartClassNames.lineChartGridLineY},
1499
- .${lineChartClassNames.lineChartMouseLine} {
1500
- stroke: rgba(149, 149, 149, 0.24);
1501
- }
1502
-
1503
- .${lineChartClassNames.lineChartMouseLine},
1504
- .${lineChartClassNames.lineChartMouseCircle} {
1505
- transition: opacity linear 200ms;
1506
- pointer-events: none;
1507
- stroke-width: 1px;
1508
- }
1509
-
1510
- .${lineChartClassNames.lineChartDot} {
1511
- stroke: #fff;
1512
- stroke-width: 2px;
1513
- }
1514
-
1515
- .${lineChartClassNames.lineChartMouseLine} {
1516
- shape-rendering: crispEdges;
1517
- }
1518
-
1519
- .${lineChartClassNames.lineChartMouseRect} {
1520
- fill: none;
1521
- pointer-events: all;
1522
- }
1478
+ const SvgWrapper$2 = styled(Wrapper) `
1479
+ .${lineChartClassNames.lineChartYScaleGlobal},
1480
+ .${lineChartClassNames.lineChartXScaleGlobal},
1481
+ .${lineChartClassNames.lineChartGridGlobal} {
1482
+ shape-rendering: crispEdges;
1483
+ }
1484
+
1485
+ .${lineChartClassNames.lineChartLinesGlobal} {
1486
+ fill: none;
1487
+ stroke: steelblue;
1488
+ stroke-width: 1.5px;
1489
+ stroke-linejoin: round;
1490
+ stroke-linecap: round;
1491
+ }
1492
+
1493
+ .${lineChartClassNames.lineChartArea} {
1494
+ fill-opacity: 0.24;
1495
+ }
1496
+
1497
+ .${lineChartClassNames.lineChartGridLineX},
1498
+ .${lineChartClassNames.lineChartGridLineY},
1499
+ .${lineChartClassNames.lineChartMouseLine} {
1500
+ stroke: rgba(149, 149, 149, 0.24);
1501
+ }
1502
+
1503
+ .${lineChartClassNames.lineChartMouseLine},
1504
+ .${lineChartClassNames.lineChartMouseCircle} {
1505
+ transition: opacity linear 200ms;
1506
+ pointer-events: none;
1507
+ stroke-width: 1px;
1508
+ }
1509
+
1510
+ .${lineChartClassNames.lineChartDot} {
1511
+ stroke: #fff;
1512
+ stroke-width: 2px;
1513
+ }
1514
+
1515
+ .${lineChartClassNames.lineChartMouseLine} {
1516
+ shape-rendering: crispEdges;
1517
+ }
1518
+
1519
+ .${lineChartClassNames.lineChartMouseRect} {
1520
+ fill: none;
1521
+ pointer-events: all;
1522
+ }
1523
1523
  `;
1524
- const TooltipStyles$2 = createGlobalStyle `
1525
- .${lineChartClassNames.lineChartMouseLabel} {
1526
- transition: opacity linear 200ms;
1527
- z-index: 100;
1528
-
1529
- .${lineChartClassNames.lineChartLabelFlex} {
1530
- justify-content: flex-start;
1531
- align-items: center;
1532
- pointer-events: none;
1533
- }
1534
-
1535
- .${lineChartClassNames.lineChartLabel} {
1536
- margin: 0 0 0 10px;
1537
- }
1538
- }
1524
+ const TooltipStyles$2 = createGlobalStyle `
1525
+ .${lineChartClassNames.lineChartMouseLabel} {
1526
+ transition: opacity linear 200ms;
1527
+ z-index: 100;
1528
+
1529
+ .${lineChartClassNames.lineChartLabelFlex} {
1530
+ justify-content: flex-start;
1531
+ align-items: center;
1532
+ pointer-events: none;
1533
+ }
1534
+
1535
+ .${lineChartClassNames.lineChartLabel} {
1536
+ margin: 0 0 0 10px;
1537
+ }
1538
+ }
1539
1539
  `;
1540
1540
 
1541
1541
  const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
@@ -1571,17 +1571,17 @@ const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, dr
1571
1571
  }
1572
1572
  };
1573
1573
 
1574
- const LabelContainer = styled.div `
1575
- width: 0;
1576
- height: 0;
1577
- display: flex;
1578
- align-items: flex-end;
1579
- justify-content: center;
1580
- font-size: 12px;
1581
- white-space: nowrap;
1574
+ const LabelContainer = styled.div `
1575
+ width: 0;
1576
+ height: 0;
1577
+ display: flex;
1578
+ align-items: flex-end;
1579
+ justify-content: center;
1580
+ font-size: 12px;
1581
+ white-space: nowrap;
1582
1582
  `;
1583
- const Label = styled.div `
1584
- margin-bottom: 4px;
1583
+ const Label = styled.div `
1584
+ margin-bottom: 4px;
1585
1585
  `;
1586
1586
 
1587
1587
  const labelClassName = "d3-chart-label";
@@ -1694,6 +1694,9 @@ const drawTooltip$2 = ({ svg, node, data: argData, xScale, yScale, dynamicCircle
1694
1694
  let target = null;
1695
1695
  while (true) {
1696
1696
  target = Math.floor((beginning + end) / 2);
1697
+ if (!target) {
1698
+ break;
1699
+ }
1697
1700
  pos = line.getPointAtLength(target);
1698
1701
  if ((target === end || target === beginning) && pos.x !== x) {
1699
1702
  break;
@@ -2167,66 +2170,66 @@ const barChartClassNames = {
2167
2170
  ...labelClassnames,
2168
2171
  ...barChartLinesClassNames,
2169
2172
  };
2170
- const SvgWrapper$1 = styled(Wrapper) `
2171
- display: ${({ selectable }) => selectable && "inline-block"};
2172
- user-select: ${({ selectable }) => selectable && "none"};
2173
- width: ${({ selectable }) => selectable && "auto"};
2174
-
2175
- line {
2176
- stroke-width: 1px;
2177
- shape-rendering: crispEdges;
2178
- }
2179
-
2180
- .${barChartClassNames.barChartGridLineX},
2181
- .${barChartClassNames.barChartGridLineY} {
2182
- stroke: rgba(48, 69, 79, 0.06);
2183
- }
2184
-
2185
- .${barChartClassNames.barChartMouseRect} {
2186
- }
2187
-
2188
- .${barChartClassNames.barChartMouseRect} {
2189
- fill: none;
2190
- pointer-events: all;
2191
- }
2192
-
2193
- .${barChartClassNames.barChartLinesGlobal} {
2194
- stroke-width: 1.5px;
2195
- stroke-linejoin: round;
2196
- stroke-linecap: round;
2197
- }
2198
-
2199
- .${barChartClassNames.barChartLine} {
2200
- shape-rendering: auto;
2201
- }
2202
-
2203
- .${barChartClassNames.barChartArea} {
2204
- fill-opacity: 0.24;
2205
- }
2206
-
2207
- .${barChartClassNames.barChartSelection} {
2208
- position: absolute;
2209
- top: 0;
2210
- width: 0;
2211
- background: rgba(0, 170, 255, 0.06);
2212
- box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2213
- pointer-events: none;
2214
- }
2173
+ const SvgWrapper$1 = styled(Wrapper) `
2174
+ display: ${({ selectable }) => selectable && "inline-block"};
2175
+ user-select: ${({ selectable }) => selectable && "none"};
2176
+ width: ${({ selectable }) => selectable && "auto"};
2177
+
2178
+ line {
2179
+ stroke-width: 1px;
2180
+ shape-rendering: crispEdges;
2181
+ }
2182
+
2183
+ .${barChartClassNames.barChartGridLineX},
2184
+ .${barChartClassNames.barChartGridLineY} {
2185
+ stroke: rgba(48, 69, 79, 0.06);
2186
+ }
2187
+
2188
+ .${barChartClassNames.barChartMouseRect} {
2189
+ }
2190
+
2191
+ .${barChartClassNames.barChartMouseRect} {
2192
+ fill: none;
2193
+ pointer-events: all;
2194
+ }
2195
+
2196
+ .${barChartClassNames.barChartLinesGlobal} {
2197
+ stroke-width: 1.5px;
2198
+ stroke-linejoin: round;
2199
+ stroke-linecap: round;
2200
+ }
2201
+
2202
+ .${barChartClassNames.barChartLine} {
2203
+ shape-rendering: auto;
2204
+ }
2205
+
2206
+ .${barChartClassNames.barChartArea} {
2207
+ fill-opacity: 0.24;
2208
+ }
2209
+
2210
+ .${barChartClassNames.barChartSelection} {
2211
+ position: absolute;
2212
+ top: 0;
2213
+ width: 0;
2214
+ background: rgba(0, 170, 255, 0.06);
2215
+ box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2216
+ pointer-events: none;
2217
+ }
2215
2218
  `;
2216
- const TooltipStyles$1 = createGlobalStyle `
2217
- .${barChartClassNames.barChartMouseTooltip} {
2218
- z-index: 100;
2219
- transition: all linear 144ms;
2220
-
2221
- .${barChartClassNames.barChartTooltipItem} {
2222
- padding: 0.125rem;
2223
- margin-bottom: 4px;
2224
-
2225
- :last-of-type {
2226
- margin-bottom: 0;
2227
- }
2228
- }
2229
- }
2219
+ const TooltipStyles$1 = createGlobalStyle `
2220
+ .${barChartClassNames.barChartMouseTooltip} {
2221
+ z-index: 100;
2222
+ transition: all linear 144ms;
2223
+
2224
+ .${barChartClassNames.barChartTooltipItem} {
2225
+ padding: 0.125rem;
2226
+ margin-bottom: 4px;
2227
+
2228
+ :last-of-type {
2229
+ margin-bottom: 0;
2230
+ }
2231
+ }
2232
+ }
2230
2233
  `;
2231
2234
 
2232
2235
  const useSelection = (node, props) => {
@@ -3034,45 +3037,45 @@ const horizontalBarChartClassNames = {
3034
3037
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
3035
3038
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
3036
3039
  };
3037
- const Table = styled.table `
3038
- width: 100%;
3040
+ const Table = styled.table `
3041
+ width: 100%;
3039
3042
  `;
3040
- const LabelCell = styled.div `
3041
- text-align: right;
3043
+ const LabelCell = styled.div `
3044
+ text-align: right;
3042
3045
  `;
3043
- const BarFlex = styled.div `
3044
- width: 100%;
3045
- display: flex;
3046
- height: 1rem;
3046
+ const BarFlex = styled.div `
3047
+ width: 100%;
3048
+ display: flex;
3049
+ height: 1rem;
3047
3050
  `;
3048
- const BarsTd = styled.td `
3049
- width: 100%;
3050
- position: relative;
3051
- vertical-align: middle;
3051
+ const BarsTd = styled.td `
3052
+ width: 100%;
3053
+ position: relative;
3054
+ vertical-align: middle;
3052
3055
  `;
3053
- const TooltipFlex = styled(TooltipFlex$1) `
3054
- position: absolute;
3055
- top: 0;
3056
- left: 50%;
3057
- transform: translate(-50%, -50%);
3058
- will-change: left, top;
3056
+ const TooltipFlex = styled(TooltipFlex$1) `
3057
+ position: absolute;
3058
+ top: 0;
3059
+ left: 50%;
3060
+ transform: translate(-50%, -50%);
3061
+ will-change: left, top;
3059
3062
  `;
3060
- const StackSumContainer = styled.div `
3061
- position: relative;
3063
+ const StackSumContainer = styled.div `
3064
+ position: relative;
3062
3065
  `;
3063
- const StackSum = styled.div `
3064
- white-space: nowrap;
3065
- position: absolute;
3066
- top: 50%;
3067
- left: 50%;
3068
- transform: translate(0, -50%);
3066
+ const StackSum = styled.div `
3067
+ white-space: nowrap;
3068
+ position: absolute;
3069
+ top: 50%;
3070
+ left: 50%;
3071
+ transform: translate(0, -50%);
3069
3072
  `;
3070
- const StackWrapper = styled.div `
3071
- position: absolute;
3072
- top: 0;
3073
- display: flex;
3074
- justify-content: flex-start;
3075
- height: 100%;
3073
+ const StackWrapper = styled.div `
3074
+ position: absolute;
3075
+ top: 0;
3076
+ display: flex;
3077
+ justify-content: flex-start;
3078
+ height: 100%;
3076
3079
  `;
3077
3080
 
3078
3081
  const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
@@ -3124,10 +3127,10 @@ const useStackWrapper = (stackedTooltip) => {
3124
3127
  : ({ children }) => (jsx(Fragment$1, { children: children })), [stackedTooltip]);
3125
3128
  };
3126
3129
 
3127
- const BarStyled = styled.div `
3128
- position: relative;
3129
- display: inline-flex;
3130
- height: 100%;
3130
+ const BarStyled = styled.div `
3131
+ position: relative;
3132
+ display: inline-flex;
3133
+ height: 100%;
3131
3134
  `;
3132
3135
 
3133
3136
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -3144,23 +3147,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
3144
3147
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
3145
3148
  };
3146
3149
 
3147
- const TickTd = styled.td `
3148
- position: relative;
3150
+ const TickTd = styled.td `
3151
+ position: relative;
3149
3152
  `;
3150
- const Ticks = styled.div `
3151
- position: relative;
3152
- height: 1rem;
3153
+ const Ticks = styled.div `
3154
+ position: relative;
3155
+ height: 1rem;
3153
3156
  `;
3154
- const Tick = styled.div `
3155
- white-space: nowrap;
3156
- width: 0;
3157
- height: 0;
3158
- position: absolute;
3159
- top: 50%;
3160
- transform: translateY(-50%);
3161
- display: flex;
3162
- align-items: center;
3163
- justify-content: center;
3157
+ const Tick = styled.div `
3158
+ white-space: nowrap;
3159
+ width: 0;
3160
+ height: 0;
3161
+ position: absolute;
3162
+ top: 50%;
3163
+ transform: translateY(-50%);
3164
+ display: flex;
3165
+ align-items: center;
3166
+ justify-content: center;
3164
3167
  `;
3165
3168
 
3166
3169
  const hundred = 100;
@@ -3259,29 +3262,29 @@ const bubbleChartClassNames = {
3259
3262
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
3260
3263
  bubbleChartTip: "bubbleChartTip",
3261
3264
  };
3262
- const SvgWrapper = styled(Wrapper) `
3263
- .${bubbleChartClassNames.bubbleChartYAxis},
3264
- .${bubbleChartClassNames.bubbleChartXAxis},
3265
- .${bubbleChartClassNames.bubbleChartGridGlobal} {
3266
- shape-rendering: crispEdges;
3267
- }
3268
-
3269
- .${bubbleChartClassNames.bubbleChartGridLineX},
3270
- .${bubbleChartClassNames.bubbleChartGridLineY} {
3271
- stroke: rgba(149, 149, 149, 0.24);
3272
- }
3273
-
3274
- .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3275
- font-size: 10px;
3276
- }
3265
+ const SvgWrapper = styled(Wrapper) `
3266
+ .${bubbleChartClassNames.bubbleChartYAxis},
3267
+ .${bubbleChartClassNames.bubbleChartXAxis},
3268
+ .${bubbleChartClassNames.bubbleChartGridGlobal} {
3269
+ shape-rendering: crispEdges;
3270
+ }
3271
+
3272
+ .${bubbleChartClassNames.bubbleChartGridLineX},
3273
+ .${bubbleChartClassNames.bubbleChartGridLineY} {
3274
+ stroke: rgba(149, 149, 149, 0.24);
3275
+ }
3276
+
3277
+ .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3278
+ font-size: 10px;
3279
+ }
3277
3280
  `;
3278
- const TooltipStyles = createGlobalStyle `
3279
- .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3280
- position: absolute;
3281
- transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3282
- pointer-events: none;
3283
- z-index: 1;
3284
- }
3281
+ const TooltipStyles = createGlobalStyle `
3282
+ .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3283
+ position: absolute;
3284
+ transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3285
+ pointer-events: none;
3286
+ z-index: 1;
3287
+ }
3285
3288
  `;
3286
3289
 
3287
3290
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -3318,14 +3321,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
3318
3321
  }
3319
3322
  };
3320
3323
 
3321
- const Tooltip = styled.div `
3322
- width: 0;
3323
- height: 0;
3324
- display: flex;
3325
- align-items: flex-end;
3326
- justify-content: center;
3327
- font-size: 12px;
3328
- white-space: nowrap;
3324
+ const Tooltip = styled.div `
3325
+ width: 0;
3326
+ height: 0;
3327
+ display: flex;
3328
+ align-items: flex-end;
3329
+ justify-content: center;
3330
+ font-size: 12px;
3331
+ white-space: nowrap;
3329
3332
  `;
3330
3333
 
3331
3334
  const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {