@evergis/charts 4.0.58 → 4.0.59

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.
@@ -7,10 +7,10 @@ import ReactDOMServer from 'react-dom/server';
7
7
  import { unmountComponentAtNode, render } from 'react-dom';
8
8
  import { AreaChart, XAxis, YAxis, Line, Dot, Area } from 'recharts';
9
9
 
10
- const Wrapper = styled.div `
11
- position: relative;
12
- width: 100%;
13
- box-sizing: border-box;
10
+ const Wrapper = styled.div `
11
+ position: relative;
12
+ width: 100%;
13
+ box-sizing: border-box;
14
14
  `;
15
15
 
16
16
  function useNode() {
@@ -212,66 +212,66 @@ const barChartClassNames = {
212
212
  ...labelClassnames,
213
213
  ...barChartLinesClassNames,
214
214
  };
215
- const SvgWrapper$5 = styled(Wrapper) `
216
- display: ${({ selectable }) => selectable && "inline-block"};
217
- user-select: ${({ selectable }) => selectable && "none"};
218
- width: ${({ selectable }) => selectable && "auto"};
219
-
220
- line {
221
- stroke-width: 1px;
222
- shape-rendering: crispEdges;
223
- }
224
-
225
- .${barChartClassNames.barChartGridLineX},
226
- .${barChartClassNames.barChartGridLineY} {
227
- stroke: rgba(48, 69, 79, 0.06);
228
- }
229
-
230
- .${barChartClassNames.barChartMouseRect} {
231
- }
232
-
233
- .${barChartClassNames.barChartMouseRect} {
234
- fill: none;
235
- pointer-events: all;
236
- }
237
-
238
- .${barChartClassNames.barChartLinesGlobal} {
239
- stroke-width: 1.5px;
240
- stroke-linejoin: round;
241
- stroke-linecap: round;
242
- }
243
-
244
- .${barChartClassNames.barChartLine} {
245
- shape-rendering: auto;
246
- }
247
-
248
- .${barChartClassNames.barChartArea} {
249
- fill-opacity: 0.24;
250
- }
251
-
252
- .${barChartClassNames.barChartSelection} {
253
- position: absolute;
254
- top: 0;
255
- width: 0;
256
- background: rgba(0, 170, 255, 0.06);
257
- box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
258
- pointer-events: none;
259
- }
215
+ const SvgWrapper$5 = styled(Wrapper) `
216
+ display: ${({ selectable }) => selectable && "inline-block"};
217
+ user-select: ${({ selectable }) => selectable && "none"};
218
+ width: ${({ selectable }) => selectable && "auto"};
219
+
220
+ line {
221
+ stroke-width: 1px;
222
+ shape-rendering: crispEdges;
223
+ }
224
+
225
+ .${barChartClassNames.barChartGridLineX},
226
+ .${barChartClassNames.barChartGridLineY} {
227
+ stroke: rgba(48, 69, 79, 0.06);
228
+ }
229
+
230
+ .${barChartClassNames.barChartMouseRect} {
231
+ }
232
+
233
+ .${barChartClassNames.barChartMouseRect} {
234
+ fill: none;
235
+ pointer-events: all;
236
+ }
237
+
238
+ .${barChartClassNames.barChartLinesGlobal} {
239
+ stroke-width: 1.5px;
240
+ stroke-linejoin: round;
241
+ stroke-linecap: round;
242
+ }
243
+
244
+ .${barChartClassNames.barChartLine} {
245
+ shape-rendering: auto;
246
+ }
247
+
248
+ .${barChartClassNames.barChartArea} {
249
+ fill-opacity: 0.24;
250
+ }
251
+
252
+ .${barChartClassNames.barChartSelection} {
253
+ position: absolute;
254
+ top: 0;
255
+ width: 0;
256
+ background: rgba(0, 170, 255, 0.06);
257
+ box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
258
+ pointer-events: none;
259
+ }
260
260
  `;
