@oliasoft-open-source/charts-library 2.9.0 → 2.9.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
package/release-notes.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Charts Library Release Notes
|
|
2
2
|
|
|
3
|
+
## 2.9.1
|
|
4
|
+
|
|
5
|
+
- Fix decimal values in BarChart in tooltips for locales with comma decimal ([OW-10632](https://oliasoft.atlassian.net/browse/OW-10632))
|
|
6
|
+
|
|
3
7
|
## 2.9.0
|
|
4
8
|
|
|
5
9
|
- Add double-click event on chart area, change reset chart ranges from one click to double click ([OW-10412](https://oliasoft.atlassian.net/browse/OW-10412))
|
|
@@ -46,7 +46,8 @@ const getBarChartToolTips = (options) => {
|
|
|
46
46
|
|
|
47
47
|
const getTooltipItemValue = () => {
|
|
48
48
|
const { formattedValue } = tooltipItem;
|
|
49
|
-
const
|
|
49
|
+
const formattedValueWithDotSeparator = formattedValue.replace(',', '.');
|
|
50
|
+
const labelNumber = Number(formattedValueWithDotSeparator);
|
|
50
51
|
|
|
51
52
|
let labelNumberFormatted;
|
|
52
53
|
if (Math.abs(labelNumber) < 1) {
|