line-charts
line-charts copied to clipboard
LineChart.Axis.Ticks.time approximate ticks amount is surprising.
Hi. I'm trying to make a line chart with dates, but I'm finding the behaviour of LineChart.Axis.Ticks.time
and LineChart.Axis.Ticks.timeCustom
unclear.
I have a chart with a line like
, ticks = Ticks.timeCustom Time.utc 3 tickTime
And the chart look like:
There is only one tick in the x axis.
If I change the line to:
, ticks = Ticks.timeCustom Time.utc 4 tickTime
I see this:
I have tried to replicate this here https://ellie-app.com/3XVkgWxJx7ra1
When
, ticks = Ticks.time Time.utc 4
You see 2 ticks.
If you change this to:
, ticks = Ticks.time Time.utc 5
It shows 6.
Is this expected or a bug?
Thanks
Same here. Using (most anything) "time" related seems to be pretty "broken" as far as I can tell in the current 2.0 release and master. I see the same behaviour your a describing when using the defaults for Axis.time
or a full custom config.
Are there any custom configs that are a bit more predictable?