261
- const TooltipStyles$2 = createGlobalStyle `
262
- .${barChartClassNames.barChartMouseTooltip} {
263
- z-index: 100;
264
- transition: all linear 144ms;
265
-
266
- .${barChartClassNames.barChartTooltipItem} {
267
- padding: 0.125rem;
268
- margin-bottom: 4px;
269
-
270
- :last-of-type {
271
- margin-bottom: 0;
272
- }
273
- }
274
- }
261
+ const TooltipStyles$2 = createGlobalStyle `
262
+ .${barChartClassNames.barChartMouseTooltip} {
263
+ z-index: 100;
264
+ transition: all linear 144ms;
265
+
266
+ .${barChartClassNames.barChartTooltipItem} {
267
+ padding: 0.125rem;
268
+ margin-bottom: 4px;
269
+
270
+ :last-of-type {
271
+ margin-bottom: 0;
272
+ }
273
+ }
274
+ }
275
275
  `;
276
276
 
277
277
  const useSelection = (node, props) => {
@@ -541,90 +541,90 @@ const marshaling = ({ data, yScale, xScale, barWidth, barPadding, colors, margin
541
541
  return marshalledGroup;
542
542
  });
543
543
 
544
- const TooltipFlex$1 = styled.div `
545
- width: 0;
546
- height: 0;
547
- display: flex;
548
- align-items: flex-end;
549
- justify-content: center;
550
- pointer-events: none;
551
- white-space: nowrap;
544
+ const TooltipFlex$1 = styled.div `
545
+ width: 0;
546
+ height: 0;
547
+ display: flex;
548
+ align-items: flex-end;
549
+ justify-content: center;
550
+ pointer-events: none;
551
+ white-space: nowrap;
552
552
  `;
553
553
  const LabelFlex = styled(TooltipFlex$1) ``;
554
- const LabelFlexCenter = styled(LabelFlex) `
555
- align-items: center;
554
+ const LabelFlexCenter = styled(LabelFlex) `
555
+ align-items: center;
556
556
  `;
557
- const TooltipContainer = styled.div `
558
- position: relative;
559
- font-size: 11px;
560
- color: #fff;
561
- margin-bottom: 8px;
562
- padding: 4px 6px;
563
- background-color: rgba(48, 69, 79, 1);
564
- border-radius: 4px;
565
- box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
566
-
567
- :before {
568
- content: '';
569
- position: absolute;
570
- bottom: 0;
571
- left: 50%;
572
- transform: translate(-50%, 100%);
573
- width: 0;
574
- height: 0;
575
- border-style: solid;
576
- border-width: 4px 3px 0 3px;
577
- border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
578
- }
557
+ const TooltipContainer = styled.div `
558
+ position: relative;
559
+ font-size: 11px;
560
+ color: #fff;
561
+ margin-bottom: 8px;
562
+ padding: 4px 6px;
563
+ background-color: rgba(48, 69, 79, 1);
564
+ border-radius: 4px;
565
+ box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
566
+
567
+ :before {
568
+ content: '';
569
+ position: absolute;
570
+ bottom: 0;
571
+ left: 50%;
572
+ transform: translate(-50%, 100%);
573
+ width: 0;
574
+ height: 0;
575
+ border-style: solid;
576
+ border-width: 4px 3px 0 3px;
577
+ border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
578
+ }
579
579
  `;
580
- const TooltipGroupName = styled.div `
581
- font-size: 14px;
582
- margin-bottom: 6px;
580
+ const TooltipGroupName = styled.div `
581
+ font-size: 14px;
582
+ margin-bottom: 6px;
583
583
  `;
584
- const TooltipItem = styled.div `
585
- display: flex;
586
- align-items: center;
587
- margin-bottom: 0.25rem;
588
-
589
- &:last-of-type {
590
- margin-bottom: 0;
591
- }
584
+ const TooltipItem = styled.div `
585
+ display: flex;
586
+ align-items: center;
587
+ margin-bottom: 0.25rem;
588
+
589
+ &:last-of-type {
590
+ margin-bottom: 0;
591
+ }
592
592
  `;
593
- const ColFlex = styled.div `
594
- display: flex;
595
- align-items: center;
596
- margin-right: 4px;
593
+ const ColFlex = styled.div `
594
+ display: flex;
595
+ align-items: center;
596
+ margin-right: 4px;
597
597
  `;
598
- const ColorBox = styled.div `
599
- margin-right: 4px;
600
- width: 10px;
601
- height: 10px;
602
- border-radius: 2px;
598
+ const ColorBox = styled.div `
599
+ margin-right: 4px;
600
+ width: 10px;
601
+ height: 10px;
602
+ border-radius: 2px;
603
603
  `;
604
- const ColorLine = styled(ColorBox) `
605
- height: 2px;
606
- border-radius: 0;
604
+ const ColorLine = styled(ColorBox) `
605
+ height: 2px;
606
+ border-radius: 0;
607
607
  `;
608
- const Name$1 = styled.div `
609
- margin-right: 4px;
608
+ const Name$1 = styled.div `
609
+ margin-right: 4px;
610
610
  `;
611
- const Value = styled.div `
612
- text-align: right;
613
- flex-shrink: 0;
614
- flex-grow: 1;
611
+ const Value = styled.div `
612
+ text-align: right;
613
+ flex-shrink: 0;
614
+ flex-grow: 1;
615
615
  `;
616
- const Label$2 = styled.div `
617
- position: relative;
618
- font-size: 11px;
619
- color: #fff;
620
- font-weight: bold;
621
- letter-spacing: 0.52px;
616
+ const Label$2 = styled.div `
617
+ position: relative;
618
+ font-size: 11px;
619
+ color: #fff;
620
+ font-weight: bold;
621
+ letter-spacing: 0.52px;
622
622
  `;
623
- const LabelTop = styled(Label$2) `
624
- top: 6px;
623
+ const LabelTop = styled(Label$2) `
624
+ top: 6px;
625
625
  `;
626
- const LabelBottom = styled(Label$2) `
627
- bottom: 6px;
626
+ const LabelBottom = styled(Label$2) `
627
+ bottom: 6px;
628
628
  `;
629
629
 
630
630
  const getLabelY = (labelPosition, y2, item) => {
@@ -1185,29 +1185,29 @@ const bubbleChartClassNames = {
1185
1185
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
1186
1186
  bubbleChartTip: "bubbleChartTip",
1187
1187
  };
1188
- const SvgWrapper$4 = styled(Wrapper) `
1189
- .${bubbleChartClassNames.bubbleChartYAxis},
1190
- .${bubbleChartClassNames.bubbleChartXAxis},
1191
- .${bubbleChartClassNames.bubbleChartGridGlobal} {
1192
- shape-rendering: crispEdges;
1193
- }
1194
-
1195
- .${bubbleChartClassNames.bubbleChartGridLineX},
1196
- .${bubbleChartClassNames.bubbleChartGridLineY} {
1197
- stroke: rgba(149, 149, 149, 0.24);
1198
- }
1199
-
1200
- .${bubbleChartClassNames.bubbleChartYScaleLabel} {
1201
- font-size: 10px;
1202
- }
1188
+ const SvgWrapper$4 = styled(Wrapper) `
1189
+ .${bubbleChartClassNames.bubbleChartYAxis},
1190
+ .${bubbleChartClassNames.bubbleChartXAxis},
1191
+ .${bubbleChartClassNames.bubbleChartGridGlobal} {
1192
+ shape-rendering: crispEdges;
1193
+ }
1194
+
1195
+ .${bubbleChartClassNames.bubbleChartGridLineX},
1196
+ .${bubbleChartClassNames.bubbleChartGridLineY} {
1197
+ stroke: rgba(149, 149, 149, 0.24);
1198
+ }
1199
+
1200
+ .${bubbleChartClassNames.bubbleChartYScaleLabel} {
1201
+ font-size: 10px;
1202
+ }
1203
1203
  `;
1204
- const TooltipStyles$1 = createGlobalStyle `
1205
- .${bubbleChartClassNames.bubbleChartTooltipContainer} {
1206
- position: absolute;
1207
- transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
1208
- pointer-events: none;
1209
- z-index: 1;
1210
- }
1204
+ const TooltipStyles$1 = createGlobalStyle `
1205
+ .${bubbleChartClassNames.bubbleChartTooltipContainer} {
1206
+ position: absolute;
1207
+ transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
1208
+ pointer-events: none;
1209
+ z-index: 1;
1210
+ }
1211
1211
  `;
1212
1212
 
1213
1213
  const drawGrid$1 = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -1244,14 +1244,14 @@ const drawGrid$1 = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, })
1244
1244
  }
1245
1245
  };
1246
1246
 
