Skip to content

Commit

Permalink
fix(legend): Change - to : between name and state
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Jan 24, 2021
1 parent c7324e0 commit 4e3cdc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/apex-layouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export function getLayoutConfig(config: ChartCardConfig, hass: HomeAssistant | u
legend: {
formatter: function (_, opts, conf = config, hass2 = hass) {
return [
computeName(opts.seriesIndex, conf, undefined, hass2?.states[conf.series[opts.seriesIndex].entity]),
' - ',
`${computeName(opts.seriesIndex, conf, undefined, hass2?.states[conf.series[opts.seriesIndex].entity])}:`,
`<strong>${
opts.w.globals.series[opts.seriesIndex].slice(-1).length !== 0
? opts.w.globals.series[opts.seriesIndex].slice(-1)[0].toFixed(1)
Expand Down

0 comments on commit 4e3cdc6

Please sign in to comment.