@evergis/charts 3.1.29 → 3.1.34
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 +414 -411
- package/dist/charts.esm.js.map +1 -1
- package/dist/index.js +414 -411
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/charts.esm.js
CHANGED
|
@@ -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) => {
|
|
@@ -599,15 +599,6 @@ RadarChart.defaultProps = {
|
|
|
599
599
|
curve: d3.curveLinearClosed,
|
|
600
600
|
};
|
|
601
601
|
|
|
602
|
-
function radiansToDegrees(radians) {
|
|
603
|
-
const flatAngle = 180;
|
|
604
|
-
return (radians * flatAngle) / Math.PI;
|
|
605
|
-
}
|
|
606
|
-
function degreesToRadians(degrees) {
|
|
607
|
-
const flatAngle = 180;
|
|
608
|
-
return degrees * (Math.PI / flatAngle);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
602
|
const pieChartclassNames = {
|
|
612
603
|
pieGlobal: 'pieGlobal',
|
|
613
604
|
pieSlice: 'pieSlice',
|
|
@@ -625,23 +616,35 @@ const pieChartclassNames = {
|
|
|
625
616
|
pieTooltipColorBox: 'pieTooltipColorBox',
|
|
626
617
|
pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
|
|
627
618
|
};
|
|
628
|
-
const SvgWrapper$4 = styled(Wrapper) `
|
|
629
|
-
.${pieChartclassNames.pieSliceLabel} {
|
|
630
|
-
fill: #4a4a4a;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
619
|
+
const SvgWrapper$4 = styled(Wrapper) `
|
|
620
|
+
.${pieChartclassNames.pieSliceLabel} {
|
|
621
|
+
fill: #4a4a4a;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.${pieChartclassNames.pieRadialLabel} {
|
|
625
|
+
position: absolute;
|
|
626
|
+
max-width: 128px;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.${pieChartclassNames.pieRadialLink} {
|
|
630
|
+
stroke: #000;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.${pieChartclassNames.pieFullChartTooltipCircle} {
|
|
634
|
+
fill: transparent;
|
|
635
|
+
cursor: pointer;
|
|
636
|
+
}
|
|
643
637
|
`;
|
|
644
638
|
|
|
639
|
+
function radiansToDegrees(radians) {
|
|
640
|
+
const flatAngle = 180;
|
|
641
|
+
return (radians * flatAngle) / Math.PI;
|
|
642
|
+
}
|
|
643
|
+
function degreesToRadians(degrees) {
|
|
644
|
+
const flatAngle = 180;
|
|
645
|
+
return degrees * (Math.PI / flatAngle);
|
|
646
|
+
}
|
|
647
|
+
|
|
645
648
|
const getMidFactor = (d) => d.startAngle + (d.endAngle - d.startAngle) / 2 < Math.PI ? 1 : -1;
|
|
646
649
|
const getAlign = (d) => {
|
|
647
650
|
const midangle = d.startAngle + (d.endAngle - d.startAngle) / 2;
|
|
@@ -730,90 +733,90 @@ const drawRadialLabels = ({ arc, enableRadialLabels, global, node, radius, dataR
|
|
|
730
733
|
}
|
|
731
734
|
};
|
|
732
735
|
|
|
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;
|
|
736
|
+
const TooltipFlex$1 = styled.div `
|
|
737
|
+
width: 0;
|
|
738
|
+
height: 0;
|
|
739
|
+
display: flex;
|
|
740
|
+
align-items: flex-end;
|
|
741
|
+
justify-content: center;
|
|
742
|
+
pointer-events: none;
|
|
743
|
+
white-space: nowrap;
|
|
741
744
|
`;
|
|
742
745
|
const LabelFlex = styled(TooltipFlex$1) ``;
|
|
743
|
-
const LabelFlexCenter = styled(LabelFlex) `
|
|
744
|
-
align-items: center;
|
|
746
|
+
const LabelFlexCenter = styled(LabelFlex) `
|
|
747
|
+
align-items: center;
|
|
745
748
|
`;
|
|
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
|
-
}
|
|
749
|
+
const TooltipContainer = styled.div `
|
|
750
|
+
position: relative;
|
|
751
|
+
font-size: 11px;
|
|
752
|
+
color: #fff;
|
|
753
|
+
margin-bottom: 8px;
|
|
754
|
+
padding: 4px 6px;
|
|
755
|
+
background-color: rgba(48, 69, 79, 1);
|
|
756
|
+
border-radius: 4px;
|
|
757
|
+
box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
|
|
758
|
+
|
|
759
|
+
:before {
|
|
760
|
+
content: '';
|
|
761
|
+
position: absolute;
|
|
762
|
+
bottom: 0;
|
|
763
|
+
left: 50%;
|
|
764
|
+
transform: translate(-50%, 100%);
|
|
765
|
+
width: 0;
|
|
766
|
+
height: 0;
|
|
767
|
+
border-style: solid;
|
|
768
|
+
border-width: 4px 3px 0 3px;
|
|
769
|
+
border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
|
|
770
|
+
}
|
|
768
771
|
`;
|
|
769
|
-
const TooltipGroupName = styled.div `
|
|
770
|
-
font-size: 14px;
|
|
771
|
-
margin-bottom: 6px;
|
|
772
|
+
const TooltipGroupName = styled.div `
|
|
773
|
+
font-size: 14px;
|
|
774
|
+
margin-bottom: 6px;
|
|
772
775
|
`;
|
|
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
|
-
}
|
|
776
|
+
const TooltipItem = styled.div `
|
|
777
|
+
display: flex;
|
|
778
|
+
align-items: center;
|
|
779
|
+
margin-bottom: 0.25rem;
|
|
780
|
+
|
|
781
|
+
&:last-of-type {
|
|
782
|
+
margin-bottom: 0;
|
|
783
|
+
}
|
|
781
784
|
`;
|
|
782
|
-
const ColFlex = styled.div `
|
|
783
|
-
display: flex;
|
|
784
|
-
align-items: center;
|
|
785
|
-
margin-right: 4px;
|
|
785
|
+
const ColFlex = styled.div `
|
|
786
|
+
display: flex;
|
|
787
|
+
align-items: center;
|
|
788
|
+
margin-right: 4px;
|
|
786
789
|
`;
|
|
787
|
-
const ColorBox = styled.div `
|
|
788
|
-
margin-right: 4px;
|
|
789
|
-
width: 10px;
|
|
790
|
-
height: 10px;
|
|
791
|
-
border-radius: 2px;
|
|
790
|
+
const ColorBox = styled.div `
|
|
791
|
+
margin-right: 4px;
|
|
792
|
+
width: 10px;
|
|
793
|
+
height: 10px;
|
|
794
|
+
border-radius: 2px;
|
|
792
795
|
`;
|
|
793
|
-
const ColorLine = styled(ColorBox) `
|
|
794
|
-
height: 2px;
|
|
795
|
-
border-radius: 0;
|
|
796
|
+
const ColorLine = styled(ColorBox) `
|
|
797
|
+
height: 2px;
|
|
798
|
+
border-radius: 0;
|
|
796
799
|
`;
|
|
797
|
-
const Name = styled.div `
|
|
798
|
-
margin-right: 4px;
|
|
800
|
+
const Name = styled.div `
|
|
801
|
+
margin-right: 4px;
|
|
799
802
|
`;
|
|
800
|
-
const Value = styled.div `
|
|
801
|
-
text-align: right;
|
|
802
|
-
flex-shrink: 0;
|
|
803
|
-
flex-grow: 1;
|
|
803
|
+
const Value = styled.div `
|
|
804
|
+
text-align: right;
|
|
805
|
+
flex-shrink: 0;
|
|
806
|
+
flex-grow: 1;
|
|
804
807
|
`;
|
|
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;
|
|
808
|
+
const Label$1 = styled.div `
|
|
809
|
+
position: relative;
|
|
810
|
+
font-size: 11px;
|
|
811
|
+
color: #fff;
|
|
812
|
+
font-weight: bold;
|
|
813
|
+
letter-spacing: 0.52px;
|
|
811
814
|
`;
|
|
812
|
-
const LabelTop = styled(Label$1) `
|
|
813
|
-
top: 6px;
|
|
815
|
+
const LabelTop = styled(Label$1) `
|
|
816
|
+
top: 6px;
|
|
814
817
|
`;
|
|
815
|
-
const LabelBottom = styled(Label$1) `
|
|
816
|
-
bottom: 6px;
|
|
818
|
+
const LabelBottom = styled(Label$1) `
|
|
819
|
+
bottom: 6px;
|
|
817
820
|
`;
|
|
818
821
|
|
|
819
822
|
const drawTooltip$3 = ({ fullChartTooltip, global, tooltipRoot, data, tooltipClassName, tooltipBind, renderTooltip, arc, allSlices, tooltipStyle, width, height, radius, }) => {
|
|
@@ -1202,53 +1205,53 @@ const calendarChartClassNames = {
|
|
|
1202
1205
|
...legendClassNames,
|
|
1203
1206
|
};
|
|
1204
1207
|
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
|
-
}
|
|
1208
|
+
const SvgWrapper$3 = styled(Wrapper) `
|
|
1209
|
+
.${calendarChartClassNames.calendarYear} {
|
|
1210
|
+
display: flex;
|
|
1211
|
+
margin-bottom: 16px;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.${calendarChartClassNames.calendarYearTitle} {
|
|
1215
|
+
display: inline-flex;
|
|
1216
|
+
align-items: flex-end;
|
|
1217
|
+
height: ${headerHeight};
|
|
1218
|
+
margin-bottom: 4px;
|
|
1219
|
+
font-weight: bold;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
.${calendarChartClassNames.calendarHeader} {
|
|
1223
|
+
height: ${headerHeight};
|
|
1224
|
+
margin-bottom: 4px;
|
|
1225
|
+
position: relative;
|
|
1226
|
+
display: flex;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.${calendarChartClassNames.calendarMonth} {
|
|
1230
|
+
font-size: 14px;
|
|
1231
|
+
bottom: 0;
|
|
1232
|
+
position: absolute;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.${calendarChartClassNames.calendarAxis} {
|
|
1236
|
+
display: flex;
|
|
1237
|
+
flex-direction: column;
|
|
1238
|
+
margin-right: 10px;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.${calendarChartClassNames.calendarWeekDay} {
|
|
1242
|
+
font-size: 12px;
|
|
1243
|
+
display: inline-flex;
|
|
1244
|
+
align-items: center;
|
|
1245
|
+
justify-content: flex-end;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.${calendarChartClassNames.calendarDays} {
|
|
1249
|
+
position: relative;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
.${calendarChartClassNames.calendarDay} {
|
|
1253
|
+
position: absolute;
|
|
1254
|
+
}
|
|
1252
1255
|
`;
|
|
1253
1256
|
|
|
1254
1257
|
const draw$3 = (node, props) => {
|
|
@@ -1475,67 +1478,67 @@ const lineChartClassNames = {
|
|
|
1475
1478
|
lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
|
|
1476
1479
|
lineChartMouseLabel: "lineChartMouseLabel",
|
|
1477
1480
|
};
|
|
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
|
-
}
|
|
1481
|
+
const SvgWrapper$2 = styled(Wrapper) `
|
|
1482
|
+
.${lineChartClassNames.lineChartYScaleGlobal},
|
|
1483
|
+
.${lineChartClassNames.lineChartXScaleGlobal},
|
|
1484
|
+
.${lineChartClassNames.lineChartGridGlobal} {
|
|
1485
|
+
shape-rendering: crispEdges;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
.${lineChartClassNames.lineChartLinesGlobal} {
|
|
1489
|
+
fill: none;
|
|
1490
|
+
stroke: steelblue;
|
|
1491
|
+
stroke-width: 1.5px;
|
|
1492
|
+
stroke-linejoin: round;
|
|
1493
|
+
stroke-linecap: round;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
.${lineChartClassNames.lineChartArea} {
|
|
1497
|
+
fill-opacity: 0.24;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
.${lineChartClassNames.lineChartGridLineX},
|
|
1501
|
+
.${lineChartClassNames.lineChartGridLineY},
|
|
1502
|
+
.${lineChartClassNames.lineChartMouseLine} {
|
|
1503
|
+
stroke: rgba(149, 149, 149, 0.24);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.${lineChartClassNames.lineChartMouseLine},
|
|
1507
|
+
.${lineChartClassNames.lineChartMouseCircle} {
|
|
1508
|
+
transition: opacity linear 200ms;
|
|
1509
|
+
pointer-events: none;
|
|
1510
|
+
stroke-width: 1px;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.${lineChartClassNames.lineChartDot} {
|
|
1514
|
+
stroke: #fff;
|
|
1515
|
+
stroke-width: 2px;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
.${lineChartClassNames.lineChartMouseLine} {
|
|
1519
|
+
shape-rendering: crispEdges;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.${lineChartClassNames.lineChartMouseRect} {
|
|
1523
|
+
fill: none;
|
|
1524
|
+
pointer-events: all;
|
|
1525
|
+
}
|
|
1523
1526
|
`;
|
|
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
|
-
}
|
|
1527
|
+
const TooltipStyles$2 = createGlobalStyle `
|
|
1528
|
+
.${lineChartClassNames.lineChartMouseLabel} {
|
|
1529
|
+
transition: opacity linear 200ms;
|
|
1530
|
+
z-index: 100;
|
|
1531
|
+
|
|
1532
|
+
.${lineChartClassNames.lineChartLabelFlex} {
|
|
1533
|
+
justify-content: flex-start;
|
|
1534
|
+
align-items: center;
|
|
1535
|
+
pointer-events: none;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.${lineChartClassNames.lineChartLabel} {
|
|
1539
|
+
margin: 0 0 0 10px;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1539
1542
|
`;
|
|
1540
1543
|
|
|
1541
1544
|
const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
|
|
@@ -1571,17 +1574,17 @@ const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, dr
|
|
|
1571
1574
|
}
|
|
1572
1575
|
};
|
|
1573
1576
|
|
|
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;
|
|
1577
|
+
const LabelContainer = styled.div `
|
|
1578
|
+
width: 0;
|
|
1579
|
+
height: 0;
|
|
1580
|
+
display: flex;
|
|
1581
|
+
align-items: flex-end;
|
|
1582
|
+
justify-content: center;
|
|
1583
|
+
font-size: 12px;
|
|
1584
|
+
white-space: nowrap;
|
|
1582
1585
|
`;
|
|
1583
|
-
const Label = styled.div `
|
|
1584
|
-
margin-bottom: 4px;
|
|
1586
|
+
const Label = styled.div `
|
|
1587
|
+
margin-bottom: 4px;
|
|
1585
1588
|
`;
|
|
1586
1589
|
|
|
1587
1590
|
const labelClassName = "d3-chart-label";
|
|
@@ -2175,66 +2178,66 @@ const barChartClassNames = {
|
|
|
2175
2178
|
...labelClassnames,
|
|
2176
2179
|
...barChartLinesClassNames,
|
|
2177
2180
|
};
|
|
2178
|
-
const SvgWrapper$1 = styled(Wrapper) `
|
|
2179
|
-
display: ${({ selectable }) => selectable && "inline-block"};
|
|
2180
|
-
user-select: ${({ selectable }) => selectable && "none"};
|
|
2181
|
-
width: ${({ selectable }) => selectable && "auto"};
|
|
2182
|
-
|
|
2183
|
-
line {
|
|
2184
|
-
stroke-width: 1px;
|
|
2185
|
-
shape-rendering: crispEdges;
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
.${barChartClassNames.barChartGridLineX},
|
|
2189
|
-
.${barChartClassNames.barChartGridLineY} {
|
|
2190
|
-
stroke: rgba(48, 69, 79, 0.06);
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
.${barChartClassNames.barChartMouseRect} {
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
.${barChartClassNames.barChartMouseRect} {
|
|
2197
|
-
fill: none;
|
|
2198
|
-
pointer-events: all;
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
.${barChartClassNames.barChartLinesGlobal} {
|
|
2202
|
-
stroke-width: 1.5px;
|
|
2203
|
-
stroke-linejoin: round;
|
|
2204
|
-
stroke-linecap: round;
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
.${barChartClassNames.barChartLine} {
|
|
2208
|
-
shape-rendering: auto;
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
.${barChartClassNames.barChartArea} {
|
|
2212
|
-
fill-opacity: 0.24;
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
.${barChartClassNames.barChartSelection} {
|
|
2216
|
-
position: absolute;
|
|
2217
|
-
top: 0;
|
|
2218
|
-
width: 0;
|
|
2219
|
-
background: rgba(0, 170, 255, 0.06);
|
|
2220
|
-
box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
|
|
2221
|
-
pointer-events: none;
|
|
2222
|
-
}
|
|
2181
|
+
const SvgWrapper$1 = styled(Wrapper) `
|
|
2182
|
+
display: ${({ selectable }) => selectable && "inline-block"};
|
|
2183
|
+
user-select: ${({ selectable }) => selectable && "none"};
|
|
2184
|
+
width: ${({ selectable }) => selectable && "auto"};
|
|
2185
|
+
|
|
2186
|
+
line {
|
|
2187
|
+
stroke-width: 1px;
|
|
2188
|
+
shape-rendering: crispEdges;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
.${barChartClassNames.barChartGridLineX},
|
|
2192
|
+
.${barChartClassNames.barChartGridLineY} {
|
|
2193
|
+
stroke: rgba(48, 69, 79, 0.06);
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
.${barChartClassNames.barChartMouseRect} {
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
.${barChartClassNames.barChartMouseRect} {
|
|
2200
|
+
fill: none;
|
|
2201
|
+
pointer-events: all;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
.${barChartClassNames.barChartLinesGlobal} {
|
|
2205
|
+
stroke-width: 1.5px;
|
|
2206
|
+
stroke-linejoin: round;
|
|
2207
|
+
stroke-linecap: round;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
.${barChartClassNames.barChartLine} {
|
|
2211
|
+
shape-rendering: auto;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.${barChartClassNames.barChartArea} {
|
|
2215
|
+
fill-opacity: 0.24;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
.${barChartClassNames.barChartSelection} {
|
|
2219
|
+
position: absolute;
|
|
2220
|
+
top: 0;
|
|
2221
|
+
width: 0;
|
|
2222
|
+
background: rgba(0, 170, 255, 0.06);
|
|
2223
|
+
box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
|
|
2224
|
+
pointer-events: none;
|
|
2225
|
+
}
|
|
2223
2226
|
`;
|
|
2224
|
-
const TooltipStyles$1 = createGlobalStyle `
|
|
2225
|
-
.${barChartClassNames.barChartMouseTooltip} {
|
|
2226
|
-
z-index: 100;
|
|
2227
|
-
transition: all linear 144ms;
|
|
2228
|
-
|
|
2229
|
-
.${barChartClassNames.barChartTooltipItem} {
|
|
2230
|
-
padding: 0.125rem;
|
|
2231
|
-
margin-bottom: 4px;
|
|
2232
|
-
|
|
2233
|
-
:last-of-type {
|
|
2234
|
-
margin-bottom: 0;
|
|
2235
|
-
}
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2227
|
+
const TooltipStyles$1 = createGlobalStyle `
|
|
2228
|
+
.${barChartClassNames.barChartMouseTooltip} {
|
|
2229
|
+
z-index: 100;
|
|
2230
|
+
transition: all linear 144ms;
|
|
2231
|
+
|
|
2232
|
+
.${barChartClassNames.barChartTooltipItem} {
|
|
2233
|
+
padding: 0.125rem;
|
|
2234
|
+
margin-bottom: 4px;
|
|
2235
|
+
|
|
2236
|
+
:last-of-type {
|
|
2237
|
+
margin-bottom: 0;
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2238
2241
|
`;
|
|
2239
2242
|
|
|
2240
2243
|
const useSelection = (node, props) => {
|
|
@@ -3042,45 +3045,45 @@ const horizontalBarChartClassNames = {
|
|
|
3042
3045
|
horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
|
|
3043
3046
|
horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
|
|
3044
3047
|
};
|
|
3045
|
-
const Table = styled.table `
|
|
3046
|
-
width: 100%;
|
|
3048
|
+
const Table = styled.table `
|
|
3049
|
+
width: 100%;
|
|
3047
3050
|
`;
|
|
3048
|
-
const LabelCell = styled.div `
|
|
3049
|
-
text-align: right;
|
|
3051
|
+
const LabelCell = styled.div `
|
|
3052
|
+
text-align: right;
|
|
3050
3053
|
`;
|
|
3051
|
-
const BarFlex = styled.div `
|
|
3052
|
-
width: 100%;
|
|
3053
|
-
display: flex;
|
|
3054
|
-
height: 1rem;
|
|
3054
|
+
const BarFlex = styled.div `
|
|
3055
|
+
width: 100%;
|
|
3056
|
+
display: flex;
|
|
3057
|
+
height: 1rem;
|
|
3055
3058
|
`;
|
|
3056
|
-
const BarsTd = styled.td `
|
|
3057
|
-
width: 100%;
|
|
3058
|
-
position: relative;
|
|
3059
|
-
vertical-align: middle;
|
|
3059
|
+
const BarsTd = styled.td `
|
|
3060
|
+
width: 100%;
|
|
3061
|
+
position: relative;
|
|
3062
|
+
vertical-align: middle;
|
|
3060
3063
|
`;
|
|
3061
|
-
const TooltipFlex = styled(TooltipFlex$1) `
|
|
3062
|
-
position: absolute;
|
|
3063
|
-
top: 0;
|
|
3064
|
-
left: 50%;
|
|
3065
|
-
transform: translate(-50%, -50%);
|
|
3066
|
-
will-change: left, top;
|
|
3064
|
+
const TooltipFlex = styled(TooltipFlex$1) `
|
|
3065
|
+
position: absolute;
|
|
3066
|
+
top: 0;
|
|
3067
|
+
left: 50%;
|
|
3068
|
+
transform: translate(-50%, -50%);
|
|
3069
|
+
will-change: left, top;
|
|
3067
3070
|
`;
|
|
3068
|
-
const StackSumContainer = styled.div `
|
|
3069
|
-
position: relative;
|
|
3071
|
+
const StackSumContainer = styled.div `
|
|
3072
|
+
position: relative;
|
|
3070
3073
|
`;
|
|
3071
|
-
const StackSum = styled.div `
|
|
3072
|
-
white-space: nowrap;
|
|
3073
|
-
position: absolute;
|
|
3074
|
-
top: 50%;
|
|
3075
|
-
left: 50%;
|
|
3076
|
-
transform: translate(0, -50%);
|
|
3074
|
+
const StackSum = styled.div `
|
|
3075
|
+
white-space: nowrap;
|
|
3076
|
+
position: absolute;
|
|
3077
|
+
top: 50%;
|
|
3078
|
+
left: 50%;
|
|
3079
|
+
transform: translate(0, -50%);
|
|
3077
3080
|
`;
|
|
3078
|
-
const StackWrapper = styled.div `
|
|
3079
|
-
position: absolute;
|
|
3080
|
-
top: 0;
|
|
3081
|
-
display: flex;
|
|
3082
|
-
justify-content: flex-start;
|
|
3083
|
-
height: 100%;
|
|
3081
|
+
const StackWrapper = styled.div `
|
|
3082
|
+
position: absolute;
|
|
3083
|
+
top: 0;
|
|
3084
|
+
display: flex;
|
|
3085
|
+
justify-content: flex-start;
|
|
3086
|
+
height: 100%;
|
|
3084
3087
|
`;
|
|
3085
3088
|
|
|
3086
3089
|
const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
|
|
@@ -3132,10 +3135,10 @@ const useStackWrapper = (stackedTooltip) => {
|
|
|
3132
3135
|
: ({ children }) => (jsx(Fragment$1, { children: children })), [stackedTooltip]);
|
|
3133
3136
|
};
|
|
3134
3137
|
|
|
3135
|
-
const BarStyled = styled.div `
|
|
3136
|
-
position: relative;
|
|
3137
|
-
display: inline-flex;
|
|
3138
|
-
height: 100%;
|
|
3138
|
+
const BarStyled = styled.div `
|
|
3139
|
+
position: relative;
|
|
3140
|
+
display: inline-flex;
|
|
3141
|
+
height: 100%;
|
|
3139
3142
|
`;
|
|
3140
3143
|
|
|
3141
3144
|
const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
|
|
@@ -3152,23 +3155,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
|
|
|
3152
3155
|
}, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
|
|
3153
3156
|
};
|
|
3154
3157
|
|
|
3155
|
-
const TickTd = styled.td `
|
|
3156
|
-
position: relative;
|
|
3158
|
+
const TickTd = styled.td `
|
|
3159
|
+
position: relative;
|
|
3157
3160
|
`;
|
|
3158
|
-
const Ticks = styled.div `
|
|
3159
|
-
position: relative;
|
|
3160
|
-
height: 1rem;
|
|
3161
|
+
const Ticks = styled.div `
|
|
3162
|
+
position: relative;
|
|
3163
|
+
height: 1rem;
|
|
3161
3164
|
`;
|
|
3162
|
-
const Tick = styled.div `
|
|
3163
|
-
white-space: nowrap;
|
|
3164
|
-
width: 0;
|
|
3165
|
-
height: 0;
|
|
3166
|
-
position: absolute;
|
|
3167
|
-
top: 50%;
|
|
3168
|
-
transform: translateY(-50%);
|
|
3169
|
-
display: flex;
|
|
3170
|
-
align-items: center;
|
|
3171
|
-
justify-content: center;
|
|
3165
|
+
const Tick = styled.div `
|
|
3166
|
+
white-space: nowrap;
|
|
3167
|
+
width: 0;
|
|
3168
|
+
height: 0;
|
|
3169
|
+
position: absolute;
|
|
3170
|
+
top: 50%;
|
|
3171
|
+
transform: translateY(-50%);
|
|
3172
|
+
display: flex;
|
|
3173
|
+
align-items: center;
|
|
3174
|
+
justify-content: center;
|
|
3172
3175
|
`;
|
|
3173
3176
|
|
|
3174
3177
|
const hundred = 100;
|
|
@@ -3267,29 +3270,29 @@ const bubbleChartClassNames = {
|
|
|
3267
3270
|
bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
|
|
3268
3271
|
bubbleChartTip: "bubbleChartTip",
|
|
3269
3272
|
};
|
|
3270
|
-
const SvgWrapper = styled(Wrapper) `
|
|
3271
|
-
.${bubbleChartClassNames.bubbleChartYAxis},
|
|
3272
|
-
.${bubbleChartClassNames.bubbleChartXAxis},
|
|
3273
|
-
.${bubbleChartClassNames.bubbleChartGridGlobal} {
|
|
3274
|
-
shape-rendering: crispEdges;
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
.${bubbleChartClassNames.bubbleChartGridLineX},
|
|
3278
|
-
.${bubbleChartClassNames.bubbleChartGridLineY} {
|
|
3279
|
-
stroke: rgba(149, 149, 149, 0.24);
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
-
.${bubbleChartClassNames.bubbleChartYScaleLabel} {
|
|
3283
|
-
font-size: 10px;
|
|
3284
|
-
}
|
|
3273
|
+
const SvgWrapper = styled(Wrapper) `
|
|
3274
|
+
.${bubbleChartClassNames.bubbleChartYAxis},
|
|
3275
|
+
.${bubbleChartClassNames.bubbleChartXAxis},
|
|
3276
|
+
.${bubbleChartClassNames.bubbleChartGridGlobal} {
|
|
3277
|
+
shape-rendering: crispEdges;
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
.${bubbleChartClassNames.bubbleChartGridLineX},
|
|
3281
|
+
.${bubbleChartClassNames.bubbleChartGridLineY} {
|
|
3282
|
+
stroke: rgba(149, 149, 149, 0.24);
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
.${bubbleChartClassNames.bubbleChartYScaleLabel} {
|
|
3286
|
+
font-size: 10px;
|
|
3287
|
+
}
|
|
3285
3288
|
`;
|
|
3286
|
-
const TooltipStyles = createGlobalStyle `
|
|
3287
|
-
.${bubbleChartClassNames.bubbleChartTooltipContainer} {
|
|
3288
|
-
position: absolute;
|
|
3289
|
-
transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
|
|
3290
|
-
pointer-events: none;
|
|
3291
|
-
z-index: 1;
|
|
3292
|
-
}
|
|
3289
|
+
const TooltipStyles = createGlobalStyle `
|
|
3290
|
+
.${bubbleChartClassNames.bubbleChartTooltipContainer} {
|
|
3291
|
+
position: absolute;
|
|
3292
|
+
transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
|
|
3293
|
+
pointer-events: none;
|
|
3294
|
+
z-index: 1;
|
|
3295
|
+
}
|
|
3293
3296
|
`;
|
|
3294
3297
|
|
|
3295
3298
|
const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
|
|
@@ -3326,14 +3329,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
|
|
|
3326
3329
|
}
|
|
3327
3330
|
};
|
|
3328
3331
|
|
|
3329
|
-
const Tooltip = styled.div `
|
|
3330
|
-
width: 0;
|
|
3331
|
-
height: 0;
|
|
3332
|
-
display: flex;
|
|
3333
|
-
align-items: flex-end;
|
|
3334
|
-
justify-content: center;
|
|
3335
|
-
font-size: 12px;
|
|
3336
|
-
white-space: nowrap;
|
|
3332
|
+
const Tooltip = styled.div `
|
|
3333
|
+
width: 0;
|
|
3334
|
+
height: 0;
|
|
3335
|
+
display: flex;
|
|
3336
|
+
align-items: flex-end;
|
|
3337
|
+
justify-content: center;
|
|
3338
|
+
font-size: 12px;
|
|
3339
|
+
white-space: nowrap;
|
|
3337
3340
|
`;
|
|
3338
3341
|
|
|
3339
3342
|
const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {
|