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

Conversation

VWSCoronaDashboard26
Copy link
Contributor

@VWSCoronaDashboard26 VWSCoronaDashboard26 commented Dec 19, 2022

Summary

  • updated preferredDateTicks logic to present less ticks when date ranges are used, essentially flipping the amount of ticks to be presented based on the existing hasDatesAsRange boolean value

Motivation

In my opinion, it does not make sense to present more ticks for the TimeSeriesChart's Axes component when the values have date ranges. Date ranges, essentially, are longer because they include two dates, two months and optionally one or two years. Showing more ticks while there is theoretically less space, does not work well. Now, the conditions are inverted to only show more ticks where there is actually space for them.

Screenshot

Before

image

image

image

image

After

image

image

image

image

image

…nt less ticks when date ranges are used, essentially flipping the amount of ticks to be presented based on the existing hasDatesAsRange boolean value;
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.

Good job! Thanks for explaining!

@VWSCoronaDashboard26 VWSCoronaDashboard26 merged commit e97ff8a into develop Dec 20, 2022
@VWSCoronaDashboard26 VWSCoronaDashboard26 deleted the bugfix/COR-1242-Labels-overlapping-on-smaller-screen-sizes-for-Deaths-chart branch December 20, 2022 15:38
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