Skip to content

Commit

Permalink
fix(yaxis): apex_config.yaxis was not taken into account properly
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 27, 2021
1 parent 9232044 commit ce04230
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/apex-layouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ export function getLayoutConfig(config: ChartCardConfig, hass: HomeAssistant | u
datetimeUTC: false,
},
},
yaxis: {
decimalsInFloat: 1,
},
yaxis: Array.isArray(config.apex_config?.yaxis)
? undefined
: {
decimalsInFloat: 1,
},
tooltip: {
x: {
formatter:
Expand Down

0 comments on commit ce04230

Please sign in to comment.