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 2ed0f0a commit 1cc2e21Copy full SHA for 1cc2e21
src/plotly-graph-card.ts
@@ -398,7 +398,7 @@ export class PlotlyGraph extends HTMLElement {
398
mergedTrace.legendgroup ??= "group" + traceIdx;
399
show_value_traces.push({
400
// @ts-expect-error (texttemplate missing in plotly typings)
401
- texttemplate: `%{y}%{customdata.unit_of_measurement}`, // here so it can be overwritten
+ texttemplate: `%{y:.2~f}%{customdata.unit_of_measurement}`, // here so it can be overwritten
402
...mergedTrace,
403
mode: "text+markers",
404
showlegend: false,
0 commit comments