@record-evolution/widget-linechart 1.6.20 → 1.6.21

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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent widget-linechart following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "widget-linechart",
6
- "version": "1.6.20",
6
+ "version": "1.6.21",
7
7
  "type": "module",
8
8
  "main": "dist/widget-linechart.js",
9
9
  "types": "dist/src/widget-linechart.d.ts",
@@ -439,6 +439,7 @@ export class WidgetLinechart extends LitElement {
439
439
  // option.yAxis.axisLine.lineStyle.width = 2 * modifier
440
440
  // option.yAxis.axisLabel.fontSize = 20 * modifier
441
441
  option.yAxis.scale = this.inputData?.axis?.yAxisScaling ?? false
442
+ option.yAxis.axisLabel.formatter = (value: number) => Math.round(value * 100) / 100
442
443
 
443
444
  const notMerge = option.series.length !== chart.series.length
444
445
  option.series = chart.series