Skip to content

Adding Markers to a line plot adds additional dates #1757

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

Closed
Rpgilligan85 opened this issue Jun 2, 2017 · 2 comments
Closed

Adding Markers to a line plot adds additional dates #1757

Rpgilligan85 opened this issue Jun 2, 2017 · 2 comments

Comments

@Rpgilligan85
Copy link

Rpgilligan85 commented Jun 2, 2017

This is for version 1.8 which is the version in the working example.

I am making a line chart with markers and I want it to work exactly like this,
Working Example. When you click on 1m it takes you to the last day and it won't let you go any further and this codepen works perfectly.

The bug is when you add mode: "markers" or mode: "lines+markers" so the line has markers it will add additional dates at the end so when you click 1m it takes you way past your data. It should work just like the example above and not like this, Example with bug.

@etpinard
Copy link
Contributor

etpinard commented Jun 2, 2017

That's the desired behavior. The markers mode add some padding to the autoranged axes.

If you're not happy with our autorange opinions, you can always set xaxis.range and/or xaxis.rangeslider.range yourself as in https://codepen.io/etpinard/pen/OgJNwQ?editors=0010

@etpinard etpinard closed this as completed Jun 2, 2017
@Rpgilligan85
Copy link
Author

Thanks! Didn't realize you had to add the range in the range slider as well. This works perfectly.

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

2 participants