@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "2.5.23",
3
+ "version": "2.5.24",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/release-notes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Charts Library Release Notes
2
2
 
3
+ ## 2.5.24
4
+
5
+ - Add performance test case
6
+
3
7
  ## 2.5.23
4
8
 
5
9
  - Patch minor regression in axis limits introduced in 2.5.22
@@ -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,