From 253deec4582c5724f9d44eb95d0eeac7f5e1dde4 Mon Sep 17 00:00:00 2001 From: David Baetge Date: Sat, 27 Apr 2024 01:40:40 +0200 Subject: [PATCH] Fixed gauge label decoding. GH-271 --- changelog.md | 2 ++ skins/weewx-wdc/src/js/diagrams/d3/gauge.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 7e104a1..e43e127 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/skins/weewx-wdc/src/js/diagrams/d3/gauge.tsx b/skins/weewx-wdc/src/js/diagrams/d3/gauge.tsx index 3791fcf..95251d6 100644 --- a/skins/weewx-wdc/src/js/diagrams/d3/gauge.tsx +++ b/skins/weewx-wdc/src/js/diagrams/d3/gauge.tsx @@ -632,7 +632,7 @@ export const D3GaugeDiagram: FunctionComponent = ( // 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")