@mui/x-charts 8.13.0 → 8.14.0
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/BarChart/BarChart.js +44 -36
- package/CHANGELOG.md +171 -1
- package/ChartContainer/ChartContainer.js +68 -56
- package/ChartsTooltip/ChartsTooltipContainer.js +2 -0
- package/ChartsXAxis/useAxisTicksProps.d.ts +197 -355
- package/ChartsYAxis/useAxisTicksProps.d.ts +197 -355
- package/LineChart/LineChart.js +44 -36
- package/PieChart/PieArc.d.ts +18 -4
- package/PieChart/PieArc.js +11 -5
- package/PieChart/PieArcPlot.js +3 -1
- package/ScatterChart/ScatterChart.js +44 -36
- package/SparkLineChart/SparkLineChart.js +44 -36
- package/esm/BarChart/BarChart.js +44 -36
- package/esm/ChartContainer/ChartContainer.js +68 -56
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +2 -0
- package/esm/ChartsXAxis/useAxisTicksProps.d.ts +197 -355
- package/esm/ChartsYAxis/useAxisTicksProps.d.ts +197 -355
- package/esm/LineChart/LineChart.js +44 -36
- package/esm/PieChart/PieArc.d.ts +18 -4
- package/esm/PieChart/PieArc.js +11 -5
- package/esm/PieChart/PieArcPlot.js +3 -1
- package/esm/ScatterChart/ScatterChart.js +44 -36
- package/esm/SparkLineChart/SparkLineChart.js +44 -36
- package/esm/hooks/animation/useAnimate.js +5 -3
- package/esm/hooks/useScale.d.ts +5 -1
- package/esm/index.js +1 -1
- package/esm/internals/animation/useAnimateInternal.d.ts +1 -1
- package/esm/internals/animation/useAnimateInternal.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +8 -8
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +4 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +9 -11
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +4 -28
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts +4 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.js +3 -24
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +20 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +77 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.d.ts +4 -65
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +7 -104
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +31 -39
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +166 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +158 -47
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +10 -3
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.types.d.ts +6 -0
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +5 -1
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +9 -1
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +10 -1
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +2 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +2 -2
- package/esm/internals/scaleGuards.d.ts +12 -6
- package/esm/internals/symlogScale.js +5 -0
- package/esm/locales/enUS.js +4 -4
- package/esm/locales/ptBR.js +97 -99
- package/esm/models/axis.d.ts +39 -17
- package/esm/models/axis.js +3 -0
- package/hooks/animation/useAnimate.js +4 -3
- package/hooks/useScale.d.ts +5 -1
- package/index.js +1 -1
- package/internals/animation/useAnimateInternal.d.ts +1 -1
- package/internals/animation/useAnimateInternal.js +1 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +7 -7
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +4 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +9 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +4 -28
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts +4 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.js +3 -25
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +20 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +84 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.d.ts +4 -65
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +8 -108
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +29 -37
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +166 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +158 -47
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +10 -3
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.types.d.ts +6 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +5 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +9 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +11 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +2 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +1 -1
- package/internals/scaleGuards.d.ts +12 -6
- package/internals/symlogScale.js +5 -0
- package/locales/enUS.js +4 -4
- package/locales/ptBR.js +97 -99
- package/models/axis.d.ts +39 -17
- package/models/axis.js +4 -0
- package/package.json +6 -6
|
@@ -180,9 +180,9 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
180
180
|
ignoreTooltip: PropTypes.bool,
|
|
181
181
|
label: PropTypes.string,
|
|
182
182
|
labelStyle: PropTypes.object,
|
|
183
|
-
max: PropTypes.
|
|
183
|
+
max: PropTypes.number,
|
|
184
184
|
maxRadius: PropTypes.number,
|
|
185
|
-
min: PropTypes.
|
|
185
|
+
min: PropTypes.number,
|
|
186
186
|
minRadius: PropTypes.number,
|
|
187
187
|
offset: PropTypes.number,
|
|
188
188
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
@@ -244,8 +244,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
244
244
|
label: PropTypes.string,
|
|
245
245
|
labelGap: PropTypes.number,
|
|
246
246
|
labelStyle: PropTypes.object,
|
|
247
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
248
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
249
247
|
offset: PropTypes.number,
|
|
250
248
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
251
249
|
reverse: PropTypes.bool,
|
|
@@ -299,8 +297,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
299
297
|
label: PropTypes.string,
|
|
300
298
|
labelGap: PropTypes.number,
|
|
301
299
|
labelStyle: PropTypes.object,
|
|
302
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
303
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
304
300
|
offset: PropTypes.number,
|
|
305
301
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
306
302
|
reverse: PropTypes.bool,
|
|
@@ -344,8 +340,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
344
340
|
label: PropTypes.string,
|
|
345
341
|
labelGap: PropTypes.number,
|
|
346
342
|
labelStyle: PropTypes.object,
|
|
347
|
-
max: PropTypes.
|
|
348
|
-
min: PropTypes.
|
|
343
|
+
max: PropTypes.number,
|
|
344
|
+
min: PropTypes.number,
|
|
349
345
|
offset: PropTypes.number,
|
|
350
346
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
351
347
|
reverse: PropTypes.bool,
|
|
@@ -390,8 +386,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
390
386
|
label: PropTypes.string,
|
|
391
387
|
labelGap: PropTypes.number,
|
|
392
388
|
labelStyle: PropTypes.object,
|
|
393
|
-
max: PropTypes.
|
|
394
|
-
min: PropTypes.
|
|
389
|
+
max: PropTypes.number,
|
|
390
|
+
min: PropTypes.number,
|
|
395
391
|
offset: PropTypes.number,
|
|
396
392
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
397
393
|
reverse: PropTypes.bool,
|
|
@@ -435,8 +431,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
435
431
|
label: PropTypes.string,
|
|
436
432
|
labelGap: PropTypes.number,
|
|
437
433
|
labelStyle: PropTypes.object,
|
|
438
|
-
max: PropTypes.
|
|
439
|
-
min: PropTypes.
|
|
434
|
+
max: PropTypes.number,
|
|
435
|
+
min: PropTypes.number,
|
|
440
436
|
offset: PropTypes.number,
|
|
441
437
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
442
438
|
reverse: PropTypes.bool,
|
|
@@ -480,8 +476,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
480
476
|
label: PropTypes.string,
|
|
481
477
|
labelGap: PropTypes.number,
|
|
482
478
|
labelStyle: PropTypes.object,
|
|
483
|
-
max: PropTypes.
|
|
484
|
-
min: PropTypes.
|
|
479
|
+
max: PropTypes.number,
|
|
480
|
+
min: PropTypes.number,
|
|
485
481
|
offset: PropTypes.number,
|
|
486
482
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
487
483
|
reverse: PropTypes.bool,
|
|
@@ -525,8 +521,12 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
525
521
|
label: PropTypes.string,
|
|
526
522
|
labelGap: PropTypes.number,
|
|
527
523
|
labelStyle: PropTypes.object,
|
|
528
|
-
max: PropTypes.oneOfType([PropTypes.
|
|
529
|
-
|
|
524
|
+
max: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
525
|
+
valueOf: PropTypes.func.isRequired
|
|
526
|
+
})]),
|
|
527
|
+
min: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
528
|
+
valueOf: PropTypes.func.isRequired
|
|
529
|
+
})]),
|
|
530
530
|
offset: PropTypes.number,
|
|
531
531
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
532
532
|
reverse: PropTypes.bool,
|
|
@@ -570,8 +570,12 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
570
570
|
label: PropTypes.string,
|
|
571
571
|
labelGap: PropTypes.number,
|
|
572
572
|
labelStyle: PropTypes.object,
|
|
573
|
-
max: PropTypes.oneOfType([PropTypes.
|
|
574
|
-
|
|
573
|
+
max: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
574
|
+
valueOf: PropTypes.func.isRequired
|
|
575
|
+
})]),
|
|
576
|
+
min: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
577
|
+
valueOf: PropTypes.func.isRequired
|
|
578
|
+
})]),
|
|
575
579
|
offset: PropTypes.number,
|
|
576
580
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
577
581
|
reverse: PropTypes.bool,
|
|
@@ -615,8 +619,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
615
619
|
label: PropTypes.string,
|
|
616
620
|
labelGap: PropTypes.number,
|
|
617
621
|
labelStyle: PropTypes.object,
|
|
618
|
-
max: PropTypes.
|
|
619
|
-
min: PropTypes.
|
|
622
|
+
max: PropTypes.number,
|
|
623
|
+
min: PropTypes.number,
|
|
620
624
|
offset: PropTypes.number,
|
|
621
625
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
622
626
|
reverse: PropTypes.bool,
|
|
@@ -709,8 +713,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
709
713
|
ignoreTooltip: PropTypes.bool,
|
|
710
714
|
label: PropTypes.string,
|
|
711
715
|
labelStyle: PropTypes.object,
|
|
712
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
713
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
714
716
|
offset: PropTypes.number,
|
|
715
717
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
716
718
|
reverse: PropTypes.bool,
|
|
@@ -763,8 +765,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
763
765
|
ignoreTooltip: PropTypes.bool,
|
|
764
766
|
label: PropTypes.string,
|
|
765
767
|
labelStyle: PropTypes.object,
|
|
766
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
767
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
768
768
|
offset: PropTypes.number,
|
|
769
769
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
770
770
|
reverse: PropTypes.bool,
|
|
@@ -807,8 +807,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
807
807
|
ignoreTooltip: PropTypes.bool,
|
|
808
808
|
label: PropTypes.string,
|
|
809
809
|
labelStyle: PropTypes.object,
|
|
810
|
-
max: PropTypes.
|
|
811
|
-
min: PropTypes.
|
|
810
|
+
max: PropTypes.number,
|
|
811
|
+
min: PropTypes.number,
|
|
812
812
|
offset: PropTypes.number,
|
|
813
813
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
814
814
|
reverse: PropTypes.bool,
|
|
@@ -852,8 +852,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
852
852
|
ignoreTooltip: PropTypes.bool,
|
|
853
853
|
label: PropTypes.string,
|
|
854
854
|
labelStyle: PropTypes.object,
|
|
855
|
-
max: PropTypes.
|
|
856
|
-
min: PropTypes.
|
|
855
|
+
max: PropTypes.number,
|
|
856
|
+
min: PropTypes.number,
|
|
857
857
|
offset: PropTypes.number,
|
|
858
858
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
859
859
|
reverse: PropTypes.bool,
|
|
@@ -896,8 +896,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
896
896
|
ignoreTooltip: PropTypes.bool,
|
|
897
897
|
label: PropTypes.string,
|
|
898
898
|
labelStyle: PropTypes.object,
|
|
899
|
-
max: PropTypes.
|
|
900
|
-
min: PropTypes.
|
|
899
|
+
max: PropTypes.number,
|
|
900
|
+
min: PropTypes.number,
|
|
901
901
|
offset: PropTypes.number,
|
|
902
902
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
903
903
|
reverse: PropTypes.bool,
|
|
@@ -940,8 +940,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
940
940
|
ignoreTooltip: PropTypes.bool,
|
|
941
941
|
label: PropTypes.string,
|
|
942
942
|
labelStyle: PropTypes.object,
|
|
943
|
-
max: PropTypes.
|
|
944
|
-
min: PropTypes.
|
|
943
|
+
max: PropTypes.number,
|
|
944
|
+
min: PropTypes.number,
|
|
945
945
|
offset: PropTypes.number,
|
|
946
946
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
947
947
|
reverse: PropTypes.bool,
|
|
@@ -984,8 +984,12 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
984
984
|
ignoreTooltip: PropTypes.bool,
|
|
985
985
|
label: PropTypes.string,
|
|
986
986
|
labelStyle: PropTypes.object,
|
|
987
|
-
max: PropTypes.oneOfType([PropTypes.
|
|
988
|
-
|
|
987
|
+
max: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
988
|
+
valueOf: PropTypes.func.isRequired
|
|
989
|
+
})]),
|
|
990
|
+
min: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
991
|
+
valueOf: PropTypes.func.isRequired
|
|
992
|
+
})]),
|
|
989
993
|
offset: PropTypes.number,
|
|
990
994
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
991
995
|
reverse: PropTypes.bool,
|
|
@@ -1028,8 +1032,12 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1028
1032
|
ignoreTooltip: PropTypes.bool,
|
|
1029
1033
|
label: PropTypes.string,
|
|
1030
1034
|
labelStyle: PropTypes.object,
|
|
1031
|
-
max: PropTypes.oneOfType([PropTypes.
|
|
1032
|
-
|
|
1035
|
+
max: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1036
|
+
valueOf: PropTypes.func.isRequired
|
|
1037
|
+
})]),
|
|
1038
|
+
min: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1039
|
+
valueOf: PropTypes.func.isRequired
|
|
1040
|
+
})]),
|
|
1033
1041
|
offset: PropTypes.number,
|
|
1034
1042
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
1035
1043
|
reverse: PropTypes.bool,
|
|
@@ -1072,8 +1080,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1072
1080
|
ignoreTooltip: PropTypes.bool,
|
|
1073
1081
|
label: PropTypes.string,
|
|
1074
1082
|
labelStyle: PropTypes.object,
|
|
1075
|
-
max: PropTypes.
|
|
1076
|
-
min: PropTypes.
|
|
1083
|
+
max: PropTypes.number,
|
|
1084
|
+
min: PropTypes.number,
|
|
1077
1085
|
offset: PropTypes.number,
|
|
1078
1086
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
1079
1087
|
reverse: PropTypes.bool,
|
|
@@ -1133,8 +1141,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1133
1141
|
ignoreTooltip: PropTypes.bool,
|
|
1134
1142
|
label: PropTypes.string,
|
|
1135
1143
|
labelStyle: PropTypes.object,
|
|
1136
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
1137
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
1138
1144
|
offset: PropTypes.number,
|
|
1139
1145
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1140
1146
|
reverse: PropTypes.bool,
|
|
@@ -1186,8 +1192,6 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1186
1192
|
ignoreTooltip: PropTypes.bool,
|
|
1187
1193
|
label: PropTypes.string,
|
|
1188
1194
|
labelStyle: PropTypes.object,
|
|
1189
|
-
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
1190
|
-
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
1191
1195
|
offset: PropTypes.number,
|
|
1192
1196
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1193
1197
|
reverse: PropTypes.bool,
|
|
@@ -1229,8 +1233,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1229
1233
|
ignoreTooltip: PropTypes.bool,
|
|
1230
1234
|
label: PropTypes.string,
|
|
1231
1235
|
labelStyle: PropTypes.object,
|
|
1232
|
-
max: PropTypes.
|
|
1233
|
-
min: PropTypes.
|
|
1236
|
+
max: PropTypes.number,
|
|
1237
|
+
min: PropTypes.number,
|
|
1234
1238
|
offset: PropTypes.number,
|
|
1235
1239
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1236
1240
|
reverse: PropTypes.bool,
|
|
@@ -1273,8 +1277,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1273
1277
|
ignoreTooltip: PropTypes.bool,
|
|
1274
1278
|
label: PropTypes.string,
|
|
1275
1279
|
labelStyle: PropTypes.object,
|
|
1276
|
-
max: PropTypes.
|
|
1277
|
-
min: PropTypes.
|
|
1280
|
+
max: PropTypes.number,
|
|
1281
|
+
min: PropTypes.number,
|
|
1278
1282
|
offset: PropTypes.number,
|
|
1279
1283
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1280
1284
|
reverse: PropTypes.bool,
|
|
@@ -1316,8 +1320,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1316
1320
|
ignoreTooltip: PropTypes.bool,
|
|
1317
1321
|
label: PropTypes.string,
|
|
1318
1322
|
labelStyle: PropTypes.object,
|
|
1319
|
-
max: PropTypes.
|
|
1320
|
-
min: PropTypes.
|
|
1323
|
+
max: PropTypes.number,
|
|
1324
|
+
min: PropTypes.number,
|
|
1321
1325
|
offset: PropTypes.number,
|
|
1322
1326
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1323
1327
|
reverse: PropTypes.bool,
|
|
@@ -1359,8 +1363,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1359
1363
|
ignoreTooltip: PropTypes.bool,
|
|
1360
1364
|
label: PropTypes.string,
|
|
1361
1365
|
labelStyle: PropTypes.object,
|
|
1362
|
-
max: PropTypes.
|
|
1363
|
-
min: PropTypes.
|
|
1366
|
+
max: PropTypes.number,
|
|
1367
|
+
min: PropTypes.number,
|
|
1364
1368
|
offset: PropTypes.number,
|
|
1365
1369
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1366
1370
|
reverse: PropTypes.bool,
|
|
@@ -1402,8 +1406,12 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1402
1406
|
ignoreTooltip: PropTypes.bool,
|
|
1403
1407
|
label: PropTypes.string,
|
|
1404
1408
|
labelStyle: PropTypes.object,
|
|
1405
|
-
max: PropTypes.oneOfType([PropTypes.
|
|
1406
|
-
|
|
1409
|
+
max: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1410
|
+
valueOf: PropTypes.func.isRequired
|
|
1411
|
+
})]),
|
|
1412
|
+
min: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1413
|
+
valueOf: PropTypes.func.isRequired
|
|
1414
|
+
})]),
|
|
1407
1415
|
offset: PropTypes.number,
|
|
1408
1416
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1409
1417
|
reverse: PropTypes.bool,
|
|
@@ -1445,8 +1453,12 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1445
1453
|
ignoreTooltip: PropTypes.bool,
|
|
1446
1454
|
label: PropTypes.string,
|
|
1447
1455
|
labelStyle: PropTypes.object,
|
|
1448
|
-
max: PropTypes.oneOfType([PropTypes.
|
|
1449
|
-
|
|
1456
|
+
max: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1457
|
+
valueOf: PropTypes.func.isRequired
|
|
1458
|
+
})]),
|
|
1459
|
+
min: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
1460
|
+
valueOf: PropTypes.func.isRequired
|
|
1461
|
+
})]),
|
|
1450
1462
|
offset: PropTypes.number,
|
|
1451
1463
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1452
1464
|
reverse: PropTypes.bool,
|
|
@@ -1488,8 +1500,8 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
1488
1500
|
ignoreTooltip: PropTypes.bool,
|
|
1489
1501
|
label: PropTypes.string,
|
|
1490
1502
|
labelStyle: PropTypes.object,
|
|
1491
|
-
max: PropTypes.
|
|
1492
|
-
min: PropTypes.
|
|
1503
|
+
max: PropTypes.number,
|
|
1504
|
+
min: PropTypes.number,
|
|
1493
1505
|
offset: PropTypes.number,
|
|
1494
1506
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
1495
1507
|
reverse: PropTypes.bool,
|
|
@@ -80,9 +80,11 @@ function ChartsTooltipContainer(inProps) {
|
|
|
80
80
|
};
|
|
81
81
|
element.addEventListener('pointerdown', handlePointerEvent);
|
|
82
82
|
element.addEventListener('pointermove', handlePointerEvent);
|
|
83
|
+
element.addEventListener('pointerenter', handlePointerEvent);
|
|
83
84
|
return () => {
|
|
84
85
|
element.removeEventListener('pointerdown', handlePointerEvent);
|
|
85
86
|
element.removeEventListener('pointermove', handlePointerEvent);
|
|
87
|
+
element.removeEventListener('pointerenter', handlePointerEvent);
|
|
86
88
|
update.clear();
|
|
87
89
|
};
|
|
88
90
|
}, [svgRef, positionRef]);
|