Skip to content

Commit a87b828

Browse files
author
David Buezas
committed
Fixes wrong axis titles on no_default_layout
1 parent ec7dbc2 commit a87b828

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plotly-graph-card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export class PlotlyGraph extends HTMLElement {
301301

302302
const layout = merge(
303303
{ uirevision: true },
304-
yAxisTitles,
304+
this.config.no_default_layout ? {} : yAxisTitles,
305305
this.getThemedLayout(),
306306
this.size,
307307
this.config.layout

src/themed-layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function getThemedLayout(
6767
size: 11,
6868
},
6969
xaxis: { ...themeAxisStyle },
70-
yaxis1: { ...themeAxisStyle },
70+
yaxis: { ...themeAxisStyle },
7171
yaxis2: { ...themeAxisStyle },
7272
yaxis3: { ...themeAxisStyle },
7373
yaxis4: { ...themeAxisStyle },

0 commit comments

Comments
 (0)