@oliasoft-open-source/charts-library 2.5.0 → 2.5.1

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.0",
3
+ "version": "2.5.1",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "main": "index.js",
6
6
  "files": [
package/release-notes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Charts Library Release Notes
2
2
 
3
+ ## 2.5.1
4
+
5
+ - Added resize delay for performance
6
+
3
7
  ## 2.5.0
4
8
 
5
9
  - Separate controls for points/lines, axes options, legend, download
@@ -199,6 +199,7 @@ const BarChart = (props) => {
199
199
  options={{
200
200
  onClick,
201
201
  onHover,
202
+ resizeDelay: 50,
202
203
  indexAxis: isVertical(options.direction) ? AxisType.X : AxisType.Y,
203
204
  maintainAspectRatio: chartStyling.maintainAspectRatio,
204
205
  animation: {
@@ -432,6 +432,7 @@ const LineChart = (props) => {
432
432
  options={{
433
433
  onClick,
434
434
  onHover,
435
+ resizeDelay: 50,
435
436
  maintainAspectRatio: chartStyling.maintainAspectRatio,
436
437
  aspectRatio: chartStyling.squareAspectRatio ? 1 : null, // 1 equals square aspect ratio
437
438
  animation: {
@@ -413,6 +413,7 @@ const PieChart = (props) => {
413
413
  animationDuration: options.chartStyling.performanceMode ? 0 : 400,
414
414
  },
415
415
  onHover,
416
+ resizeDelay: 50,
416
417
  elements: {
417
418
  pie: {
418
419
  pointStyle: 'circle',