Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

feature/COR-1269-time-series-chart-y-axis-scaling #4551

Conversation

VWSCoronaDashboard26
Copy link
Contributor

@VWSCoronaDashboard26 VWSCoronaDashboard26 commented Dec 21, 2022

Summary

  • reverted (some, not all) changes from pull request Set minimum range for all graphs #3765 as it did not introduce any logic that did not already work but instead caused certain graphs on certain pages to not scale properly; removing the minimumRange prop will now facilitate automatic scaling on the y-axis of all time series charts

Motivation

The aforementioned pull request introduced a new minimumRange property to all time series charts default to a value of 10, yet also took the chart representing the R-number into account (which should hopefully never come anywhere near 10). However, this same pull request does not take charts into account in certain (possibly less visited) pages around the dashboard. Examples of these charts are in the list below. Rather than adding an override for minimumRange to all these pages/charts, I opted to investigate if we could revert the introduction of minimumRange. After this revert, and as such before the merge of the above pull request, all time series charts will use their OOTB logic to dynamically scale its y-axis based on the highest value inside the range of the series, meaning minimumRange can be completely omitted.

Examples of pages/charts that are affected by the introduction of minimumRange include but are not limited to:

… it did not introduce any logic that did not already work but instead caused certain graphs on certain pages to not scale properly; removing the minimumRange prop will now facilitate automatic scaling on the y-axis of all time series charts;
Copy link
Contributor

@Jorrik-Klijnsma-Work Jorrik-Klijnsma-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2022-12-21 at 17 33 33

This creates some empty charts. Is that intended?
Although I see it happen on the production version as well. So no need to not merge this PR

@VWSCoronaDashboard26 VWSCoronaDashboard26 merged commit ff2ad23 into develop Dec 23, 2022
@VWSCoronaDashboard26 VWSCoronaDashboard26 deleted the feature/COR-1269-time-series-chart-y-axis-scaling branch December 23, 2022 08:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants