@evergis/charts 3.1.18 → 3.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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";
@@ -2170,66 +2170,66 @@ const barChartClassNames = {
2170
2170
  ...labelClassnames,
2171
2171
  ...barChartLinesClassNames,
2172
2172
  };
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
- }
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
+ }
2218
2218
  `;
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
- }
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
+ }
2233
2233
  `;
2234
2234
 
2235
2235
  const useSelection = (node, props) => {
@@ -3037,45 +3037,45 @@ const horizontalBarChartClassNames = {
3037
3037
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
3038
3038
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
3039
3039
  };
3040
- const Table = styled.table `
3041
- width: 100%;
3040
+ const Table = styled.table `
3041
+ width: 100%;
3042
3042
  `;
3043
- const LabelCell = styled.div `
3044
- text-align: right;
3043
+ const LabelCell = styled.div `
3044
+ text-align: right;
3045
3045
  `;
3046
- const BarFlex = styled.div `
3047
- width: 100%;
3048
- display: flex;
3049
- height: 1rem;
3046
+ const BarFlex = styled.div `
3047
+ width: 100%;
3048
+ display: flex;
3049
+ height: 1rem;
3050
3050
  `;
3051
- const BarsTd = styled.td `
3052
- width: 100%;
3053
- position: relative;
3054
- vertical-align: middle;
3051
+ const BarsTd = styled.td `
3052
+ width: 100%;
3053
+ position: relative;
3054
+ vertical-align: middle;
3055
3055
  `;
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;
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;
3062
3062
  `;
3063
- const StackSumContainer = styled.div `
3064
- position: relative;
3063
+ const StackSumContainer = styled.div `
3064
+ position: relative;
3065
3065
  `;
3066
- const StackSum = styled.div `
3067
- white-space: nowrap;
3068
- position: absolute;
3069
- top: 50%;
3070
- left: 50%;
3071
- 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%);
3072
3072
  `;
3073
- const StackWrapper = styled.div `
3074
- position: absolute;
3075
- top: 0;
3076
- display: flex;
3077
- justify-content: flex-start;
3078
- height: 100%;
3073
+ const StackWrapper = styled.div `
3074
+ position: absolute;
3075
+ top: 0;
3076
+ display: flex;
3077
+ justify-content: flex-start;
3078
+ height: 100%;
3079
3079
  `;
3080
3080
 
3081
3081
  const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
@@ -3127,10 +3127,10 @@ const useStackWrapper = (stackedTooltip) => {
3127
3127
  : ({ children }) => (jsx(Fragment$1, { children: children })), [stackedTooltip]);
3128
3128
  };
3129
3129
 
3130
- const BarStyled = styled.div `
3131
- position: relative;
3132
- display: inline-flex;
3133
- height: 100%;
3130
+ const BarStyled = styled.div `
3131
+ position: relative;
3132
+ display: inline-flex;
3133
+ height: 100%;
3134
3134
  `;
3135
3135
 
3136
3136
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -3147,23 +3147,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
3147
3147
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
3148
3148
  };
3149
3149
 
3150
- const TickTd = styled.td `
3151
- position: relative;
3150
+ const TickTd = styled.td `
3151
+ position: relative;
3152
3152
  `;
3153
- const Ticks = styled.div `
3154
- position: relative;
3155
- height: 1rem;
3153
+ const Ticks = styled.div `
3154
+ position: relative;
3155
+ height: 1rem;
3156
3156
  `;
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;
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;
3167
3167
  `;
3168
3168
 
3169
3169
  const hundred = 100;
@@ -3262,29 +3262,29 @@ const bubbleChartClassNames = {
3262
3262
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
3263
3263
  bubbleChartTip: "bubbleChartTip",
3264
3264
  };
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
- }
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
+ }
3280
3280
  `;
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
- }
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
+ }
3288
3288
  `;
3289
3289
 
3290
3290
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -3321,14 +3321,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
3321
3321
  }
3322
3322
  };
3323
3323
 
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;
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;
3332
3332
  `;
3333
3333
 
3334
3334
  const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {