@evergis/charts 4.0.60-alpha.0 → 4.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +25 -25
- package/dist/charts.esm.js +411 -411
- package/dist/index.js +411 -411
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -28,10 +28,10 @@ function _interopNamespaceDefault(e) {
|
|
|
28
28
|
|
|
29
29
|
var d3__namespace = /*#__PURE__*/_interopNamespaceDefault(d3);
|
|
30
30
|
|
|
31
|
-
const Wrapper = styled.div `
|
|
32
|
-
position: relative;
|
|
33
|
-
width: 100%;
|
|
34
|
-
box-sizing: border-box;
|
|
31
|
+
const Wrapper = styled.div `
|
|
32
|
+
position: relative;
|
|
33
|
+
width: 100%;
|
|
34
|
+
box-sizing: border-box;
|
|
35
35
|
`;
|
|
36
36
|
|
|
37
37
|
function useNode() {
|
|
@@ -233,66 +233,66 @@ const barChartClassNames = {
|
|
|
233
233
|
...labelClassnames,
|
|
234
234
|
...barChartLinesClassNames,
|
|
235
235
|
};
|
|
236
|
-
const SvgWrapper$5 = styled(Wrapper) `
|
|
237
|
-
display: ${({ selectable }) => selectable && "inline-block"};
|
|
238
|
-
user-select: ${({ selectable }) => selectable && "none"};
|
|
239
|
-
width: ${({ selectable }) => selectable && "auto"};
|
|
240
|
-
|
|
241
|
-
line {
|
|
242
|
-
stroke-width: 1px;
|
|
243
|
-
shape-rendering: crispEdges;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.${barChartClassNames.barChartGridLineX},
|
|
247
|
-
.${barChartClassNames.barChartGridLineY} {
|
|
248
|
-
stroke: rgba(48, 69, 79, 0.06);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.${barChartClassNames.barChartMouseRect} {
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.${barChartClassNames.barChartMouseRect} {
|
|
255
|
-
fill: none;
|
|
256
|
-
pointer-events: all;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.${barChartClassNames.barChartLinesGlobal} {
|
|
260
|
-
stroke-width: 1.5px;
|
|
261
|
-
stroke-linejoin: round;
|
|
262
|
-
stroke-linecap: round;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.${barChartClassNames.barChartLine} {
|
|
266
|
-
shape-rendering: auto;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.${barChartClassNames.barChartArea} {
|
|
270
|
-
fill-opacity: 0.24;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.${barChartClassNames.barChartSelection} {
|
|
274
|
-
position: absolute;
|
|
275
|
-
top: 0;
|
|
276
|
-
width: 0;
|
|
277
|
-
background: rgba(0, 170, 255, 0.06);
|
|
278
|
-
box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
|
|
279
|
-
pointer-events: none;
|
|
280
|
-
}
|
|
236
|
+
const SvgWrapper$5 = styled(Wrapper) `
|
|
237
|
+
display: ${({ selectable }) => selectable && "inline-block"};
|
|
238
|
+
user-select: ${({ selectable }) => selectable && "none"};
|
|
239
|
+
width: ${({ selectable }) => selectable && "auto"};
|
|
240
|
+
|
|
241
|
+
line {
|
|
242
|
+
stroke-width: 1px;
|
|
243
|
+
shape-rendering: crispEdges;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.${barChartClassNames.barChartGridLineX},
|
|
247
|
+
.${barChartClassNames.barChartGridLineY} {
|
|
248
|
+
stroke: rgba(48, 69, 79, 0.06);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.${barChartClassNames.barChartMouseRect} {
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.${barChartClassNames.barChartMouseRect} {
|
|
255
|
+
fill: none;
|
|
256
|
+
pointer-events: all;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.${barChartClassNames.barChartLinesGlobal} {
|
|
260
|
+
stroke-width: 1.5px;
|
|
261
|
+
stroke-linejoin: round;
|
|
262
|
+
stroke-linecap: round;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.${barChartClassNames.barChartLine} {
|
|
266
|
+
shape-rendering: auto;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.${barChartClassNames.barChartArea} {
|
|
270
|
+
fill-opacity: 0.24;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.${barChartClassNames.barChartSelection} {
|
|
274
|
+
position: absolute;
|
|
275
|
+
top: 0;
|
|
276
|
+
width: 0;
|
|
277
|
+
background: rgba(0, 170, 255, 0.06);
|
|
278
|
+
box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
|
|
279
|
+
pointer-events: none;
|
|
280
|
+
}
|
|
281
281
|
`;
|
|
282
|
-
const TooltipStyles$2 = styled.createGlobalStyle `
|
|
283
|
-
.${barChartClassNames.barChartMouseTooltip} {
|
|
284
|
-
z-index: 100;
|
|
285
|
-
transition: all linear 144ms;
|
|
286
|
-
|
|
287
|
-
.${barChartClassNames.barChartTooltipItem} {
|
|
288
|
-
padding: 0.125rem;
|
|
289
|
-
margin-bottom: 4px;
|
|
290
|
-
|
|
291
|
-
:last-of-type {
|
|
292
|
-
margin-bottom: 0;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
282
|
+
const TooltipStyles$2 = styled.createGlobalStyle `
|
|
283
|
+
.${barChartClassNames.barChartMouseTooltip} {
|
|
284
|
+
z-index: 100;
|
|
285
|
+
transition: all linear 144ms;
|
|
286
|
+
|
|
287
|
+
.${barChartClassNames.barChartTooltipItem} {
|
|
288
|
+
padding: 0.125rem;
|
|
289
|
+
margin-bottom: 4px;
|
|
290
|
+
|
|
291
|
+
:last-of-type {
|
|
292
|
+
margin-bottom: 0;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
296
|
`;
|
|
297
297
|
|
|
298
298
|
const useSelection = (node, props) => {
|
|
@@ -562,90 +562,90 @@ const marshaling = ({ data, yScale, xScale, barWidth, barPadding, colors, margin
|
|
|
562
562
|
return marshalledGroup;
|
|
563
563
|
});
|
|
564
564
|
|
|
565
|
-
const TooltipFlex$1 = styled.div `
|
|
566
|
-
width: 0;
|
|
567
|
-
height: 0;
|
|
568
|
-
display: flex;
|
|
569
|
-
align-items: flex-end;
|
|
570
|
-
justify-content: center;
|
|
571
|
-
pointer-events: none;
|
|
572
|
-
white-space: nowrap;
|
|
565
|
+
const TooltipFlex$1 = styled.div `
|
|
566
|
+
width: 0;
|
|
567
|
+
height: 0;
|
|
568
|
+
display: flex;
|
|
569
|
+
align-items: flex-end;
|
|
570
|
+
justify-content: center;
|
|
571
|
+
pointer-events: none;
|
|
572
|
+
white-space: nowrap;
|
|
573
573
|
`;
|
|
574
574
|
const LabelFlex = styled(TooltipFlex$1) ``;
|
|
575
|
-
const LabelFlexCenter = styled(LabelFlex) `
|
|
576
|
-
align-items: center;
|
|
575
|
+
const LabelFlexCenter = styled(LabelFlex) `
|
|
576
|
+
align-items: center;
|
|
577
577
|
`;
|
|
578
|
-
const TooltipContainer = styled.div `
|
|
579
|
-
position: relative;
|
|
580
|
-
font-size: 11px;
|
|
581
|
-
color: #fff;
|
|
582
|
-
margin-bottom: 8px;
|
|
583
|
-
padding: 4px 6px;
|
|
584
|
-
background-color: rgba(48, 69, 79, 1);
|
|
585
|
-
border-radius: 4px;
|
|
586
|
-
box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
|
|
587
|
-
|
|
588
|
-
:before {
|
|
589
|
-
content: '';
|
|
590
|
-
position: absolute;
|
|
591
|
-
bottom: 0;
|
|
592
|
-
left: 50%;
|
|
593
|
-
transform: translate(-50%, 100%);
|
|
594
|
-
width: 0;
|
|
595
|
-
height: 0;
|
|
596
|
-
border-style: solid;
|
|
597
|
-
border-width: 4px 3px 0 3px;
|
|
598
|
-
border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
|
|
599
|
-
}
|
|
578
|
+
const TooltipContainer = styled.div `
|
|
579
|
+
position: relative;
|
|
580
|
+
font-size: 11px;
|
|
581
|
+
color: #fff;
|
|
582
|
+
margin-bottom: 8px;
|
|
583
|
+
padding: 4px 6px;
|
|
584
|
+
background-color: rgba(48, 69, 79, 1);
|
|
585
|
+
border-radius: 4px;
|
|
586
|
+
box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
|
|
587
|
+
|
|
588
|
+
:before {
|
|
589
|
+
content: '';
|
|
590
|
+
position: absolute;
|
|
591
|
+
bottom: 0;
|
|
592
|
+
left: 50%;
|
|
593
|
+
transform: translate(-50%, 100%);
|
|
594
|
+
width: 0;
|
|
595
|
+
height: 0;
|
|
596
|
+
border-style: solid;
|
|
597
|
+
border-width: 4px 3px 0 3px;
|
|
598
|
+
border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
|
|
599
|
+
}
|
|
600
600
|
`;
|
|
601
|
-
const TooltipGroupName = styled.div `
|
|
602
|
-
font-size: 14px;
|
|
603
|
-
margin-bottom: 6px;
|
|
601
|
+
const TooltipGroupName = styled.div `
|
|
602
|
+
font-size: 14px;
|
|
603
|
+
margin-bottom: 6px;
|
|
604
604
|
`;
|
|
605
|
-
const TooltipItem = styled.div `
|
|
606
|
-
display: flex;
|
|
607
|
-
align-items: center;
|
|
608
|
-
margin-bottom: 0.25rem;
|
|
609
|
-
|
|
610
|
-
&:last-of-type {
|
|
611
|
-
margin-bottom: 0;
|
|
612
|
-
}
|
|
605
|
+
const TooltipItem = styled.div `
|
|
606
|
+
display: flex;
|
|
607
|
+
align-items: center;
|
|
608
|
+
margin-bottom: 0.25rem;
|
|
609
|
+
|
|
610
|
+
&:last-of-type {
|
|
611
|
+
margin-bottom: 0;
|
|
612
|
+
}
|
|
613
613
|
`;
|
|
614
|
-
const ColFlex = styled.div `
|
|
615
|
-
display: flex;
|
|
616
|
-
align-items: center;
|
|
617
|
-
margin-right: 4px;
|
|
614
|
+
const ColFlex = styled.div `
|
|
615
|
+
display: flex;
|
|
616
|
+
align-items: center;
|
|
617
|
+
margin-right: 4px;
|
|
618
618
|
`;
|
|
619
|
-
const ColorBox = styled.div `
|
|
620
|
-
margin-right: 4px;
|
|
621
|
-
width: 10px;
|
|
622
|
-
height: 10px;
|
|
623
|
-
border-radius: 2px;
|
|
619
|
+
const ColorBox = styled.div `
|
|
620
|
+
margin-right: 4px;
|
|
621
|
+
width: 10px;
|
|
622
|
+
height: 10px;
|
|
623
|
+
border-radius: 2px;
|
|
624
624
|
`;
|
|
625
|
-
const ColorLine = styled(ColorBox) `
|
|
626
|
-
height: 2px;
|
|
627
|
-
border-radius: 0;
|
|
625
|
+
const ColorLine = styled(ColorBox) `
|
|
626
|
+
height: 2px;
|
|
627
|
+
border-radius: 0;
|
|
628
628
|
`;
|
|
629
|
-
const Name$1 = styled.div `
|
|
630
|
-
margin-right: 4px;
|
|
629
|
+
const Name$1 = styled.div `
|
|
630
|
+
margin-right: 4px;
|
|
631
631
|
`;
|
|
632
|
-
const Value = styled.div `
|
|
633
|
-
text-align: right;
|
|
634
|
-
flex-shrink: 0;
|
|
635
|
-
flex-grow: 1;
|
|
632
|
+
const Value = styled.div `
|
|
633
|
+
text-align: right;
|
|
634
|
+
flex-shrink: 0;
|
|
635
|
+
flex-grow: 1;
|
|
636
636
|
`;
|
|
637
|
-
const Label$2 = styled.div `
|
|
638
|
-
position: relative;
|
|
639
|
-
font-size: 11px;
|
|
640
|
-
color: #fff;
|
|
641
|
-
font-weight: bold;
|
|
642
|
-
letter-spacing: 0.52px;
|
|
637
|
+
const Label$2 = styled.div `
|
|
638
|
+
position: relative;
|
|
639
|
+
font-size: 11px;
|
|
640
|
+
color: #fff;
|
|
641
|
+
font-weight: bold;
|
|
642
|
+
letter-spacing: 0.52px;
|
|
643
643
|
`;
|
|
644
|
-
const LabelTop = styled(Label$2) `
|
|
645
|
-
top: 6px;
|
|
644
|
+
const LabelTop = styled(Label$2) `
|
|
645
|
+
top: 6px;
|
|
646
646
|
`;
|
|
647
|
-
const LabelBottom = styled(Label$2) `
|
|
648
|
-
bottom: 6px;
|
|
647
|
+
const LabelBottom = styled(Label$2) `
|
|
648
|
+
bottom: 6px;
|
|
649
649
|
`;
|
|
650
650
|
|
|
651
651
|
const getLabelY = (labelPosition, y2, item) => {
|
|
@@ -1206,29 +1206,29 @@ const bubbleChartClassNames = {
|
|
|
1206
1206
|
bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
|
|
1207
1207
|
bubbleChartTip: "bubbleChartTip",
|
|
1208
1208
|
};
|
|
1209
|
-
const SvgWrapper$4 = styled(Wrapper) `
|
|
1210
|
-
.${bubbleChartClassNames.bubbleChartYAxis},
|
|
1211
|
-
.${bubbleChartClassNames.bubbleChartXAxis},
|
|
1212
|
-
.${bubbleChartClassNames.bubbleChartGridGlobal} {
|
|
1213
|
-
shape-rendering: crispEdges;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
.${bubbleChartClassNames.bubbleChartGridLineX},
|
|
1217
|
-
.${bubbleChartClassNames.bubbleChartGridLineY} {
|
|
1218
|
-
stroke: rgba(149, 149, 149, 0.24);
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
.${bubbleChartClassNames.bubbleChartYScaleLabel} {
|
|
1222
|
-
font-size: 10px;
|
|
1223
|
-
}
|
|
1209
|
+
const SvgWrapper$4 = styled(Wrapper) `
|
|
1210
|
+
.${bubbleChartClassNames.bubbleChartYAxis},
|
|
1211
|
+
.${bubbleChartClassNames.bubbleChartXAxis},
|
|
1212
|
+
.${bubbleChartClassNames.bubbleChartGridGlobal} {
|
|
1213
|
+
shape-rendering: crispEdges;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.${bubbleChartClassNames.bubbleChartGridLineX},
|
|
1217
|
+
.${bubbleChartClassNames.bubbleChartGridLineY} {
|
|
1218
|
+
stroke: rgba(149, 149, 149, 0.24);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.${bubbleChartClassNames.bubbleChartYScaleLabel} {
|
|
1222
|
+
font-size: 10px;
|
|
1223
|
+
}
|
|
1224
1224
|
`;
|
|
1225
|
-
const TooltipStyles$1 = styled.createGlobalStyle `
|
|
1226
|
-
.${bubbleChartClassNames.bubbleChartTooltipContainer} {
|
|
1227
|
-
position: absolute;
|
|
1228
|
-
transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
|
|
1229
|
-
pointer-events: none;
|
|
1230
|
-
z-index: 1;
|
|
1231
|
-
}
|
|
1225
|
+
const TooltipStyles$1 = styled.createGlobalStyle `
|
|
1226
|
+
.${bubbleChartClassNames.bubbleChartTooltipContainer} {
|
|
1227
|
+
position: absolute;
|
|
1228
|
+
transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
|
|
1229
|
+
pointer-events: none;
|
|
1230
|
+
z-index: 1;
|
|
1231
|
+
}
|
|
1232
1232
|
`;
|
|
1233
1233
|
|
|
1234
1234
|
const drawGrid$1 = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
|
|
@@ -1265,14 +1265,14 @@ const drawGrid$1 = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, })
|
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
-
const Tooltip$1 = styled.div `
|
|
1269
|
-
width: 0;
|
|
1270
|
-
height: 0;
|
|
1271
|
-
display: flex;
|
|
1272
|
-
align-items: flex-end;
|
|
1273
|
-
justify-content: center;
|
|
1274
|
-
font-size: 12px;
|
|
1275
|
-
white-space: nowrap;
|
|
1268
|
+
const Tooltip$1 = styled.div `
|
|
1269
|
+
width: 0;
|
|
1270
|
+
height: 0;
|
|
1271
|
+
display: flex;
|
|
1272
|
+
align-items: flex-end;
|
|
1273
|
+
justify-content: center;
|
|
1274
|
+
font-size: 12px;
|
|
1275
|
+
white-space: nowrap;
|
|
1276
1276
|
`;
|
|
1277
1277
|
|
|
1278
1278
|
const drawTooltip$2 = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {
|
|
@@ -1613,53 +1613,53 @@ const calendarChartClassNames = {
|
|
|
1613
1613
|
...legendClassNames,
|
|
1614
1614
|
};
|
|
1615
1615
|
const headerHeight = "20px";
|
|
1616
|
-
const SvgWrapper$3 = styled(Wrapper) `
|
|
1617
|
-
.${calendarChartClassNames.calendarYear} {
|
|
1618
|
-
display: flex;
|
|
1619
|
-
margin-bottom: 16px;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
.${calendarChartClassNames.calendarYearTitle} {
|
|
1623
|
-
display: inline-flex;
|
|
1624
|
-
align-items: flex-end;
|
|
1625
|
-
height: ${headerHeight};
|
|
1626
|
-
margin-bottom: 4px;
|
|
1627
|
-
font-weight: bold;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
.${calendarChartClassNames.calendarHeader} {
|
|
1631
|
-
height: ${headerHeight};
|
|
1632
|
-
margin-bottom: 4px;
|
|
1633
|
-
position: relative;
|
|
1634
|
-
display: flex;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
.${calendarChartClassNames.calendarMonth} {
|
|
1638
|
-
font-size: 14px;
|
|
1639
|
-
bottom: 0;
|
|
1640
|
-
position: absolute;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
.${calendarChartClassNames.calendarAxis} {
|
|
1644
|
-
display: flex;
|
|
1645
|
-
flex-direction: column;
|
|
1646
|
-
margin-right: 10px;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
.${calendarChartClassNames.calendarWeekDay} {
|
|
1650
|
-
font-size: 12px;
|
|
1651
|
-
display: inline-flex;
|
|
1652
|
-
align-items: center;
|
|
1653
|
-
justify-content: flex-end;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
.${calendarChartClassNames.calendarDays} {
|
|
1657
|
-
position: relative;
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1660
|
-
.${calendarChartClassNames.calendarDay} {
|
|
1661
|
-
position: absolute;
|
|
1662
|
-
}
|
|
1616
|
+
const SvgWrapper$3 = styled(Wrapper) `
|
|
1617
|
+
.${calendarChartClassNames.calendarYear} {
|
|
1618
|
+
display: flex;
|
|
1619
|
+
margin-bottom: 16px;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
.${calendarChartClassNames.calendarYearTitle} {
|
|
1623
|
+
display: inline-flex;
|
|
1624
|
+
align-items: flex-end;
|
|
1625
|
+
height: ${headerHeight};
|
|
1626
|
+
margin-bottom: 4px;
|
|
1627
|
+
font-weight: bold;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
.${calendarChartClassNames.calendarHeader} {
|
|
1631
|
+
height: ${headerHeight};
|
|
1632
|
+
margin-bottom: 4px;
|
|
1633
|
+
position: relative;
|
|
1634
|
+
display: flex;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
.${calendarChartClassNames.calendarMonth} {
|
|
1638
|
+
font-size: 14px;
|
|
1639
|
+
bottom: 0;
|
|
1640
|
+
position: absolute;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
.${calendarChartClassNames.calendarAxis} {
|
|
1644
|
+
display: flex;
|
|
1645
|
+
flex-direction: column;
|
|
1646
|
+
margin-right: 10px;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.${calendarChartClassNames.calendarWeekDay} {
|
|
1650
|
+
font-size: 12px;
|
|
1651
|
+
display: inline-flex;
|
|
1652
|
+
align-items: center;
|
|
1653
|
+
justify-content: flex-end;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
.${calendarChartClassNames.calendarDays} {
|
|
1657
|
+
position: relative;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
.${calendarChartClassNames.calendarDay} {
|
|
1661
|
+
position: absolute;
|
|
1662
|
+
}
|
|
1663
1663
|
`;
|
|
1664
1664
|
|
|
1665
1665
|
const draw$3 = (node, props) => {
|
|
@@ -1872,45 +1872,45 @@ const horizontalBarChartClassNames = {
|
|
|
1872
1872
|
horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
|
|
1873
1873
|
horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
|
|
1874
1874
|
};
|
|
1875
|
-
const Table = styled.table `
|
|
1876
|
-
width: 100%;
|
|
1875
|
+
const Table = styled.table `
|
|
1876
|
+
width: 100%;
|
|
1877
1877
|
`;
|
|
1878
|
-
const LabelCell = styled.div `
|
|
1879
|
-
text-align: right;
|
|
1878
|
+
const LabelCell = styled.div `
|
|
1879
|
+
text-align: right;
|
|
1880
1880
|
`;
|
|
1881
|
-
const BarFlex = styled.div `
|
|
1882
|
-
width: 100%;
|
|
1883
|
-
display: flex;
|
|
1884
|
-
height: 1rem;
|
|
1881
|
+
const BarFlex = styled.div `
|
|
1882
|
+
width: 100%;
|
|
1883
|
+
display: flex;
|
|
1884
|
+
height: 1rem;
|
|
1885
1885
|
`;
|
|
1886
|
-
const BarsTd = styled.td `
|
|
1887
|
-
width: 100%;
|
|
1888
|
-
position: relative;
|
|
1889
|
-
vertical-align: middle;
|
|
1886
|
+
const BarsTd = styled.td `
|
|
1887
|
+
width: 100%;
|
|
1888
|
+
position: relative;
|
|
1889
|
+
vertical-align: middle;
|
|
1890
1890
|
`;
|
|
1891
|
-
const TooltipFlex = styled(TooltipFlex$1) `
|
|
1892
|
-
position: absolute;
|
|
1893
|
-
top: 0;
|
|
1894
|
-
left: 50%;
|
|
1895
|
-
transform: translate(-50%, -50%);
|
|
1896
|
-
will-change: left, top;
|
|
1891
|
+
const TooltipFlex = styled(TooltipFlex$1) `
|
|
1892
|
+
position: absolute;
|
|
1893
|
+
top: 0;
|
|
1894
|
+
left: 50%;
|
|
1895
|
+
transform: translate(-50%, -50%);
|
|
1896
|
+
will-change: left, top;
|
|
1897
1897
|
`;
|
|
1898
|
-
const StackSumContainer = styled.div `
|
|
1899
|
-
position: relative;
|
|
1898
|
+
const StackSumContainer = styled.div `
|
|
1899
|
+
position: relative;
|
|
1900
1900
|
`;
|
|
1901
|
-
const StackSum = styled.div `
|
|
1902
|
-
white-space: nowrap;
|
|
1903
|
-
position: absolute;
|
|
1904
|
-
top: 50%;
|
|
1905
|
-
left: 50%;
|
|
1906
|
-
transform: translate(0, -50%);
|
|
1901
|
+
const StackSum = styled.div `
|
|
1902
|
+
white-space: nowrap;
|
|
1903
|
+
position: absolute;
|
|
1904
|
+
top: 50%;
|
|
1905
|
+
left: 50%;
|
|
1906
|
+
transform: translate(0, -50%);
|
|
1907
1907
|
`;
|
|
1908
|
-
const StackWrapper = styled.div `
|
|
1909
|
-
position: absolute;
|
|
1910
|
-
top: 0;
|
|
1911
|
-
display: flex;
|
|
1912
|
-
justify-content: flex-start;
|
|
1913
|
-
height: 100%;
|
|
1908
|
+
const StackWrapper = styled.div `
|
|
1909
|
+
position: absolute;
|
|
1910
|
+
top: 0;
|
|
1911
|
+
display: flex;
|
|
1912
|
+
justify-content: flex-start;
|
|
1913
|
+
height: 100%;
|
|
1914
1914
|
`;
|
|
1915
1915
|
|
|
1916
1916
|
const Tooltip = ({ renderTooltip, bars, style, className, }) => {
|
|
@@ -1962,10 +1962,10 @@ const useStackWrapper = (stackedTooltip) => {
|
|
|
1962
1962
|
: ({ children }) => (jsxRuntime.jsx(react.Fragment, { children: children })), [stackedTooltip]);
|
|
1963
1963
|
};
|
|
1964
1964
|
|
|
1965
|
-
const BarStyled = styled.div `
|
|
1966
|
-
position: relative;
|
|
1967
|
-
display: inline-flex;
|
|
1968
|
-
height: 100%;
|
|
1965
|
+
const BarStyled = styled.div `
|
|
1966
|
+
position: relative;
|
|
1967
|
+
display: inline-flex;
|
|
1968
|
+
height: 100%;
|
|
1969
1969
|
`;
|
|
1970
1970
|
|
|
1971
1971
|
const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
|
|
@@ -1982,23 +1982,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
|
|
|
1982
1982
|
}, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
|
|
1983
1983
|
};
|
|
1984
1984
|
|
|
1985
|
-
const TickTd = styled.td `
|
|
1986
|
-
position: relative;
|
|
1985
|
+
const TickTd = styled.td `
|
|
1986
|
+
position: relative;
|
|
1987
1987
|
`;
|
|
1988
|
-
const Ticks = styled.div `
|
|
1989
|
-
position: relative;
|
|
1990
|
-
height: 1rem;
|
|
1988
|
+
const Ticks = styled.div `
|
|
1989
|
+
position: relative;
|
|
1990
|
+
height: 1rem;
|
|
1991
1991
|
`;
|
|
1992
|
-
const Tick = styled.div `
|
|
1993
|
-
white-space: nowrap;
|
|
1994
|
-
width: 0;
|
|
1995
|
-
height: 0;
|
|
1996
|
-
position: absolute;
|
|
1997
|
-
top: 50%;
|
|
1998
|
-
transform: translateY(-50%);
|
|
1999
|
-
display: flex;
|
|
2000
|
-
align-items: center;
|
|
2001
|
-
justify-content: center;
|
|
1992
|
+
const Tick = styled.div `
|
|
1993
|
+
white-space: nowrap;
|
|
1994
|
+
width: 0;
|
|
1995
|
+
height: 0;
|
|
1996
|
+
position: absolute;
|
|
1997
|
+
top: 50%;
|
|
1998
|
+
transform: translateY(-50%);
|
|
1999
|
+
display: flex;
|
|
2000
|
+
align-items: center;
|
|
2001
|
+
justify-content: center;
|
|
2002
2002
|
`;
|
|
2003
2003
|
|
|
2004
2004
|
const hundred = 100;
|
|
@@ -2068,12 +2068,12 @@ HorizontalBarChart.defaultProps = {
|
|
|
2068
2068
|
withoutXScale: false,
|
|
2069
2069
|
};
|
|
2070
2070
|
|
|
2071
|
-
const InterpolateLineChartContainer = styled.div `
|
|
2072
|
-
svg:focus,
|
|
2073
|
-
g:focus,
|
|
2074
|
-
path:focus {
|
|
2075
|
-
outline: none;
|
|
2076
|
-
}
|
|
2071
|
+
const InterpolateLineChartContainer = styled.div `
|
|
2072
|
+
svg:focus,
|
|
2073
|
+
g:focus,
|
|
2074
|
+
path:focus {
|
|
2075
|
+
outline: none;
|
|
2076
|
+
}
|
|
2077
2077
|
`;
|
|
2078
2078
|
|
|
2079
2079
|
const formatChartData = (data) => {
|
|
@@ -2186,67 +2186,67 @@ const lineChartClassNames = {
|
|
|
2186
2186
|
lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
|
|
2187
2187
|
lineChartMouseLabel: "lineChartMouseLabel",
|
|
2188
2188
|
};
|
|
2189
|
-
const SvgWrapper$2 = styled(Wrapper) `
|
|
2190
|
-
.${lineChartClassNames.lineChartYScaleGlobal},
|
|
2191
|
-
.${lineChartClassNames.lineChartXScaleGlobal},
|
|
2192
|
-
.${lineChartClassNames.lineChartGridGlobal} {
|
|
2193
|
-
shape-rendering: crispEdges;
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
.${lineChartClassNames.lineChartLinesGlobal} {
|
|
2197
|
-
fill: none;
|
|
2198
|
-
stroke: steelblue;
|
|
2199
|
-
stroke-width: 1.5px;
|
|
2200
|
-
stroke-linejoin: round;
|
|
2201
|
-
stroke-linecap: round;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
.${lineChartClassNames.lineChartArea} {
|
|
2205
|
-
fill-opacity: 0.24;
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
.${lineChartClassNames.lineChartGridLineX},
|
|
2209
|
-
.${lineChartClassNames.lineChartGridLineY},
|
|
2210
|
-
.${lineChartClassNames.lineChartMouseLine} {
|
|
2211
|
-
stroke: rgba(149, 149, 149, 0.24);
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
|
-
.${lineChartClassNames.lineChartMouseLine},
|
|
2215
|
-
.${lineChartClassNames.lineChartMouseCircle} {
|
|
2216
|
-
transition: opacity linear 200ms;
|
|
2217
|
-
pointer-events: none;
|
|
2218
|
-
stroke-width: 1px;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
.${lineChartClassNames.lineChartDot} {
|
|
2222
|
-
stroke: #fff;
|
|
2223
|
-
stroke-width: 2px;
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
.${lineChartClassNames.lineChartMouseLine} {
|
|
2227
|
-
shape-rendering: crispEdges;
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
|
-
.${lineChartClassNames.lineChartMouseRect} {
|
|
2231
|
-
fill: none;
|
|
2232
|
-
pointer-events: all;
|
|
2233
|
-
}
|
|
2189
|
+
const SvgWrapper$2 = styled(Wrapper) `
|
|
2190
|
+
.${lineChartClassNames.lineChartYScaleGlobal},
|
|
2191
|
+
.${lineChartClassNames.lineChartXScaleGlobal},
|
|
2192
|
+
.${lineChartClassNames.lineChartGridGlobal} {
|
|
2193
|
+
shape-rendering: crispEdges;
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
.${lineChartClassNames.lineChartLinesGlobal} {
|
|
2197
|
+
fill: none;
|
|
2198
|
+
stroke: steelblue;
|
|
2199
|
+
stroke-width: 1.5px;
|
|
2200
|
+
stroke-linejoin: round;
|
|
2201
|
+
stroke-linecap: round;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
.${lineChartClassNames.lineChartArea} {
|
|
2205
|
+
fill-opacity: 0.24;
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
.${lineChartClassNames.lineChartGridLineX},
|
|
2209
|
+
.${lineChartClassNames.lineChartGridLineY},
|
|
2210
|
+
.${lineChartClassNames.lineChartMouseLine} {
|
|
2211
|
+
stroke: rgba(149, 149, 149, 0.24);
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.${lineChartClassNames.lineChartMouseLine},
|
|
2215
|
+
.${lineChartClassNames.lineChartMouseCircle} {
|
|
2216
|
+
transition: opacity linear 200ms;
|
|
2217
|
+
pointer-events: none;
|
|
2218
|
+
stroke-width: 1px;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
.${lineChartClassNames.lineChartDot} {
|
|
2222
|
+
stroke: #fff;
|
|
2223
|
+
stroke-width: 2px;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
.${lineChartClassNames.lineChartMouseLine} {
|
|
2227
|
+
shape-rendering: crispEdges;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
.${lineChartClassNames.lineChartMouseRect} {
|
|
2231
|
+
fill: none;
|
|
2232
|
+
pointer-events: all;
|
|
2233
|
+
}
|
|
2234
2234
|
`;
|
|
2235
|
-
const TooltipStyles = styled.createGlobalStyle `
|
|
2236
|
-
.${lineChartClassNames.lineChartMouseLabel} {
|
|
2237
|
-
transition: opacity linear 200ms;
|
|
2238
|
-
z-index: 100;
|
|
2239
|
-
|
|
2240
|
-
.${lineChartClassNames.lineChartLabelFlex} {
|
|
2241
|
-
justify-content: flex-start;
|
|
2242
|
-
align-items: center;
|
|
2243
|
-
pointer-events: none;
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
.${lineChartClassNames.lineChartLabel} {
|
|
2247
|
-
margin: 0 0 0 10px;
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2235
|
+
const TooltipStyles = styled.createGlobalStyle `
|
|
2236
|
+
.${lineChartClassNames.lineChartMouseLabel} {
|
|
2237
|
+
transition: opacity linear 200ms;
|
|
2238
|
+
z-index: 100;
|
|
2239
|
+
|
|
2240
|
+
.${lineChartClassNames.lineChartLabelFlex} {
|
|
2241
|
+
justify-content: flex-start;
|
|
2242
|
+
align-items: center;
|
|
2243
|
+
pointer-events: none;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
.${lineChartClassNames.lineChartLabel} {
|
|
2247
|
+
margin: 0 0 0 10px;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
2250
|
`;
|
|
2251
2251
|
|
|
2252
2252
|
const drawGrid = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
|
|
@@ -2282,17 +2282,17 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, draw
|
|
|
2282
2282
|
}
|
|
2283
2283
|
};
|
|
2284
2284
|
|
|
2285
|
-
const LabelContainer$1 = styled.div `
|
|
2286
|
-
width: 0;
|
|
2287
|
-
height: 0;
|
|
2288
|
-
display: flex;
|
|
2289
|
-
align-items: flex-end;
|
|
2290
|
-
justify-content: center;
|
|
2291
|
-
font-size: 12px;
|
|
2292
|
-
white-space: nowrap;
|
|
2285
|
+
const LabelContainer$1 = styled.div `
|
|
2286
|
+
width: 0;
|
|
2287
|
+
height: 0;
|
|
2288
|
+
display: flex;
|
|
2289
|
+
align-items: flex-end;
|
|
2290
|
+
justify-content: center;
|
|
2291
|
+
font-size: 12px;
|
|
2292
|
+
white-space: nowrap;
|
|
2293
2293
|
`;
|
|
2294
|
-
const Label$1 = styled.div `
|
|
2295
|
-
margin-bottom: 4px;
|
|
2294
|
+
const Label$1 = styled.div `
|
|
2295
|
+
margin-bottom: 4px;
|
|
2296
2296
|
`;
|
|
2297
2297
|
|
|
2298
2298
|
const labelClassName$1 = "d3-chart-label";
|
|
@@ -2851,24 +2851,24 @@ const pieChartclassNames = {
|
|
|
2851
2851
|
pieTooltipColorBox: 'pieTooltipColorBox',
|
|
2852
2852
|
pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
|
|
2853
2853
|
};
|
|
2854
|
-
const SvgWrapper$1 = styled(Wrapper) `
|
|
2855
|
-
.${pieChartclassNames.pieSliceLabel} {
|
|
2856
|
-
fill: #4a4a4a;
|
|
2857
|
-
}
|
|
2858
|
-
|
|
2859
|
-
.${pieChartclassNames.pieRadialLabel} {
|
|
2860
|
-
position: absolute;
|
|
2861
|
-
max-width: 128px;
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
.${pieChartclassNames.pieRadialLink} {
|
|
2865
|
-
stroke: #000;
|
|
2866
|
-
}
|
|
2867
|
-
|
|
2868
|
-
.${pieChartclassNames.pieFullChartTooltipCircle} {
|
|
2869
|
-
fill: transparent;
|
|
2870
|
-
cursor: pointer;
|
|
2871
|
-
}
|
|
2854
|
+
const SvgWrapper$1 = styled(Wrapper) `
|
|
2855
|
+
.${pieChartclassNames.pieSliceLabel} {
|
|
2856
|
+
fill: #4a4a4a;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
.${pieChartclassNames.pieRadialLabel} {
|
|
2860
|
+
position: absolute;
|
|
2861
|
+
max-width: 128px;
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
.${pieChartclassNames.pieRadialLink} {
|
|
2865
|
+
stroke: #000;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
.${pieChartclassNames.pieFullChartTooltipCircle} {
|
|
2869
|
+
fill: transparent;
|
|
2870
|
+
cursor: pointer;
|
|
2871
|
+
}
|
|
2872
2872
|
`;
|
|
2873
2873
|
|
|
2874
2874
|
function radiansToDegrees(radians) {
|
|
@@ -2901,37 +2901,37 @@ const getTranslate$1 = ({ anchor, index, translateX, translateY, }) => {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
return `translate(${translateX}px, ${translateY}px)`;
|
|
2903
2903
|
};
|
|
2904
|
-
const Label = styled.div `
|
|
2905
|
-
display: flex;
|
|
2906
|
-
align-items: center;
|
|
2907
|
-
font-size: 12px;
|
|
2904
|
+
const Label = styled.div `
|
|
2905
|
+
display: flex;
|
|
2906
|
+
align-items: center;
|
|
2907
|
+
font-size: 12px;
|
|
2908
2908
|
`;
|
|
2909
|
-
const Name = styled.div `
|
|
2910
|
-
text-align: center;
|
|
2911
|
-
max-width: 120px;
|
|
2909
|
+
const Name = styled.div `
|
|
2910
|
+
text-align: center;
|
|
2911
|
+
max-width: 120px;
|
|
2912
2912
|
`;
|
|
2913
|
-
const middleBadgeStyles = styled.css `
|
|
2914
|
-
position: absolute;
|
|
2915
|
-
top: 50%;
|
|
2916
|
-
right: 0;
|
|
2917
|
-
transform: translate(calc(100% + 6px), -50%);
|
|
2913
|
+
const middleBadgeStyles = styled.css `
|
|
2914
|
+
position: absolute;
|
|
2915
|
+
top: 50%;
|
|
2916
|
+
right: 0;
|
|
2917
|
+
transform: translate(calc(100% + 6px), -50%);
|
|
2918
2918
|
`;
|
|
2919
|
-
const DefaultBadge = styled.div `
|
|
2920
|
-
display: flex;
|
|
2921
|
-
align-items: center;
|
|
2922
|
-
padding: 2px 4px;
|
|
2923
|
-
border-radius: 4px;
|
|
2924
|
-
color: rgb(255, 255, 255);
|
|
2925
|
-
background-color: rgb(144, 197, 61);
|
|
2926
|
-
margin-left: 8px;
|
|
2919
|
+
const DefaultBadge = styled.div `
|
|
2920
|
+
display: flex;
|
|
2921
|
+
align-items: center;
|
|
2922
|
+
padding: 2px 4px;
|
|
2923
|
+
border-radius: 4px;
|
|
2924
|
+
color: rgb(255, 255, 255);
|
|
2925
|
+
background-color: rgb(144, 197, 61);
|
|
2926
|
+
margin-left: 8px;
|
|
2927
2927
|
`;
|
|
2928
|
-
const MiddleBadge = styled(DefaultBadge) `
|
|
2929
|
-
${middleBadgeStyles}
|
|
2928
|
+
const MiddleBadge = styled(DefaultBadge) `
|
|
2929
|
+
${middleBadgeStyles}
|
|
2930
2930
|
`;
|
|
2931
|
-
const BadgePrefix = styled.div `
|
|
2932
|
-
margin-left: 4px;
|
|
2933
|
-
font-size: 10px;
|
|
2934
|
-
color: rgba(255, 255, 255, 0.54);
|
|
2931
|
+
const BadgePrefix = styled.div `
|
|
2932
|
+
margin-left: 4px;
|
|
2933
|
+
font-size: 10px;
|
|
2934
|
+
color: rgba(255, 255, 255, 0.54);
|
|
2935
2935
|
`;
|
|
2936
2936
|
|
|
2937
2937
|
const drawRadialLabels$1 = ({ arc, enableRadialLabels, global, node, radius, dataReady, radialLabelsLinkHorizontalLength, formatRadialLabel, radialLabelsTextXOffset, translateX, translateY, radialLabelYOffset, radialAngleXOffset, }) => {
|
|
@@ -3333,29 +3333,29 @@ const radarChartclassNames = {
|
|
|
3333
3333
|
radarLabelBadgePrefix: 'radarLabelBadgePrefix',
|
|
3334
3334
|
radarCircle: 'radarCircle',
|
|
3335
3335
|
};
|
|
3336
|
-
const SvgWrapper = styled(Wrapper) `
|
|
3337
|
-
.${radarChartclassNames.radarAxis} {
|
|
3338
|
-
path,
|
|
3339
|
-
line,
|
|
3340
|
-
circle {
|
|
3341
|
-
fill: none;
|
|
3342
|
-
stroke-width: 1px;
|
|
3343
|
-
stroke: rgba(149, 149, 149, 0.18);
|
|
3344
|
-
}
|
|
3345
|
-
}
|
|
3346
|
-
.${radarChartclassNames.radarAxisText} {
|
|
3347
|
-
font-size: 12px;
|
|
3348
|
-
fill-opacity: 0.56;
|
|
3349
|
-
}
|
|
3350
|
-
.${radarChartclassNames.radarPolygon} {
|
|
3351
|
-
fill-opacity: 0.06;
|
|
3352
|
-
stroke-width: 2px;
|
|
3353
|
-
fill: rgb(144, 197, 61);
|
|
3354
|
-
stroke: rgb(144, 197, 61);
|
|
3355
|
-
}
|
|
3356
|
-
.${radarChartclassNames.radarCircle} {
|
|
3357
|
-
fill: rgb(144, 197, 61);
|
|
3358
|
-
}
|
|
3336
|
+
const SvgWrapper = styled(Wrapper) `
|
|
3337
|
+
.${radarChartclassNames.radarAxis} {
|
|
3338
|
+
path,
|
|
3339
|
+
line,
|
|
3340
|
+
circle {
|
|
3341
|
+
fill: none;
|
|
3342
|
+
stroke-width: 1px;
|
|
3343
|
+
stroke: rgba(149, 149, 149, 0.18);
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
.${radarChartclassNames.radarAxisText} {
|
|
3347
|
+
font-size: 12px;
|
|
3348
|
+
fill-opacity: 0.56;
|
|
3349
|
+
}
|
|
3350
|
+
.${radarChartclassNames.radarPolygon} {
|
|
3351
|
+
fill-opacity: 0.06;
|
|
3352
|
+
stroke-width: 2px;
|
|
3353
|
+
fill: rgb(144, 197, 61);
|
|
3354
|
+
stroke: rgb(144, 197, 61);
|
|
3355
|
+
}
|
|
3356
|
+
.${radarChartclassNames.radarCircle} {
|
|
3357
|
+
fill: rgb(144, 197, 61);
|
|
3358
|
+
}
|
|
3359
3359
|
`;
|
|
3360
3360
|
|
|
3361
3361
|
const getTranslate = ({ anchor, index, translateX, translateY, }) => {
|
|
@@ -3377,8 +3377,8 @@ const LabelContainer = styled.div.attrs(props => ({
|
|
|
3377
3377
|
style: {
|
|
3378
3378
|
transform: getTranslate(props),
|
|
3379
3379
|
},
|
|
3380
|
-
})) `
|
|
3381
|
-
position: absolute;
|
|
3380
|
+
})) `
|
|
3381
|
+
position: absolute;
|
|
3382
3382
|
`;
|
|
3383
3383
|
|
|
3384
3384
|
const degByIndex = (index, count) => {
|
|
@@ -3625,10 +3625,10 @@ RadarChart.defaultProps = {
|
|
|
3625
3625
|
curve: d3__namespace.curveLinearClosed,
|
|
3626
3626
|
};
|
|
3627
3627
|
|
|
3628
|
-
const SwipeScrollContainer = styled.div `
|
|
3629
|
-
width: 100%;
|
|
3630
|
-
overflow: hidden;
|
|
3631
|
-
user-select: none;
|
|
3628
|
+
const SwipeScrollContainer = styled.div `
|
|
3629
|
+
width: 100%;
|
|
3630
|
+
overflow: hidden;
|
|
3631
|
+
user-select: none;
|
|
3632
3632
|
`;
|
|
3633
3633
|
|
|
3634
3634
|
function animate({ duration, timing, draw, }) {
|