Skip to content

Commit 6d064c1

Browse files
committed
fix type of x in show_value markers (Date, not number)
1 parent eb43bc8 commit 6d064c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plotly-graph-card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export class PlotlyGraph extends HTMLElement {
474474
},
475475
hoverinfo: "skip",
476476
showlegend: false,
477-
x: [+Date.now() + timeMargin],
477+
x: [new Date(Date.now() + timeMargin)],
478478
y: mergedTrace.y.slice(-1),
479479
});
480480
}

0 commit comments

Comments
 (0)