Open adamkucharski opened 12 months ago
Added options to show figure by % cases in age group.
Adding vaccination status and other fill variables is too noisy, so we think this is the main option that is useful here. It would be good to get ideas for other visualization options that could be added on person tab.
The options are added on the person_options branch
This branch also fixes CFR issue described in issue #2 , but need to document assumptions involved.
Added options to show figure by % cases in age group.
Adding vaccination status and other fill variables is too noisy, so we think this is the main option that is useful here.
oh great! I could not get the higcharter working - would love to learn how you managed to add the % option.
highcharter::hc_colors(colours) %>%
highcharter::hc_tooltip(
shared = FALSE,
formatter = highcharter::JS(
sprintf(
"function () {
console.log('series.name:', this.series.name);
console.log('point.category:', this.point.category);
console.log('%s:', Math.abs(this.point.y));
console.log('%s:', this.point.percentage);
console.log('Count:', this.point.options.count); // Add this line for count
return '' + this.series.name + ', age ' + this.point.category + 'y
' + '%s: ' + Highcharts.numberFormat(Math.abs(this.point.y), %s)+'%s
Percentage: ' + Highcharts.numberFormat(this.point.percentage, 1) + '%
Count: ' + this.point.options.count; // Include count
}",
Explore potential options that may be relevant to display and add functionality. Could also explore additional flexibility on stratification, e.g.