Skip to content

Commit

Permalink
Fixed gauge label decoding. GH-271
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveiano committed Apr 26, 2024
1 parent f3cb9ce commit 253deec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -937,3 +937,5 @@ index 465d4ad..aa8bad6 100644
- GH-181 [BUG] xAxis: Date mismatch in combined charts. Especially when using cumulative aggregation. Feel free to comment if you have more infos, or also noticed this issue.

# Next

- Fixed gauge label decoding. GH-271
2 changes: 1 addition & 1 deletion skins/weewx-wdc/src/js/diagrams/d3/gauge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export const D3GaugeDiagram: FunctionComponent<GaugeDiagramBaseProps> = (
// Observation label, eg. Outside Temperature.
textWrap
.append("text")
.text(props.label)
.text(he.decode(props.label))
.attr("class", "gauge-label")
.attr("width", 350)
.attr("text-anchor", "middle")
Expand Down

0 comments on commit 253deec

Please sign in to comment.