added growth rate to hero chart title

This commit is contained in:
tmont 2020-04-27 20:08:34 -07:00
parent e862eceb34
commit 11b08e47f8

View File

@ -140,7 +140,7 @@ html
script. script.
makeHeroChart( makeHeroChart(
'main-chart', 'main-chart',
!{JSON.stringify(data.name || '')}, !{JSON.stringify(data.name + ' (' + (data.deathGrowthRate < 0 ? '' : '+') + (data.deathGrowthRate * 100).toFixed(2) + '%)')},
!{JSON.stringify(data.timeSeriesDaily.map(x => x.key))}, !{JSON.stringify(data.timeSeriesDaily.map(x => x.key))},
!{JSON.stringify(data.timeSeriesDaily.map(x => x.value))}, !{JSON.stringify(data.timeSeriesDaily.map(x => x.value))},
!{JSON.stringify(data.timeSeriesDaily.map(x => x.delta))}, !{JSON.stringify(data.timeSeriesDaily.map(x => x.delta))},