File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
templates/alternative_interface Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ class AlterDashboard {
653653 if ( value === null || value === undefined || Number . isNaN ( value ) ) {
654654 return `${ label } : n/a` ;
655655 }
656- return `${ label } : ${ value . toFixed ( 1 ) } % ` ;
656+ return `${ label } : ${ value . toFixed ( 1 ) } ` ;
657657 }
658658 }
659659 } ,
@@ -722,11 +722,11 @@ class AlterDashboard {
722722 ticks : {
723723 font : { size : 11 } ,
724724 color : '#64748b' ,
725- callback : ( value ) => `${ value . toFixed ( 0 ) } % `
725+ callback : ( value ) => `${ value . toFixed ( 0 ) } `
726726 } ,
727727 title : {
728728 display : true ,
729- text : 'Scaled value (%) ' ,
729+ text : 'Scaled value' ,
730730 font : { size : 12 , weight : '500' } ,
731731 color : '#64748b' ,
732732 padding : { top : 5 , bottom : 5 }
@@ -1142,6 +1142,9 @@ async function handleGeographyChange() {
11421142
11431143 if ( data . chart_data && dashboard ) {
11441144 dashboard . updateChart ( data . chart_data ) ;
1145+ document . getElementById ( 'chartTitle' ) . textContent = `${ selectedPathogen } in ${ geographySelect . options [ geographySelect . selectedIndex ] . text } ` ;
1146+ } else {
1147+ document . getElementById ( 'chartTitle' ) . textContent = '' ;
11451148 }
11461149
11471150 } catch ( error ) {
Original file line number Diff line number Diff line change 6464 < div class ="col-lg-12 ">
6565 < h1 class ="hero-title "> Respiratory Diseases Dashboard</ h1 >
6666 < p class ="hero-subtitle ">
67- Track COVID-19, influenza, and RSV activity across the United States with real-time data from multiple sources.
67+ Track COVID-19, influenza, RSV and other viral activity anywhere in the United States with real-time data from multiple sources.
6868 </ p >
6969 </ div >
7070 </ div >
@@ -115,8 +115,7 @@ <h1 class="hero-title">Respiratory Diseases Dashboard</h1>
115115 <!-- Chart Section -->
116116 < div class ="chart-section ">
117117 < div class ="card-header ">
118- < h5 class ="card-title "> Indicator Visualization</ h5 >
119- < p class ="text-muted mb-0 "> Visualize trends and patterns</ p >
118+ < h3 class ="card-title text-center " id ="chartTitle "> </ h3 >
120119 </ div >
121120 < div class ="chart-container-wrapper ">
122121 <!-- Chart Interaction Hint -->
You can’t perform that action at this time.
0 commit comments