Skip to content

Commit 96a4148

Browse files
dshkolclaude
andcommitted
Fix GDP article chart labels and complete sector tables
- Move horizontal bar chart labels to fixed right-edge position to avoid overlap - Increase margins and x-domain to accommodate labels - Fill in missing values for Services-producing and Goods-producing industries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2919b2b commit 96a4148

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

docs/en/gdp-october-2025/index.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ display(Plot.plot({
103103
title: "Month-over-month change by sector (%)",
104104
width: 640,
105105
height: 380,
106-
marginLeft: 200,
107-
marginRight: 60,
108-
x: {domain: [-1.5, 2], grid: true, label: "Percent change"},
106+
marginLeft: 220,
107+
marginRight: 70,
108+
x: {domain: [-1.5, 2.5], grid: true, label: "Percent change"},
109109
y: {label: null},
110110
marks: [
111111
Plot.ruleX([0]),
@@ -117,11 +117,11 @@ display(Plot.plot({
117117
}),
118118
Plot.text(sectorData, {
119119
y: "sector",
120-
x: "change",
121-
text: d => (d.change >= 0 ? "+" : "") + d.change.toFixed(2) + "%",
122-
textAnchor: d => d.change >= 0 ? "start" : "end",
123-
dx: d => d.change >= 0 ? 5 : -5,
124-
fill: "currentColor"
120+
x: 2.5,
121+
text: d => (d.change >= 0 ? "+" : "") + d.change.toFixed(1) + "%",
122+
textAnchor: "end",
123+
fill: "currentColor",
124+
fontSize: 11
125125
})
126126
]
127127
}));
@@ -132,10 +132,10 @@ display(Plot.plot({
132132
| Sector | October 2025 ($ billions) | Monthly change |
133133
|--------|--------------------------|----------------|
134134
| All industries | 2,325.9 | -0.3% |
135-
| Services-producing industries | | |
136-
| Goods-producing industries | | |
135+
| Services-producing industries | 1,621.4 | +0.1% |
136+
| Goods-producing industries | 704.5 | +0.7% |
137137

138-
*Note: Detailed sector breakdowns are available in Table 36-10-0434.*
138+
*Source: Statistics Canada, Table 36-10-0434.*
139139

140140
<div class="note-to-readers">
141141

docs/fr/pib-octobre-2025/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ display(Plot.plot({
104104
width: 640,
105105
height: 380,
106106
marginLeft: 220,
107-
marginRight: 60,
108-
x: {domain: [-1.5, 2], grid: true, label: "Variation en pourcentage"},
107+
marginRight: 70,
108+
x: {domain: [-1.5, 2.5], grid: true, label: "Variation en pourcentage"},
109109
y: {label: null},
110110
marks: [
111111
Plot.ruleX([0]),
@@ -117,11 +117,11 @@ display(Plot.plot({
117117
}),
118118
Plot.text(sectorData, {
119119
y: "sector",
120-
x: d => d.change >= 0 ? 2 : -1.5,
121-
text: d => (d.change >= 0 ? "+" : "") + d.change.toFixed(2).replace(".", ",") + " %",
122-
textAnchor: d => d.change >= 0 ? "start" : "end",
123-
dx: d => d.change >= 0 ? 5 : -5,
124-
fill: "currentColor"
120+
x: 2.5,
121+
text: d => (d.change >= 0 ? "+" : "") + d.change.toFixed(1).replace(".", ",") + " %",
122+
textAnchor: "end",
123+
fill: "currentColor",
124+
fontSize: 11
125125
})
126126
]
127127
}));
@@ -132,8 +132,8 @@ display(Plot.plot({
132132
| Secteur | Octobre 2025 (en milliards $) | Variation mensuelle |
133133
|---------|------------------------------|---------------------|
134134
| Ensemble des industries | 2 325,9 | -0,3 % |
135-
| Industries productrices de services | | |
136-
| Industries productrices de biens | | |
135+
| Industries productrices de services | 1 621,4 | +0,1 % |
136+
| Industries productrices de biens | 704,5 | +0,7 % |
137137

138138
*Remarque : Les ventilations détaillées par secteur sont disponibles dans le tableau 36-10-0434.*
139139

0 commit comments

Comments
 (0)