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
Explicitly setting tickmode to array disables tickvals in date axis #4848
So what is the actual value of tickmode for date axes when tickvals is provided and tickmode is not provided? Because that does display the desired behaviour :)
So what is the actual value of tickmode for date axes when tickvals is provided and tickmode is not provided? Because that does display the desired behaviour :)
Activity
archmoj commentedon May 20, 2020
Not sure if this should be labeled as a bug; whereas we have this logic:
plotly.js/src/plots/cartesian/tick_value_defaults.js
Lines 27 to 29 in 0b54b3f
nicolaskruchten commentedon May 20, 2020
And yet we say:
"(*array* is the default value iftickvalsis provided)"in https://github.com/plotly/plotly.js/blob/master/src/plots/cartesian/layout_attributes.js#L378So what is the actual value of
tickmodefor date axes whentickvalsis provided andtickmodeis not provided? Because that does display the desired behaviour :)archmoj commentedon May 20, 2020
tickmodewould be set toarrayin that case.archmoj commentedon May 20, 2020
The logic was present since v1.0:

It looks like a bug to me.
nicolaskruchten commentedon May 20, 2020
Weird! So if I don't set it, it gets set to array but it skips this check?
archmoj commentedon May 20, 2020
Positive. I think we could/shoud fix this for
logas well.I am close to open a PR for this.