@oliasoft-open-source/charts-library 2.5.23 → 2.5.24
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/package.json
CHANGED
package/release-notes.md
CHANGED
|
@@ -97,6 +97,7 @@ export const LineChartPropTypes = {
|
|
|
97
97
|
onLegendClick: PropTypes.func,
|
|
98
98
|
onPointHover: PropTypes.func,
|
|
99
99
|
onPointUnhover: PropTypes.func,
|
|
100
|
+
onAnimationComplete: PropTypes.func,
|
|
100
101
|
}),
|
|
101
102
|
}),
|
|
102
103
|
}).isRequired,
|
|
@@ -193,6 +194,8 @@ export const getDefaultProps = (props) => {
|
|
|
193
194
|
onLegendClick: props.chart.options.interactions.onLegendClick,
|
|
194
195
|
onPointHover: props.chart.options.interactions.onPointHover,
|
|
195
196
|
onPointUnhover: props.chart.options.interactions.onPointUnhover,
|
|
197
|
+
onAnimationComplete:
|
|
198
|
+
props.chart.options.interactions.onAnimationComplete,
|
|
196
199
|
},
|
|
197
200
|
},
|
|
198
201
|
};
|
|
@@ -99,7 +99,6 @@ const LineChart = (props) => {
|
|
|
99
99
|
const chart = getDefaultProps(props);
|
|
100
100
|
const { options, testId } = chart;
|
|
101
101
|
const { headerComponent, subheaderComponent, table } = props;
|
|
102
|
-
|
|
103
102
|
const {
|
|
104
103
|
additionalAxesOptions,
|
|
105
104
|
annotations,
|
|
@@ -450,6 +449,7 @@ const LineChart = (props) => {
|
|
|
450
449
|
? false
|
|
451
450
|
: {
|
|
452
451
|
duration: ANIMATION_DURATION.FAST,
|
|
452
|
+
onComplete: interactions.onAnimationComplete,
|
|
453
453
|
},
|
|
454
454
|
hover: {
|
|
455
455
|
mode: ChartHoverMode.Nearest,
|