Commit 4ff3219a authored by Michał Woźniak's avatar Michał Woźniak
Browse files

bugfix: 100k supported on the graph too now (ref. #4); minor readme cleanup

parent 361f57b9
Pipeline #289 passed with stage
in 1 second
......@@ -23,18 +23,6 @@ There are no trackers, and no third-party content. This is completely self-conta
And it is self-contained because there is absolutely zero need for it not to be.
Remember this when somebody tells you again that they need Google Fonts ([nope](https://git.rys.io/rysiek/fonts-degooglifier)), dozens of MiB of JS from 10 different CDNs, and a Facebook log-in button just to make a single page displaying a graph. Because that right there is bullshit.
## ToDo
Some improvements have been suggested, no promises if and when they get implemented!
- ~~normalize to population, show cases per million~~
- ~~make the new daily cases graph a rolling average with control over how many days/datapoints~~
- ~~chart global cases~~
- chart cases requiring intensive medical care
- chart tested
- ~~chart deaths~~
## FAQ
......
......@@ -1582,9 +1582,14 @@ let updateChartSettings = () => {
}
// amend the y-axis label
if ( (chart_dataset != 'cfr') && (document.querySelector('input[type=radio][name=chart-values]:checked').value !== 'absolute') ) {
theChart.options.scales.yAxes[0].scaleLabel.labelString += ', per 1 million people'
theChart.options.title.text.push('per 1 million people')
if (chart_dataset != 'cfr') {
if (document.querySelector('input[type=radio][name=chart-values]:checked').value === 'per100k') {
theChart.options.scales.yAxes[0].scaleLabel.labelString += ', per 100.000 people'
theChart.options.title.text.push('per 100.000 people')
} else if (document.querySelector('input[type=radio][name=chart-values]:checked').value === 'permillion') {
theChart.options.scales.yAxes[0].scaleLabel.labelString += ', per 1 million people'
theChart.options.title.text.push('per 1 million people')
}
}
// update x axis label
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment