@@ -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