@record-evolution/widget-linechart 1.6.21 → 1.6.22

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.21",
6
+ "version": "1.6.22",
7
7
  "type": "module",
8
8
  "main": "dist/widget-linechart.js",
9
9
  "types": "dist/src/widget-linechart.d.ts",
@@ -439,7 +439,11 @@ 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
+ if (['value', 'log'].includes(option.yAxis.type))
443
+ option.yAxis.axisLabel = {
444
+ 'font-size': 14,
445
+ formatter: (value: number) => Math.round(value * 100) / 100
446
+ }
443
447
 
444
448
  const notMerge = option.series.length !== chart.series.length
445
449
  option.series = chart.series