1247
- const Tooltip$1 = styled.div `
1248
- width: 0;
1249
- height: 0;
1250
- display: flex;
1251
- align-items: flex-end;
1252
- justify-content: center;
1253
- font-size: 12px;
1254
- white-space: nowrap;
1247
+ const Tooltip$1 = styled.div `
1248
+ width: 0;
1249
+ height: 0;
1250
+ display: flex;
1251
+ align-items: flex-end;
1252
+ justify-content: center;
1253
+ font-size: 12px;
1254
+ white-space: nowrap;
1255
1255
  `;
1256
1256
 
1257
1257
  const drawTooltip$2 = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {
@@ -1592,53 +1592,53 @@ const calendarChartClassNames = {
1592
1592
  ...legendClassNames,
1593
1593
  };
1594
1594
  const headerHeight = "20px";
1595
- const SvgWrapper$3 = styled(Wrapper) `
1596
- .${calendarChartClassNames.calendarYear} {
1597
- display: flex;
1598
- margin-bottom: 16px;
1599
- }
1600
-
1601
- .${calendarChartClassNames.calendarYearTitle} {
1602
- display: inline-flex;
1603
- align-items: flex-end;
1604
- height: ${headerHeight};
1605
- margin-bottom: 4px;
1606
- font-weight: bold;
1607
- }
1608
-
1609
- .${calendarChartClassNames.calendarHeader} {
1610
- height: ${headerHeight};
1611
- margin-bottom: 4px;
1612
- position: relative;
1613
- display: flex;
1614
- }
1615
-
1616
- .${calendarChartClassNames.calendarMonth} {
1617
- font-size: 14px;
1618
- bottom: 0;
1619
- position: absolute;
1620
- }
1621
-
1622
- .${calendarChartClassNames.calendarAxis} {
1623
- display: flex;
1624
- flex-direction: column;
1625
- margin-right: 10px;
1626
- }
1627
-
1628
- .${calendarChartClassNames.calendarWeekDay} {
1629
- font-size: 12px;
1630
- display: inline-flex;
1631
- align-items: center;
1632
- justify-content: flex-end;
1633
- }
1634
-
1635
- .${calendarChartClassNames.calendarDays} {
1636
- position: relative;
1637
- }
1638
-
1639
- .${calendarChartClassNames.calendarDay} {
1640
- position: absolute;
1641
- }
1595
+ const SvgWrapper$3 = styled(Wrapper) `
1596
+ .${calendarChartClassNames.calendarYear} {
1597
+ display: flex;
1598
+ margin-bottom: 16px;
1599
+ }
1600
+
1601
+ .${calendarChartClassNames.calendarYearTitle} {
1602
+ display: inline-flex;
1603
+ align-items: flex-end;
1604
+ height: ${headerHeight};
1605
+ margin-bottom: 4px;
1606
+ font-weight: bold;
1607
+ }
1608
+
1609
+ .${calendarChartClassNames.calendarHeader} {
1610
+ height: ${headerHeight};
1611
+ margin-bottom: 4px;
1612
+ position: relative;
1613
+ display: flex;
1614
+ }
1615
+
1616
+ .${calendarChartClassNames.calendarMonth} {
1617
+ font-size: 14px;
1618
+ bottom: 0;
1619
+ position: absolute;
1620
+ }
1621
+
1622
+ .${calendarChartClassNames.calendarAxis} {
1623
+ display: flex;
1624
+ flex-direction: column;
1625
+ margin-right: 10px;
1626
+ }
1627
+
1628
+ .${calendarChartClassNames.calendarWeekDay} {
1629
+ font-size: 12px;
1630
+ display: inline-flex;
1631
+ align-items: center;
1632
+ justify-content: flex-end;
1633
+ }
1634
+
1635
+ .${calendarChartClassNames.calendarDays} {
1636
+ position: relative;
1637
+ }
1638
+
1639
+ .${calendarChartClassNames.calendarDay} {
1640
+ position: absolute;
1641
+ }
1642
1642
  `;
1643
1643
 
