@oliasoft-open-source/charts-library 2.5.11 → 2.5.12

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.11",
3
+ "version": "2.5.12",
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.12
4
+
5
+ - change thousand separators in axis label from comma to space
6
+
3
7
  ## 2.5.11
4
8
 
5
9
  - Allow headerComponent and chart title to coexist
@@ -43,6 +43,10 @@ const getLineChartAxis = (options, axisType, state, currentScales, i = 0) => {
43
43
  },
44
44
  }
45
45
  : {
46
+ callback(val) {
47
+ const value = this.getLabelForValue(val);
48
+ return value.replaceAll(/,/g, ' ');
49
+ },
46
50
  stepSize:
47
51
  axisData.stepSize ||
48
52
  (axisType === AxisType.Y ? additionalAxesOptions.stepSize : null),