Skip to content

Commit 86d251d

Browse files
updated overview
1 parent 90d4ba0 commit 86d251d

2 files changed

Lines changed: 3 additions & 14 deletions

File tree

docs/country_overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h3>Total <em>deaths & affected</em></h3>
181181

182182
<div class="overview-card">
183183
<div class="overview-card-header">
184-
<div class="overview-card-series">SERIES 04 — COST</div>
184+
<div class="overview-card-series">SERIES 04 — COST (USD Millions)</div>
185185
<h3>Total <em>damage</em></h3>
186186
<span class="overview-card-peak-label" id="damagePeakLabel">PEAK YEAR — 2011</span>
187187
</div>

docs/js/scene5_overview.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ const Scene5 = {
865865

866866
const width = container.clientWidth || 600;
867867
const height = container.clientHeight || 300;
868-
const margin = { top: 20, right: 20, bottom: 50, left: 70 };
868+
const margin = { top: 20, right: 20, bottom: 50, left: 80 };
869869
const chartWidth = width - margin.left - margin.right;
870870
const chartHeight = height - margin.top - margin.bottom;
871871

@@ -978,7 +978,7 @@ const Scene5 = {
978978
// Update peak label in header
979979
const damagePeakLabel = document.getElementById('damagePeakLabel');
980980
if (damagePeakLabel) {
981-
damagePeakLabel.textContent = `PEAK YEAR ${peakDamage.year}`;
981+
damagePeakLabel.textContent = `PEAK YEAR: ${peakDamage.year}`;
982982
}
983983
}
984984

@@ -1075,17 +1075,6 @@ const Scene5 = {
10751075

10761076
yAxis.selectAll('line, path')
10771077
.attr('stroke', 'var(--border-dim)');
1078-
1079-
// Y-axis label
1080-
g.append('text')
1081-
.attr('transform', 'rotate(-90)')
1082-
.attr('y', -50)
1083-
.attr('x', -chartHeight / 2)
1084-
.attr('text-anchor', 'middle')
1085-
.attr('fill', 'var(--text-mid)')
1086-
.attr('font-size', '0.7rem')
1087-
.attr('font-family', 'var(--font-body)')
1088-
.text('USD (Millions)');
10891078
},
10901079

10911080
capitalize(str) {

0 commit comments

Comments
 (0)