V1.0.50 is up !
Besides fixing a bug with the new multi-year cache and the more-info popup override, you can now also configure how your time ticks look like.
By default, time tick density is automatic and adjusts to the width of your screen. That’s always a compromise between looking good (no clipping), being readable at all screensizes from mobile to wall sized 8k TV and subjective preferences over tick densities. The latter one was always a bit complicated. Also because I personally prefer sparse ticks with low density, but it seems that a lot of people prefer much higher densities.
There has long been the undocumented timeTickDensity
setting. Undocumented because it would not really do what most people would expect it to do. It would unlock higher densities on high resolution displays only, or allow you to lower density on all displays. It would however not allow the general increase of density.
So with 1.0.50 I introduced a new config block. For those of you who were already using timeTickDensity
, this setting will continue to work as-is (no breaking changes with this card !). It is however overridden by the new settings, if you decide to use both.
timeTicks:
# optional, this is the same as the old timeTickDensity. It limits the density for the auto-density selection
density: 'high'
# optional, if present, this will skip the auto-density and force the use of your selected density. Possible options are: low, medium, high, higher, highest.
densityOverride: 'highest'
# optional, this can be used to shorten the date representation on the time ticks, to make more space if you want high tick densities. Possible values are normal and short. Default is normal.
dateFormat: 'short'
Examples for a 2 week range on a small card:
Not using the new settings, everything at the defaults:
Using densityOverride
at higher
, leaving the date format at normal:
And same as above but settings the dateFormat
to short
:
Keep in mind that overriding the density will disable automatic density calculations depending on card or screen width. So you can easily end up in situations where the labels will overlap.