Skip to content

Commit 221b0a5

Browse files
committed
fix(series): fix in_legend for apexcharts.js v3.50.0
1 parent 60b8bb4 commit 221b0a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/apex-layouts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ function getLegendFormatter(config: ChartCardConfig, hass: HomeAssistant | undef
436436
}
437437

438438
function getLegendMarkers(config: ChartCardConfig) {
439-
return { width: config.series_in_graph.map((serie) => (serie.show.in_legend ? DEFAULT_LEGEND_MARKER_WIDTH : 0)) };
439+
return { size: config.series_in_graph.map((serie) => (serie.show.in_legend ? DEFAULT_LEGEND_MARKER_WIDTH : 0)) };
440440
}
441441

442442
function getStrokeCurve(config: ChartCardConfig, brush: boolean) {

src/const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ export const DEFAULT_MAX = 100;
4949

5050
export const DEFAULT_UPDATE_DELAY = 1500;
5151
export const DEFAULT_AREA_OPACITY = 0.7;
52-
export const DEFAULT_LEGEND_MARKER_WIDTH = 12;
52+
export const DEFAULT_LEGEND_MARKER_WIDTH = 6;

0 commit comments

Comments
 (0)