1644
1644
  const draw$3 = (node, props) => {
@@ -1851,45 +1851,45 @@ const horizontalBarChartClassNames = {
1851
1851
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
1852
1852
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
1853
1853
  };
1854
- const Table = styled.table `
1855
- width: 100%;
1854
+ const Table = styled.table `
1855
+ width: 100%;
1856
1856
  `;
1857
- const LabelCell = styled.div `
1858
- text-align: right;
1857
+ const LabelCell = styled.div `
1858
+ text-align: right;
1859
1859
  `;
1860
- const BarFlex = styled.div `
1861
- width: 100%;
1862
- display: flex;
1863
- height: 1rem;
1860
+ const BarFlex = styled.div `
1861
+ width: 100%;
1862
+ display: flex;
1863
+ height: 1rem;
1864
1864
  `;
1865
- const BarsTd = styled.td `
1866
- width: 100%;
1867
- position: relative;
1868
- vertical-align: middle;
1865
+ const BarsTd = styled.td `
1866
+ width: 100%;
1867
+ position: relative;
1868
+ vertical-align: middle;
1869
1869
  `;
1870
- const TooltipFlex = styled(TooltipFlex$1) `
1871
- position: absolute;
1872
- top: 0;
1873
- left: 50%;
1874
- transform: translate(-50%, -50%);
1875
- will-change: left, top;
1870
+ const TooltipFlex = styled(TooltipFlex$1) `
1871
+ position: absolute;
1872
+ top: 0;
1873
+ left: 50%;
1874
+ transform: translate(-50%, -50%);
1875
+ will-change: left, top;
1876
1876
  `;
1877
- const StackSumContainer = styled.div `
1878
- position: relative;
1877
+ const StackSumContainer = styled.div `
1878
+ position: relative;
1879
1879
  `;
1880
- const StackSum = styled.div `
1881
- white-space: nowrap;
1882
- position: absolute;
1883
- top: 50%;
1884
- left: 50%;
1885
- transform: translate(0, -50%);
1880
+ const StackSum = styled.div `
1881
+ white-space: nowrap;
1882
+ position: absolute;
1883
+ top: 50%;
1884
+ left: 50%;
1885
+ transform: translate(0, -50%);
1886
1886
  `;
1887
- const StackWrapper = styled.div `
1888
- position: absolute;
1889
- top: 0;
1890
- display: flex;
1891
- justify-content: flex-start;
1892
- height: 100%;
1887
+ const StackWrapper = styled.div `
1888
+ position: absolute;
1889
+ top: 0;
1890
+ display: flex;
1891
+ justify-content: flex-start;
1892
+ height: 100%;
1893
1893
  `;
1894
1894
 
1895
1895
  const Tooltip = ({ renderTooltip, bars, style, className, }) => {
@@ -1941,10 +1941,10 @@ const useStackWrapper = (stackedTooltip) => {
1941
1941
  : ({ children }) => (jsx(Fragment$1, { children: children })), [stackedTooltip]);
1942
1942
  };
1943
1943
 
1944
- const BarStyled = styled.div `
1945
- position: relative;
1946
- display: inline-flex;
1947
- height: 100%;
1944
+ const BarStyled = styled.div `
1945
+ position: relative;
1946
+ display: inline-flex;
1947
+ height: 100%;
1948
1948
  `;
1949
1949
 
1950
1950
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -1961,23 +1961,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
1961
1961
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
1962
1962
  };
1963
1963
 
1964
- const TickTd = styled.td `
1965
- position: relative;
1964
+ const TickTd = styled.td `
1965
+ position: relative;
1966
1966
  `;
1967
- const Ticks = styled.div `
1968
- position: relative;
1969
- height: 1rem;
1967
+ const Ticks = styled.div `
1968
+ position: relative;
1969
+ height: 1rem;
1970
1970
  `;
1971
- const Tick = styled.div `
1972
- white-space: nowrap;
1973
- width: 0;
1974
- height: 0;
1975
- position: absolute;
1976
- top: 50%;
1977
- transform: translateY(-50%);
1978
- display: flex;
1979
- align-items: center;
1980
- justify-content: center;
1971
+ const Tick = styled.div `
1972
+ white-space: nowrap;
1973
+ width: 0;
1974
+ height: 0;
1975
+ position: absolute;
1976
+ top: 50%;
1977
+ transform: translateY(-50%);
1978
+ display: flex;
1979
+ align-items: center;
1980
+ justify-content: center;
1981
1981
  `;
1982
1982
 
1983
1983
  const hundred = 100;
@@ -2047,12 +2047,12 @@ HorizontalBarChart.defaultProps = {
2047
2047
  withoutXScale: false,
2048
2048
  };
2049
2049
 
2050
- const InterpolateLineChartContainer = styled.div `
2051
- svg:focus,
2052
- g:focus,
2053
- path:focus {
2054
- outline: none;
2055
- }
2050
+ const InterpolateLineChartContainer = styled.div `
2051
+ svg:focus,
2052
+ g:focus,
2053
+ path:focus {
2054
+ outline: none;
2055
+ }
2056
2056
  `;
2057
2057
 
2058
2058
  const formatChartData = (data) => {
@@ -2165,67 +2165,67 @@ const lineChartClassNames = {
2165
2165
  lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
2166
2166
  lineChartMouseLabel: "lineChartMouseLabel",
2167
2167
  };
2168
- const SvgWrapper$2 = styled(Wrapper) `
2169
- .${lineChartClassNames.lineChartYScaleGlobal},
2170
- .${lineChartClassNames.lineChartXScaleGlobal},
2171
- .${lineChartClassNames.lineChartGridGlobal} {
2172
- shape-rendering: crispEdges;
2173
- }
2174
-
2175
- .${lineChartClassNames.lineChartLinesGlobal} {
2176
- fill: none;
2177
- stroke: steelblue;
2178
- stroke-width: 1.5px;
2179
- stroke-linejoin: round;
2180
- stroke-linecap: round;
2181
- }
2182
-
2183
- .${lineChartClassNames.lineChartArea} {
2184
- fill-opacity: 0.24;
2185
- }
2186
-
2187
- .${lineChartClassNames.lineChartGridLineX},
2188
- .${lineChartClassNames.lineChartGridLineY},
2189
- .${lineChartClassNames.lineChartMouseLine} {
2190
- stroke: rgba(149, 149, 149, 0.24);
2191
- }
2192
-
2193
- .${lineChartClassNames.lineChartMouseLine},
2194
- .${lineChartClassNames.lineChartMouseCircle} {
2195
- transition: opacity linear 200ms;
2196
- pointer-events: none;
2197
- stroke-width: 1px;
2198
- }
2199
-
2200
- .${lineChartClassNames.lineChartDot} {
2201
- stroke: #fff;
2202
- stroke-width: 2px;
2203
- }
2204
-
2205
- .${lineChartClassNames.lineChartMouseLine} {
2206
- shape-rendering: crispEdges;
2207
- }
2208
-
2209
- .${lineChartClassNames.lineChartMouseRect} {
2210
- fill: none;
2211
- pointer-events: all;
2212
- }
2168
+ const SvgWrapper$2 = styled(Wrapper) `
2169
+ .${lineChartClassNames.lineChartYScaleGlobal},
2170
+ .${lineChartClassNames.lineChartXScaleGlobal},
2171
+ .${lineChartClassNames.lineChartGridGlobal} {
2172
+ shape-rendering: crispEdges;
2173
+ }
2174
+
2175
+ .${lineChartClassNames.lineChartLinesGlobal} {
2176
+ fill: none;
2177
+ stroke: steelblue;
2178
+ stroke-width: 1.5px;
2179
+ stroke-linejoin: round;
2180
+ stroke-linecap: round;
2181
+ }
2182
+
2183
+ .${lineChartClassNames.lineChartArea} {
2184
+ fill-opacity: 0.24;
2185
+ }
2186
+
2187
+ .${lineChartClassNames.lineChartGridLineX},
2188
+ .${lineChartClassNames.lineChartGridLineY},
2189
+ .${lineChartClassNames.lineChartMouseLine} {
2190
+ stroke: rgba(149, 149, 149, 0.24);
2191
+ }
2192
+
2193
+ .${lineChartClassNames.lineChartMouseLine},
2194
+ .${lineChartClassNames.lineChartMouseCircle} {
2195
+ transition: opacity linear 200ms;
2196
+ pointer-events: none;
2197
+ stroke-width: 1px;
2198
+ }
2199
+
2200
+ .${lineChartClassNames.lineChartDot} {
2201
+ stroke: #fff;
2202
+ stroke-width: 2px;
2203
+ }
2204
+
2205
+ .${lineChartClassNames.lineChartMouseLine} {
2206
+ shape-rendering: crispEdges;
2207
+ }
2208
+
2209
+ .${lineChartClassNames.lineChartMouseRect} {
2210
+ fill: none;
2211
+ pointer-events: all;
2212
+ }
2213
2213
  `;
2214
- const TooltipStyles = createGlobalStyle `
2215
- .${lineChartClassNames.lineChartMouseLabel} {
2216
- transition: opacity linear 200ms;
2217
- z-index: 100;
2218
-
2219
- .${lineChartClassNames.lineChartLabelFlex} {
2220
- justify-content: flex-start;
2221
- align-items: center;
2222
- pointer-events: none;
2223
- }
2224
-
2225
- .${lineChartClassNames.lineChartLabel} {
2226
- margin: 0 0 0 10px;
2227
- }
2228
- }
2214
+ const TooltipStyles = createGlobalStyle `
2215
+ .${lineChartClassNames.lineChartMouseLabel} {
2216
+ transition: opacity linear 200ms;
2217
+ z-index: 100;
2218
+
2219
+ .${lineChartClassNames.lineChartLabelFlex} {
2220
+ justify-content: flex-start;
2221
+ align-items: center;
2222
+ pointer-events: none;
2223
+ }
2224
+
2225
+ .${lineChartClassNames.lineChartLabel} {
2226
+ margin: 0 0 0 10px;
2227
+ }
2228
+ }
2229
2229
  `;
2230
2230
 
2231
2231
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
@@ -2261,17 +2261,17 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, draw
2261
2261
  }
2262
2262
  };
2263
2263
 
2264
- const LabelContainer$1 = styled.div `
2265
- width: 0;
2266
- height: 0;
2267
- display: flex;
2268
- align-items: flex-end;
2269
- justify-content: center;
2270
- font-size: 12px;
2271
- white-space: nowrap;
2264
+ const LabelContainer$1 = styled.div `
2265
+ width: 0;
2266
+ height: 0;
2267
+ display: flex;
2268
+ align-items: flex-end;
2269
+ justify-content: center;
2270
+ font-size: 12px;
2271
+ white-space: nowrap;
2272
2272
  `;
2273
- const Label$1 = styled.div `
2274
- margin-bottom: 4px;
2273
+ const Label$1 = styled.div `
2274
+ margin-bottom: 4px;
2275
2275
  `;
2276
2276
 
2277
2277
  const labelClassName$1 = "d3-chart-label";
@@ -2830,24 +2830,24 @@ const pieChartclassNames = {
2830
2830
  pieTooltipColorBox: 'pieTooltipColorBox',
2831
2831
  pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
2832
2832
  };
2833
- const SvgWrapper$1 = styled(Wrapper) `
2834
- .${pieChartclassNames.pieSliceLabel} {
2835
- fill: #4a4a4a;
2836
- }
2837
-
2838
- .${pieChartclassNames.pieRadialLabel} {
2839
- position: absolute;
2840
- max-width: 128px;
2841
- }
2842
-
2843
- .${pieChartclassNames.pieRadialLink} {
2844
- stroke: #000;
2845
- }
2846
-
2847
- .${pieChartclassNames.pieFullChartTooltipCircle} {
2848
- fill: transparent;
2849
- cursor: pointer;
2850
- }
2833
+ const SvgWrapper$1 = styled(Wrapper) `
2834
+ .${pieChartclassNames.pieSliceLabel} {
2835
+ fill: #4a4a4a;
2836
+ }
2837
+
2838
+ .${pieChartclassNames.pieRadialLabel} {
2839
+ position: absolute;
2840
+ max-width: 128px;
2841
+ }
2842
+
2843
+ .${pieChartclassNames.pieRadialLink} {
2844
+ stroke: #000;
2845
+ }
2846
+
2847
+ .${pieChartclassNames.pieFullChartTooltipCircle} {
2848
+ fill: transparent;
2849
+ cursor: pointer;
2850
+ }
2851
2851
  `;
2852
2852
 
2853
2853
  function radiansToDegrees(radians) {
@@ -2880,37 +2880,37 @@ const getTranslate$1 = ({ anchor, index, translateX, translateY, }) => {
2880
2880
  }
2881
2881
  return `translate(${translateX}px, ${translateY}px)`;
2882
2882
  };
2883
- const Label = styled.div `
2884
- display: flex;
2885
- align-items: center;
2886
- font-size: 12px;
2883
+ const Label = styled.div `
2884
+ display: flex;
2885
+ align-items: center;
2886
+ font-size: 12px;
2887
2887
  `;
2888
- const Name = styled.div `
2889
- text-align: center;
2890
- max-width: 120px;
2888
+ const Name = styled.div `
2889
+ text-align: center;
2890
+ max-width: 120px;
2891
2891
  `;
2892
- const middleBadgeStyles = css `
2893
- position: absolute;
2894
- top: 50%;
2895
- right: 0;
2896
- transform: translate(calc(100% + 6px), -50%);
2892
+ const middleBadgeStyles = css `
2893
+ position: absolute;
2894
+ top: 50%;
2895
+ right: 0;
2896
+ transform: translate(calc(100% + 6px), -50%);
2897
2897
  `;
2898
- const DefaultBadge = styled.div `
2899
- display: flex;
2900
- align-items: center;
2901
- padding: 2px 4px;
2902
- border-radius: 4px;
2903
- color: rgb(255, 255, 255);
2904
- background-color: rgb(144, 197, 61);
2905
- margin-left: 8px;
2898
+ const DefaultBadge = styled.div `
2899
+ display: flex;
2900
+ align-items: center;
2901
+ padding: 2px 4px;
2902
+ border-radius: 4px;
2903
+ color: rgb(255, 255, 255);
2904
+ background-color: rgb(144, 197, 61);
2905
+ margin-left: 8px;
2906
2906
  `;
2907
- const MiddleBadge = styled(DefaultBadge) `
2908
- ${middleBadgeStyles}
2907
+ const MiddleBadge = styled(DefaultBadge) `
2908
+ ${middleBadgeStyles}
2909
2909
  `;
2910
- const BadgePrefix = styled.div `
2911
- margin-left: 4px;
2912
- font-size: 10px;
2913
- color: rgba(255, 255, 255, 0.54);
2910
+ const BadgePrefix = styled.div `
2911
+ margin-left: 4px;
2912
+ font-size: 10px;
2913
+ color: rgba(255, 255, 255, 0.54);
2914
2914
  `;
2915
2915
 
2916
2916
  const drawRadialLabels$1 = ({ arc, enableRadialLabels, global, node, radius, dataReady, radialLabelsLinkHorizontalLength, formatRadialLabel, radialLabelsTextXOffset, translateX, translateY, radialLabelYOffset, radialAngleXOffset, }) => {
@@ -3312,29 +3312,29 @@ const radarChartclassNames = {
3312
3312
  radarLabelBadgePrefix: 'radarLabelBadgePrefix',
3313
3313
  radarCircle: 'radarCircle',
3314
3314
  };
3315
- const SvgWrapper = styled(Wrapper) `
3316
- .${radarChartclassNames.radarAxis} {
3317
- path,
3318
- line,
3319
- circle {
3320
- fill: none;
3321
- stroke-width: 1px;
3322
- stroke: rgba(149, 149, 149, 0.18);
3323
- }
3324
- }
3325
- .${radarChartclassNames.radarAxisText} {
3326
- font-size: 12px;
3327
- fill-opacity: 0.56;
3328
- }
3329
- .${radarChartclassNames.radarPolygon} {
3330
- fill-opacity: 0.06;
3331
- stroke-width: 2px;
3332
- fill: rgb(144, 197, 61);
3333
- stroke: rgb(144, 197, 61);
3334
- }
3335
- .${radarChartclassNames.radarCircle} {
3336
- fill: rgb(144, 197, 61);
3337
- }
3315
+ const SvgWrapper = styled(Wrapper) `
3316
+ .${radarChartclassNames.radarAxis} {
3317
+ path,
3318
+ line,
3319
+ circle {
3320
+ fill: none;
3321
+ stroke-width: 1px;
3322
+ stroke: rgba(149, 149, 149, 0.18);
3323
+ }
3324
+ }
3325
+ .${radarChartclassNames.radarAxisText} {
3326
+ font-size: 12px;
3327
+ fill-opacity: 0.56;
3328
+ }
3329
+ .${radarChartclassNames.radarPolygon} {
3330
+ fill-opacity: 0.06;
3331
+ stroke-width: 2px;
3332
+ fill: rgb(144, 197, 61);
3333
+ stroke: rgb(144, 197, 61);
3334
+ }
3335
+ .${radarChartclassNames.radarCircle} {
3336
+ fill: rgb(144, 197, 61);
3337
+ }
3338
3338
  `;
3339
3339
 
3340
3340
  const getTranslate = ({ anchor, index, translateX, translateY, }) => {
@@ -3356,8 +3356,8 @@ const LabelContainer = styled.div.attrs(props => ({
3356
3356
  style: {
3357
3357
  transform: getTranslate(props),
3358
3358
  },
3359
- })) `
3360
- position: absolute;
3359
+ })) `
3360
+ position: absolute;
3361
3361
  `;
3362
3362
 
3363
3363
  const degByIndex = (index, count) => {
@@ -3604,10 +3604,10 @@ RadarChart.defaultProps = {
3604
3604
  curve: d3.curveLinearClosed,
3605
3605
  };
3606
3606
 
3607
- const SwipeScrollContainer = styled.div `
3608
- width: 100%;
3609
- overflow: hidden;
3610
- user-select: none;
3607
+ const SwipeScrollContainer = styled.div `
3608
+ width: 100%;
3609
+ overflow: hidden;
3610
+ user-select: none;
3611
3611
  `;
3612
3612
 
3613
3613
  function animate({ duration, timing, draw, }) {