apexcharts-card icon indicating copy to clipboard operation
apexcharts-card copied to clipboard

float_precision is not manipulating decimals palces of yaxis-values

Open Manuel1948 opened this issue 9 months ago • 1 comments

Checklist

  • [X] I updated the card to the latest version available
  • [X] I cleared the cache of my browser
  • [X] I verified that I'm really running the lastest version in my browser console
  • [X] I checked if there is another issue opened with the same problem

Describe the bug If I enter a value for float_precision, the 5 values on the y-axis has the precision of the entity and not of the wanted floaat_precision.

Version of the card Version: 2.0.4

To Reproduce This is the configuration I used:

header:
  show: true
  title: Klimaanlage Stromverbrauch
  show_states: true
  colorize_states: true
series:
  - entity: sensor.klimaanlage_current_power
    type: line
    color: '#3b719c'
    float_precision: 0
    stroke_width: 2
    curve: stepline
    show:
      name_in_header: false

Screenshots image

Expected behavior The amount of decimal places of the y-axis should be the float_precision-value.

Manuel1948 avatar May 30 '24 00:05 Manuel1948