You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistency when setting tickvals and omitting ticktext in date axes #738
Maybe a better question to ask ourselves: should we allow tickmode: 'array' when tickvals isn't provided? I'm changing the issue title to reflect this. Thanks.
changed the title [-]`tickvals` has display bug on date axis[/-][+]Inconsistency when setting `tickvals` and omitting `ticktext` in date axes[/+]on Jul 13, 2016
Activity
etpinard commentedon Jul 12, 2016
That's probably because your
tickvalsaren't valid date timestamps.How did you get those values?
stakemura commentedon Jul 12, 2016
In real use case, I used programmaticaly-generated date timestamps.
However, all cases seemed to be failed.
OK. the following new sample use apparently valid timestamps.
How about https://jsfiddle.net/0cjprqgy/11/ ?
etpinard commentedon Jul 13, 2016
Looks like those weird tick labels are caused by you not providing a
ticktextsetting to accompanytickvals. Setting a properticktextmakes your problem go away http://codepen.io/etpinard/pen/YWEdJX .But, those weird labels do showcase an inconsistency between
linearanddateaxis types. See http://codepen.io/etpinard/pen/rLYoqK here omitting to provideticktextfalls back to stringnifiedtickvalsvalues - making this issue a very low priority bug.Maybe a better question to ask ourselves: should we allow
tickmode: 'array'whentickvalsisn't provided? I'm changing the issue title to reflect this. Thanks.[-]`tickvals` has display bug on date axis[/-][+]Inconsistency when setting `tickvals` and omitting `ticktext` in date axes[/+]stakemura commentedon Jul 13, 2016
Thank you for your consideration.
I tried tickvals with ticktext actually but I found the different problem.
Like http://codepen.io/etpinard/pen/YWEdJX , hover text won't be able to show date.
I guess hover text on date axis show date and time fundamentally.
What makes this difference?
etpinard commentedon Jul 13, 2016
You mean it only shows the hour? Interesting. Thanks for pointing this out. This is probably related to the inconsistency mentioned in #738 (comment)
stakemura commentedon Jul 14, 2016
Without tickvals date axis shows date and time apparently.
Please check https://jsfiddle.net/0cjprqgy/12/ .
etpinard commentedon Jul 14, 2016
Yeah I noticed that too. This should be resolved in the same patch as for #738 (comment)
Thanks.