We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461f312 commit 2123d4aCopy full SHA for 2123d4a
src/plotly-graph-card.ts
@@ -307,7 +307,7 @@ export class PlotlyGraph extends HTMLElement {
307
308
return entities.flatMap((trace, traceIdx) => {
309
const entity_id = trace.entity;
310
- const history = histories[entity_id] || {};
+ const history = histories[entity_id] || [];
311
const attribute = attributes[entity_id] || {};
312
const unit = this.getUnitOfMeasurement(entity_id);
313
const yaxis_idx = units.indexOf(unit);
@@ -375,6 +375,7 @@ export class PlotlyGraph extends HTMLElement {
375
mergedTrace.show_value.right_margin *
376
((this.config.hours_to_show * 1000 * 60 * 60) / 100);
377
traces.push({
378
+ ...mergedTrace,
379
legendgroup: "group" + traceIdx,
380
marker: {
381
color: "transparent",
0 commit comments