@oliasoft-open-source/charts-library 2.17.4 → 2.17.6
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.17.
|
|
3
|
+
"version": "2.17.6",
|
|
4
4
|
"description": "React Chart Library (based on Chart.js and react-chart-js-2)",
|
|
5
5
|
"homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
|
|
6
6
|
"bugs": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@babel/eslint-parser": "^7.18.9",
|
|
50
50
|
"@babel/preset-env": "^7.18.10",
|
|
51
51
|
"@babel/preset-react": "^7.18.6",
|
|
52
|
-
"@oliasoft-open-source/react-ui-library": "^3.
|
|
52
|
+
"@oliasoft-open-source/react-ui-library": "^3.5.6",
|
|
53
53
|
"@oliasoft-open-source/units": "^2.6.1",
|
|
54
54
|
"@storybook/addon-actions": "^6.5.10",
|
|
55
55
|
"@storybook/addon-docs": "^6.5.10",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"webpack-merge": "^5.8.0"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@oliasoft-open-source/react-ui-library": "^3.
|
|
98
|
+
"@oliasoft-open-source/react-ui-library": "^3.5.6",
|
|
99
99
|
"@oliasoft-open-source/units": "^2.6.1",
|
|
100
100
|
"immer": "^9",
|
|
101
101
|
"prop-types": "^15",
|
package/release-notes.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Charts Library Release Notes
|
|
2
2
|
|
|
3
|
+
## 2.17.6
|
|
4
|
+
|
|
5
|
+
- Fix `NumberInput` bug that prevented users typing decimal values with trailing zeros in charts controls
|
|
6
|
+
([OW-11920](https://oliasoft.atlassian.net/browse/OW-11920))
|
|
7
|
+
|
|
8
|
+
## 2.17.5
|
|
9
|
+
|
|
10
|
+
- Support disabling `usePointStyle` to show dashed lines in legend ([OW-11786](https://oliasoft.atlassian.net/browse/OW-11786))
|
|
11
|
+
|
|
3
12
|
## 2.17.4
|
|
4
13
|
|
|
5
14
|
- Use new `<NumberInput>` component from GUI Library in charts controls, to simplify validation ([OW-11773](https://oliasoft.atlassian.net/browse/OW-11773))
|
|
@@ -258,6 +258,7 @@ export const getDefaultProps = (props) => {
|
|
|
258
258
|
position: props.chart.options.legend.position || 'bottom',
|
|
259
259
|
align: props.chart.options.legend.align || 'center',
|
|
260
260
|
customLegend: props.chart.options.legend.customLegend,
|
|
261
|
+
usePointStyle: props.chart.options.legend.usePointStyle ?? true,
|
|
261
262
|
},
|
|
262
263
|
chartOptions: {
|
|
263
264
|
showPoints: props.chart.options.chartOptions.showPoints ?? true,
|
|
@@ -141,8 +141,8 @@ export const getLegend = (options, clickHandler, state = null) => {
|
|
|
141
141
|
align: legend.align,
|
|
142
142
|
labels: {
|
|
143
143
|
boxHeight: LEGEND_LABEL_BOX_SIZE,
|
|
144
|
-
boxWidth: LEGEND_LABEL_BOX_SIZE,
|
|
145
|
-
usePointStyle:
|
|
144
|
+
boxWidth: legend.usePointStyle ? LEGEND_LABEL_BOX_SIZE : undefined,
|
|
145
|
+
usePointStyle: legend.usePointStyle,
|
|
146
146
|
},
|
|
147
147
|
onClick: clickHandler,
|
|
148
148
|
};
|