@evergis/charts 3.1.8 → 3.1.11

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() {
@@ -57,10 +57,10 @@ const appendSvg = (node, width, height) => {
57
57
  return svg;
58
58
  };
59
59
 
60
- const SwipeScrollContainer = styled.div `
61
- width: 100%;
62
- overflow: hidden;
63
- user-select: none;
60
+ const SwipeScrollContainer = styled.div `
61
+ width: 100%;
62
+ overflow: hidden;
63
+ user-select: none;
64
64
  `;
65
65
 
66
66
  function animate({ duration, timing, draw, }) {
@@ -212,37 +212,37 @@ const getTranslate$1 = ({ anchor, index, translateX, translateY, }) => {
212
212
  }
213
213
  return `translate(${translateX}px, ${translateY}px)`;
214
214
  };
215
- const Label$2 = styled.div `
216
- display: flex;
217
- align-items: center;
218
- font-size: 12px;
215
+ const Label$2 = styled.div `
216
+ display: flex;
217
+ align-items: center;
218
+ font-size: 12px;
219
219
  `;
220
- const Name$1 = styled.div `
221
- text-align: center;
222
- max-width: 120px;
220
+ const Name$1 = styled.div `
221
+ text-align: center;
222
+ max-width: 120px;
223
223
  `;
224
- const middleBadgeStyles = css `
225
- position: absolute;
226
- top: 50%;
227
- right: 0;
228
- transform: translate(calc(100% + 6px), -50%);
224
+ const middleBadgeStyles = css `
225
+ position: absolute;
226
+ top: 50%;
227
+ right: 0;
228
+ transform: translate(calc(100% + 6px), -50%);
229
229
  `;
230
- const DefaultBadge = styled.div `
231
- display: flex;
232
- align-items: center;
233
- padding: 2px 4px;
234
- border-radius: 4px;
235
- color: rgb(255, 255, 255);
236
- background-color: rgb(144, 197, 61);
237
- margin-left: 8px;
230
+ const DefaultBadge = styled.div `
231
+ display: flex;
232
+ align-items: center;
233
+ padding: 2px 4px;
234
+ border-radius: 4px;
235
+ color: rgb(255, 255, 255);
236
+ background-color: rgb(144, 197, 61);
237
+ margin-left: 8px;
238
238
  `;
239
- const MiddleBadge = styled(DefaultBadge) `
240
- ${middleBadgeStyles}
239
+ const MiddleBadge = styled(DefaultBadge) `
240
+ ${middleBadgeStyles}
241
241
  `;
242
- const BadgePrefix = styled.div `
243
- margin-left: 4px;
244
- font-size: 10px;
245
- color: rgba(255, 255, 255, 0.54);
242
+ const BadgePrefix = styled.div `
243
+ margin-left: 4px;
244
+ font-size: 10px;
245
+ color: rgba(255, 255, 255, 0.54);
246
246
  `;
247
247
 
248
248
  const radarChartclassNames = {
@@ -257,29 +257,29 @@ const radarChartclassNames = {
257
257
  radarLabelBadgePrefix: 'radarLabelBadgePrefix',
258
258
  radarCircle: 'radarCircle',
259
259
  };
260
- const SvgWrapper$5 = styled(Wrapper) `
261
- .${radarChartclassNames.radarAxis} {
262
- path,
263
- line,
264
- circle {
265
- fill: none;
266
- stroke-width: 1px;
267
- stroke: rgba(149, 149, 149, 0.18);
268
- }
269
- }
270
- .${radarChartclassNames.radarAxisText} {
271
- font-size: 12px;
272
- fill-opacity: 0.56;
273
- }
274
- .${radarChartclassNames.radarPolygon} {
275
- fill-opacity: 0.06;
276
- stroke-width: 2px;
277
- fill: rgb(144, 197, 61);
278
- stroke: rgb(144, 197, 61);
279
- }
280
- .${radarChartclassNames.radarCircle} {
281
- fill: rgb(144, 197, 61);
282
- }
260
+ const SvgWrapper$5 = styled(Wrapper) `
261
+ .${radarChartclassNames.radarAxis} {
262
+ path,
263
+ line,
264
+ circle {
265
+ fill: none;
266
+ stroke-width: 1px;
267
+ stroke: rgba(149, 149, 149, 0.18);
268
+ }
269
+ }
270
+ .${radarChartclassNames.radarAxisText} {
271
+ font-size: 12px;
272
+ fill-opacity: 0.56;
273
+ }
274
+ .${radarChartclassNames.radarPolygon} {
275
+ fill-opacity: 0.06;
276
+ stroke-width: 2px;
277
+ fill: rgb(144, 197, 61);
278
+ stroke: rgb(144, 197, 61);
279
+ }
280
+ .${radarChartclassNames.radarCircle} {
281
+ fill: rgb(144, 197, 61);
282
+ }
283
283
  `;
284
284
 
285
285
  const getTranslate = ({ anchor, index, translateX, translateY, }) => {
@@ -301,8 +301,8 @@ const LabelContainer$1 = styled.div.attrs(props => ({
301
301
  style: {
302
302
  transform: getTranslate(props),
303
303
  },
304
- })) `
305
- position: absolute;
304
+ })) `
305
+ position: absolute;
306
306
  `;
307
307
 
308
308
  const degByIndex = (index, count) => {
@@ -575,21 +575,21 @@ const pieChartclassNames = {
575
575
  pieTooltipColorBox: 'pieTooltipColorBox',
576
576
  pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
577
577
  };
578
- const SvgWrapper$4 = styled(Wrapper) `
579
- .${pieChartclassNames.pieSliceLabel} {
580
- fill: #4a4a4a;
581
- }
582
- .${pieChartclassNames.pieRadialLabel} {
583
- position: absolute;
584
- max-width: 128px;
585
- }
586
- .${pieChartclassNames.pieRadialLink} {
587
- stroke: #000;
588
- }
589
- .${pieChartclassNames.pieFullChartTooltipCircle} {
590
- fill: transparent;
591
- cursor: pointer;
592
- }
578
+ const SvgWrapper$4 = styled(Wrapper) `
579
+ .${pieChartclassNames.pieSliceLabel} {
580
+ fill: #4a4a4a;
581
+ }
582
+ .${pieChartclassNames.pieRadialLabel} {
583
+ position: absolute;
584
+ max-width: 128px;
585
+ }
586
+ .${pieChartclassNames.pieRadialLink} {
587
+ stroke: #000;
588
+ }
589
+ .${pieChartclassNames.pieFullChartTooltipCircle} {
590
+ fill: transparent;
591
+ cursor: pointer;
592
+ }
593
593
  `;
594
594
 
595
595
  const getMidFactor = (d) => d.startAngle + (d.endAngle - d.startAngle) / 2 < Math.PI ? 1 : -1;
@@ -680,90 +680,90 @@ const drawRadialLabels = ({ arc, enableRadialLabels, global, node, radius, dataR
680
680
  }
681
681
  };
682
682
 
683
- const TooltipFlex$1 = styled.div `
684
- width: 0;
685
- height: 0;
686
- display: flex;
687
- align-items: flex-end;
688
- justify-content: center;
689
- pointer-events: none;
690
- white-space: nowrap;
683
+ const TooltipFlex$1 = styled.div `
684
+ width: 0;
685
+ height: 0;
686
+ display: flex;
687
+ align-items: flex-end;
688
+ justify-content: center;
689
+ pointer-events: none;
690
+ white-space: nowrap;
691
691
  `;
692
692
  const LabelFlex = styled(TooltipFlex$1) ``;
693
- const LabelFlexCenter = styled(LabelFlex) `
694
- align-items: center;
693
+ const LabelFlexCenter = styled(LabelFlex) `
694
+ align-items: center;
695
695
  `;
696
- const TooltipContainer = styled.div `
697
- position: relative;
698
- font-size: 11px;
699
- color: #fff;
700
- margin-bottom: 8px;
701
- padding: 4px 6px;
702
- background-color: rgba(48, 69, 79, 1);
703
- border-radius: 4px;
704
- box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
705
-
706
- :before {
707
- content: '';
708
- position: absolute;
709
- bottom: 0;
710
- left: 50%;
711
- transform: translate(-50%, 100%);
712
- width: 0;
713
- height: 0;
714
- border-style: solid;
715
- border-width: 4px 3px 0 3px;
716
- border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
717
- }
696
+ const TooltipContainer = styled.div `
697
+ position: relative;
698
+ font-size: 11px;
699
+ color: #fff;
700
+ margin-bottom: 8px;
701
+ padding: 4px 6px;
702
+ background-color: rgba(48, 69, 79, 1);
703
+ border-radius: 4px;
704
+ box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
705
+
706
+ :before {
707
+ content: '';
708
+ position: absolute;
709
+ bottom: 0;
710
+ left: 50%;
711
+ transform: translate(-50%, 100%);
712
+ width: 0;
713
+ height: 0;
714
+ border-style: solid;
715
+ border-width: 4px 3px 0 3px;
716
+ border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
717
+ }
718
718
  `;
719
- const TooltipGroupName = styled.div `
720
- font-size: 14px;
721
- margin-bottom: 6px;
719
+ const TooltipGroupName = styled.div `
720
+ font-size: 14px;
721
+ margin-bottom: 6px;
722
722
  `;
723
- const TooltipItem = styled.div `
724
- display: flex;
725
- align-items: center;
726
- margin-bottom: 0.25rem;
727
-
728
- &:last-of-type {
729
- margin-bottom: 0;
730
- }
723
+ const TooltipItem = styled.div `
724
+ display: flex;
725
+ align-items: center;
726
+ margin-bottom: 0.25rem;
727
+
728
+ &:last-of-type {
729
+ margin-bottom: 0;
730
+ }
731
731
  `;
732
- const ColFlex = styled.div `
733
- display: flex;
734
- align-items: center;
735
- margin-right: 4px;
732
+ const ColFlex = styled.div `
733
+ display: flex;
734
+ align-items: center;
735
+ margin-right: 4px;
736
736
  `;
737
- const ColorBox = styled.div `
738
- margin-right: 4px;
739
- width: 10px;
740
- height: 10px;
741
- border-radius: 2px;
737
+ const ColorBox = styled.div `
738
+ margin-right: 4px;
739
+ width: 10px;
740
+ height: 10px;
741
+ border-radius: 2px;
742
742
  `;
743
- const ColorLine = styled(ColorBox) `
744
- height: 2px;
745
- border-radius: 0;
743
+ const ColorLine = styled(ColorBox) `
744
+ height: 2px;
745
+ border-radius: 0;
746
746
  `;
747
- const Name = styled.div `
748
- margin-right: 4px;
747
+ const Name = styled.div `
748
+ margin-right: 4px;
749
749
  `;
750
- const Value = styled.div `
751
- text-align: right;
752
- flex-shrink: 0;
753
- flex-grow: 1;
750
+ const Value = styled.div `
751
+ text-align: right;
752
+ flex-shrink: 0;
753
+ flex-grow: 1;
754
754
  `;
755
- const Label$1 = styled.div `
756
- position: relative;
757
- font-size: 11px;
758
- color: #fff;
759
- font-weight: bold;
760
- letter-spacing: 0.52px;
755
+ const Label$1 = styled.div `
756
+ position: relative;
757
+ font-size: 11px;
758
+ color: #fff;
759
+ font-weight: bold;
760
+ letter-spacing: 0.52px;
761
761
  `;
762
- const LabelTop = styled(Label$1) `
763
- top: 6px;
762
+ const LabelTop = styled(Label$1) `
763
+ top: 6px;
764
764
  `;
765
- const LabelBottom = styled(Label$1) `
766
- bottom: 6px;
765
+ const LabelBottom = styled(Label$1) `
766
+ bottom: 6px;
767
767
  `;
768
768
 
769
769
  const drawTooltip$3 = ({ fullChartTooltip, global, tooltipRoot, data, tooltipClassName, tooltipBind, renderTooltip, arc, allSlices, tooltipStyle, width, height, radius, }) => {
@@ -1152,53 +1152,53 @@ const calendarChartClassNames = {
1152
1152
  ...legendClassNames,
1153
1153
  };
1154
1154
  const headerHeight = "20px";
1155
- const SvgWrapper$3 = styled(Wrapper) `
1156
- .${calendarChartClassNames.calendarYear} {
1157
- display: flex;
1158
- margin-bottom: 16px;
1159
- }
1160
-
1161
- .${calendarChartClassNames.calendarYearTitle} {
1162
- display: inline-flex;
1163
- align-items: flex-end;
1164
- height: ${headerHeight};
1165
- margin-bottom: 4px;
1166
- font-weight: bold;
1167
- }
1168
-
1169
- .${calendarChartClassNames.calendarHeader} {
1170
- height: ${headerHeight};
1171
- margin-bottom: 4px;
1172
- position: relative;
1173
- display: flex;
1174
- }
1175
-
1176
- .${calendarChartClassNames.calendarMonth} {
1177
- font-size: 14px;
1178
- bottom: 0;
1179
- position: absolute;
1180
- }
1181
-
1182
- .${calendarChartClassNames.calendarAxis} {
1183
- display: flex;
1184
- flex-direction: column;
1185
- margin-right: 10px;
1186
- }
1187
-
1188
- .${calendarChartClassNames.calendarWeekDay} {
1189
- font-size: 12px;
1190
- display: inline-flex;
1191
- align-items: center;
1192
- justify-content: flex-end;
1193
- }
1194
-
1195
- .${calendarChartClassNames.calendarDays} {
1196
- position: relative;
1197
- }
1198
-
1199
- .${calendarChartClassNames.calendarDay} {
1200
- position: absolute;
1201
- }
1155
+ const SvgWrapper$3 = styled(Wrapper) `
1156
+ .${calendarChartClassNames.calendarYear} {
1157
+ display: flex;
1158
+ margin-bottom: 16px;
1159
+ }
1160
+
1161
+ .${calendarChartClassNames.calendarYearTitle} {
1162
+ display: inline-flex;
1163
+ align-items: flex-end;
1164
+ height: ${headerHeight};
1165
+ margin-bottom: 4px;
1166
+ font-weight: bold;
1167
+ }
1168
+
1169
+ .${calendarChartClassNames.calendarHeader} {
1170
+ height: ${headerHeight};
1171
+ margin-bottom: 4px;
1172
+ position: relative;
1173
+ display: flex;
1174
+ }
1175
+
1176
+ .${calendarChartClassNames.calendarMonth} {
1177
+ font-size: 14px;
1178
+ bottom: 0;
1179
+ position: absolute;
1180
+ }
1181
+
1182
+ .${calendarChartClassNames.calendarAxis} {
1183
+ display: flex;
1184
+ flex-direction: column;
1185
+ margin-right: 10px;
1186
+ }
1187
+
1188
+ .${calendarChartClassNames.calendarWeekDay} {
1189
+ font-size: 12px;
1190
+ display: inline-flex;
1191
+ align-items: center;
1192
+ justify-content: flex-end;
1193
+ }
1194
+
1195
+ .${calendarChartClassNames.calendarDays} {
1196
+ position: relative;
1197
+ }
1198
+
1199
+ .${calendarChartClassNames.calendarDay} {
1200
+ position: absolute;
1201
+ }
1202
1202
  `;
1203
1203
 
1204
1204
  const draw$3 = (node, props) => {
@@ -1425,67 +1425,67 @@ const lineChartClassNames = {
1425
1425
  lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
1426
1426
  lineChartMouseLabel: "lineChartMouseLabel",
1427
1427
  };
1428
- const SvgWrapper$2 = styled(Wrapper) `
1429
- .${lineChartClassNames.lineChartYScaleGlobal},
1430
- .${lineChartClassNames.lineChartXScaleGlobal},
1431
- .${lineChartClassNames.lineChartGridGlobal} {
1432
- shape-rendering: crispEdges;
1433
- }
1434
-
1435
- .${lineChartClassNames.lineChartLinesGlobal} {
1436
- fill: none;
1437
- stroke: steelblue;
1438
- stroke-width: 1.5px;
1439
- stroke-linejoin: round;
1440
- stroke-linecap: round;
1441
- }
1442
-
1443
- .${lineChartClassNames.lineChartArea} {
1444
- fill-opacity: 0.24;
1445
- }
1446
-
1447
- .${lineChartClassNames.lineChartGridLineX},
1448
- .${lineChartClassNames.lineChartGridLineY},
1449
- .${lineChartClassNames.lineChartMouseLine} {
1450
- stroke: rgba(149, 149, 149, 0.24);
1451
- }
1452
-
1453
- .${lineChartClassNames.lineChartMouseLine},
1454
- .${lineChartClassNames.lineChartMouseCircle} {
1455
- transition: opacity linear 200ms;
1456
- pointer-events: none;
1457
- stroke-width: 1px;
1458
- }
1459
-
1460
- .${lineChartClassNames.lineChartDot} {
1461
- stroke: #fff;
1462
- stroke-width: 2px;
1463
- }
1464
-
1465
- .${lineChartClassNames.lineChartMouseLine} {
1466
- shape-rendering: crispEdges;
1467
- }
1468
-
1469
- .${lineChartClassNames.lineChartMouseRect} {
1470
- fill: none;
1471
- pointer-events: all;
1472
- }
1428
+ const SvgWrapper$2 = styled(Wrapper) `
1429
+ .${lineChartClassNames.lineChartYScaleGlobal},
1430
+ .${lineChartClassNames.lineChartXScaleGlobal},
1431
+ .${lineChartClassNames.lineChartGridGlobal} {
1432
+ shape-rendering: crispEdges;
1433
+ }
1434
+
1435
+ .${lineChartClassNames.lineChartLinesGlobal} {
1436
+ fill: none;
1437
+ stroke: steelblue;
1438
+ stroke-width: 1.5px;
1439
+ stroke-linejoin: round;
1440
+ stroke-linecap: round;
1441
+ }
1442
+
1443
+ .${lineChartClassNames.lineChartArea} {
1444
+ fill-opacity: 0.24;
1445
+ }
1446
+
1447
+ .${lineChartClassNames.lineChartGridLineX},
1448
+ .${lineChartClassNames.lineChartGridLineY},
1449
+ .${lineChartClassNames.lineChartMouseLine} {
1450
+ stroke: rgba(149, 149, 149, 0.24);
1451
+ }
1452
+
1453
+ .${lineChartClassNames.lineChartMouseLine},
1454
+ .${lineChartClassNames.lineChartMouseCircle} {
1455
+ transition: opacity linear 200ms;
1456
+ pointer-events: none;
1457
+ stroke-width: 1px;
1458
+ }
1459
+
1460
+ .${lineChartClassNames.lineChartDot} {
1461
+ stroke: #fff;
1462
+ stroke-width: 2px;
1463
+ }
1464
+
1465
+ .${lineChartClassNames.lineChartMouseLine} {
1466
+ shape-rendering: crispEdges;
1467
+ }
1468
+
1469
+ .${lineChartClassNames.lineChartMouseRect} {
1470
+ fill: none;
1471
+ pointer-events: all;
1472
+ }
1473
1473
  `;
1474
- const TooltipStyles$2 = createGlobalStyle `
1475
- .${lineChartClassNames.lineChartMouseLabel} {
1476
- transition: opacity linear 200ms;
1477
- z-index: 100;
1478
-
1479
- .${lineChartClassNames.lineChartLabelFlex} {
1480
- justify-content: flex-start;
1481
- align-items: center;
1482
- pointer-events: none;
1483
- }
1484
-
1485
- .${lineChartClassNames.lineChartLabel} {
1486
- margin: 0 0 0 10px;
1487
- }
1488
- }
1474
+ const TooltipStyles$2 = createGlobalStyle `
1475
+ .${lineChartClassNames.lineChartMouseLabel} {
1476
+ transition: opacity linear 200ms;
1477
+ z-index: 100;
1478
+
1479
+ .${lineChartClassNames.lineChartLabelFlex} {
1480
+ justify-content: flex-start;
1481
+ align-items: center;
1482
+ pointer-events: none;
1483
+ }
1484
+
1485
+ .${lineChartClassNames.lineChartLabel} {
1486
+ margin: 0 0 0 10px;
1487
+ }
1488
+ }
1489
1489
  `;
1490
1490
 
1491
1491
  const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
@@ -1521,17 +1521,17 @@ const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, dr
1521
1521
  }
1522
1522
  };
1523
1523
 
1524
- const LabelContainer = styled.div `
1525
- width: 0;
1526
- height: 0;
1527
- display: flex;
1528
- align-items: flex-end;
1529
- justify-content: center;
1530
- font-size: 12px;
1531
- white-space: nowrap;
1524
+ const LabelContainer = styled.div `
1525
+ width: 0;
1526
+ height: 0;
1527
+ display: flex;
1528
+ align-items: flex-end;
1529
+ justify-content: center;
1530
+ font-size: 12px;
1531
+ white-space: nowrap;
1532
1532
  `;
1533
- const Label = styled.div `
1534
- margin-bottom: 4px;
1533
+ const Label = styled.div `
1534
+ margin-bottom: 4px;
1535
1535
  `;
1536
1536
 
1537
1537
  const labelClassName = "d3-chart-label";
@@ -2114,64 +2114,64 @@ const barChartClassNames = {
2114
2114
  ...labelClassnames,
2115
2115
  ...barChartLinesClassNames,
2116
2116
  };
2117
- const SvgWrapper$1 = styled(Wrapper) `
2118
- display: ${({ selectable }) => selectable && "inline-block"};
2119
- user-select: ${({ selectable }) => selectable && "none"};
2120
- width: ${({ selectable }) => selectable && "auto"};
2121
-
2122
- line {
2123
- stroke-width: 1px;
2124
- shape-rendering: crispEdges;
2125
- }
2126
-
2127
- .${barChartClassNames.barChartGridLineX},
2128
- .${barChartClassNames.barChartGridLineY} {
2129
- stroke: rgba(48, 69, 79, 0.06);
2130
- }
2131
-
2132
- .${barChartClassNames.barChartMouseRect} {
2133
- }
2134
-
2135
- .${barChartClassNames.barChartMouseRect} {
2136
- fill: none;
2137
- pointer-events: all;
2138
- }
2139
-
2140
- .${barChartClassNames.barChartLinesGlobal} {
2141
- stroke-width: 1.5px;
2142
- stroke-linejoin: round;
2143
- stroke-linecap: round;
2144
- }
2145
-
2146
- .${barChartClassNames.barChartLine} {
2147
- shape-rendering: auto;
2148
- }
2149
-
2150
- .${barChartClassNames.barChartArea} {
2151
- fill-opacity: 0.24;
2152
- }
2153
-
2154
- .${barChartClassNames.barChartSelection} {
2155
- position: absolute;
2156
- top: 0;
2157
- width: 0;
2158
- background: rgba(0, 170, 255, 0.06);
2159
- box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2160
- pointer-events: none;
2161
- }
2117
+ const SvgWrapper$1 = styled(Wrapper) `
2118
+ display: ${({ selectable }) => selectable && "inline-block"};
2119
+ user-select: ${({ selectable }) => selectable && "none"};
2120
+ width: ${({ selectable }) => selectable && "auto"};
2121
+
2122
+ line {
2123
+ stroke-width: 1px;
2124
+ shape-rendering: crispEdges;
2125
+ }
2126
+
2127
+ .${barChartClassNames.barChartGridLineX},
2128
+ .${barChartClassNames.barChartGridLineY} {
2129
+ stroke: rgba(48, 69, 79, 0.06);
2130
+ }
2131
+
2132
+ .${barChartClassNames.barChartMouseRect} {
2133
+ }
2134
+
2135
+ .${barChartClassNames.barChartMouseRect} {
2136
+ fill: none;
2137
+ pointer-events: all;
2138
+ }
2139
+
2140
+ .${barChartClassNames.barChartLinesGlobal} {
2141
+ stroke-width: 1.5px;
2142
+ stroke-linejoin: round;
2143
+ stroke-linecap: round;
2144
+ }
2145
+
2146
+ .${barChartClassNames.barChartLine} {
2147
+ shape-rendering: auto;
2148
+ }
2149
+
2150
+ .${barChartClassNames.barChartArea} {
2151
+ fill-opacity: 0.24;
2152
+ }
2153
+
2154
+ .${barChartClassNames.barChartSelection} {
2155
+ position: absolute;
2156
+ top: 0;
2157
+ width: 0;
2158
+ background: rgba(0, 170, 255, 0.06);
2159
+ box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2160
+ pointer-events: none;
2161
+ }
2162
2162
  `;
2163
- const TooltipStyles$1 = createGlobalStyle `
2164
- .${barChartClassNames.barChartMouseTooltip} {
2165
- z-index: 100;
2166
- transition: all linear 144ms;
2167
-
2168
- .${barChartClassNames.barChartTooltipItem} {
2169
- margin-bottom: 4px;
2170
- :last-of-type {
2171
- margin-bottom: 0;
2172
- }
2173
- }
2174
- }
2163
+ const TooltipStyles$1 = createGlobalStyle `
2164
+ .${barChartClassNames.barChartMouseTooltip} {
2165
+ z-index: 100;
2166
+ transition: all linear 144ms;
2167
+
2168
+ .${barChartClassNames.barChartTooltipItem} {
2169
+ margin-bottom: 4px;
2170
+ :last-of-type {
2171
+ margin-bottom: 0;
2172
+ }
2173
+ }
2174
+ }
2175
2175
  `;
2176
2176
 
2177
2177
  const useSelection = (node, props) => {
@@ -3018,45 +3018,45 @@ const horizontalBarChartClassNames = {
3018
3018
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
3019
3019
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
3020
3020
  };
3021
- const Table = styled.table `
3022
- width: 100%;
3021
+ const Table = styled.table `
3022
+ width: 100%;
3023
3023
  `;
3024
- const LabelCell = styled.div `
3025
- text-align: right;
3024
+ const LabelCell = styled.div `
3025
+ text-align: right;
3026
3026
  `;
3027
- const BarFlex = styled.div `
3028
- width: 100%;
3029
- display: flex;
3030
- height: 1rem;
3027
+ const BarFlex = styled.div `
3028
+ width: 100%;
3029
+ display: flex;
3030
+ height: 1rem;
3031
3031
  `;
3032
- const BarsTd = styled.td `
3033
- width: 100%;
3034
- position: relative;
3035
- vertical-align: middle;
3032
+ const BarsTd = styled.td `
3033
+ width: 100%;
3034
+ position: relative;
3035
+ vertical-align: middle;
3036
3036
  `;
3037
- const TooltipFlex = styled(TooltipFlex$1) `
3038
- position: absolute;
3039
- top: 0;
3040
- left: 50%;
3041
- transform: translate(-50%, -50%);
3042
- will-change: left, top;
3037
+ const TooltipFlex = styled(TooltipFlex$1) `
3038
+ position: absolute;
3039
+ top: 0;
3040
+ left: 50%;
3041
+ transform: translate(-50%, -50%);
3042
+ will-change: left, top;
3043
3043
  `;
3044
- const StackSumContainer = styled.div `
3045
- position: relative;
3044
+ const StackSumContainer = styled.div `
3045
+ position: relative;
3046
3046
  `;
3047
- const StackSum = styled.div `
3048
- white-space: nowrap;
3049
- position: absolute;
3050
- top: 50%;
3051
- left: 50%;
3052
- transform: translate(0, -50%);
3047
+ const StackSum = styled.div `
3048
+ white-space: nowrap;
3049
+ position: absolute;
3050
+ top: 50%;
3051
+ left: 50%;
3052
+ transform: translate(0, -50%);
3053
3053
  `;
3054
- const StackWrapper = styled.div `
3055
- position: absolute;
3056
- top: 0;
3057
- display: flex;
3058
- justify-content: flex-start;
3059
- height: 100%;
3054
+ const StackWrapper = styled.div `
3055
+ position: absolute;
3056
+ top: 0;
3057
+ display: flex;
3058
+ justify-content: flex-start;
3059
+ height: 100%;
3060
3060
  `;
3061
3061
 
3062
3062
  const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
@@ -3108,10 +3108,10 @@ const useStackWrapper = (stackedTooltip) => {
3108
3108
  : ({ children }) => (jsx(Fragment$1, { children: children })), [stackedTooltip]);
3109
3109
  };
3110
3110
 
3111
- const BarStyled = styled.div `
3112
- position: relative;
3113
- display: inline-flex;
3114
- height: 100%;
3111
+ const BarStyled = styled.div `
3112
+ position: relative;
3113
+ display: inline-flex;
3114
+ height: 100%;
3115
3115
  `;
3116
3116
 
3117
3117
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -3128,23 +3128,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
3128
3128
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
3129
3129
  };
3130
3130
 
3131
- const TickTd = styled.td `
3132
- position: relative;
3131
+ const TickTd = styled.td `
3132
+ position: relative;
3133
3133
  `;
3134
- const Ticks = styled.div `
3135
- position: relative;
3136
- height: 1rem;
3134
+ const Ticks = styled.div `
3135
+ position: relative;
3136
+ height: 1rem;
3137
3137
  `;
3138
- const Tick = styled.div `
3139
- white-space: nowrap;
3140
- width: 0;
3141
- height: 0;
3142
- position: absolute;
3143
- top: 50%;
3144
- transform: translateY(-50%);
3145
- display: flex;
3146
- align-items: center;
3147
- justify-content: center;
3138
+ const Tick = styled.div `
3139
+ white-space: nowrap;
3140
+ width: 0;
3141
+ height: 0;
3142
+ position: absolute;
3143
+ top: 50%;
3144
+ transform: translateY(-50%);
3145
+ display: flex;
3146
+ align-items: center;
3147
+ justify-content: center;
3148
3148
  `;
3149
3149
 
3150
3150
  const hundred = 100;
@@ -3243,29 +3243,29 @@ const bubbleChartClassNames = {
3243
3243
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
3244
3244
  bubbleChartTip: "bubbleChartTip",
3245
3245
  };
3246
- const SvgWrapper = styled(Wrapper) `
3247
- .${bubbleChartClassNames.bubbleChartYAxis},
3248
- .${bubbleChartClassNames.bubbleChartXAxis},
3249
- .${bubbleChartClassNames.bubbleChartGridGlobal} {
3250
- shape-rendering: crispEdges;
3251
- }
3252
-
3253
- .${bubbleChartClassNames.bubbleChartGridLineX},
3254
- .${bubbleChartClassNames.bubbleChartGridLineY} {
3255
- stroke: rgba(149, 149, 149, 0.24);
3256
- }
3257
-
3258
- .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3259
- font-size: 10px;
3260
- }
3246
+ const SvgWrapper = styled(Wrapper) `
3247
+ .${bubbleChartClassNames.bubbleChartYAxis},
3248
+ .${bubbleChartClassNames.bubbleChartXAxis},
3249
+ .${bubbleChartClassNames.bubbleChartGridGlobal} {
3250
+ shape-rendering: crispEdges;
3251
+ }
3252
+
3253
+ .${bubbleChartClassNames.bubbleChartGridLineX},
3254
+ .${bubbleChartClassNames.bubbleChartGridLineY} {
3255
+ stroke: rgba(149, 149, 149, 0.24);
3256
+ }
3257
+
3258
+ .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3259
+ font-size: 10px;
3260
+ }
3261
3261
  `;
3262
- const TooltipStyles = createGlobalStyle `
3263
- .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3264
- position: absolute;
3265
- transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3266
- pointer-events: none;
3267
- z-index: 1;
3268
- }
3262
+ const TooltipStyles = createGlobalStyle `
3263
+ .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3264
+ position: absolute;
3265
+ transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3266
+ pointer-events: none;
3267
+ z-index: 1;
3268
+ }
3269
3269
  `;
3270
3270
 
3271
3271
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -3302,14 +3302,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
3302
3302
  }
3303
3303
  };
3304
3304
 
3305
- const Tooltip = styled.div `
3306
- width: 0;
3307
- height: 0;
3308
- display: flex;
3309
- align-items: flex-end;
3310
- justify-content: center;
3311
- font-size: 12px;
3312
- white-space: nowrap;
3305
+ const Tooltip = styled.div `
3306
+ width: 0;
3307
+ height: 0;
3308
+ display: flex;
3309
+ align-items: flex-end;
3310
+ justify-content: center;
3311
+ font-size: 12px;
3312
+ white-space: nowrap;
3313
3313
  `;
3314
3314
 
3315
3315
  const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {