line-charts icon indicating copy to clipboard operation
line-charts copied to clipboard

LineChart.Axis.Ticks.time approximate ticks amount is surprising.

Open sporto opened this issue 6 years ago • 2 comments

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:

image

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:

image

I have tried to replicate this here https://ellie-app.com/3XVkgWxJx7ra1

When

, ticks = Ticks.time Time.utc 4 

You see 2 ticks.

image

If you change this to:

, ticks = Ticks.time Time.utc 5

It shows 6.

image

Is this expected or a bug?

Thanks

sporto avatar Nov 23 '18 09:11 sporto

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.

cpjolicoeur avatar Sep 20 '19 18:09 cpjolicoeur

Are there any custom configs that are a bit more predictable?

ronanyeah avatar Nov 01 '19 16:11 ronanyeah