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 284869c commit e0a082eCopy full SHA for e0a082e
src/plotly-graph-card.ts
@@ -474,9 +474,10 @@ export class PlotlyGraph extends HTMLElement {
474
if (!units.includes(unit_of_measurement)) units.push(unit_of_measurement);
475
const yaxis_idx = units.indexOf(unit_of_measurement);
476
477
- let name = trace.name || data.meta.friendly_name || entity_id;
+ let name = data.meta.friendly_name || entity_id;
478
if (isEntityIdAttrConfig(trace)) name += ` (${trace.attribute}) `;
479
if (isEntityIdStatisticsConfig(trace)) name += ` (${trace.statistic}) `;
480
+ if (trace.name) name = trace.name;
481
const customdata = data.xs.map((x, i) => ({
482
unit_of_measurement,
483
meta,
0 commit comments