Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sporto opened this issue Nov 23, 2018 · 2 comments
Open

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

sporto opened this issue Nov 23, 2018 · 2 comments

Comments

@sporto
Copy link

sporto commented Nov 23, 2018

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

@cpjolicoeur
Copy link

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.

@ronanyeah
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants