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

maxTicksLimit leaving uneven space at the rear end of graph #4626

Closed
shivabhusal opened this issue Aug 8, 2017 · 2 comments
Closed

maxTicksLimit leaving uneven space at the rear end of graph #4626

shivabhusal opened this issue Aug 8, 2017 · 2 comments

Comments

@shivabhusal
Copy link

shivabhusal commented Aug 8, 2017

Chart.JS version: 2.6.0

I am using maxTicksLimit like

                    scales: {
                        xAxes: [{
                            display: true,
                            ticks: {
                                maxTicksLimit: 5
                            }
                        }],
                        yAxes: [{
                            display: true
                        }]
                    }

There is uneven space between the last two labels in x-axis. I am expecting even spaces between the vertical grid lines.

image

Link to CodePen is https://codepen.io/shivabhusal/pen/GvWdNq?editors=0010

Any help would be appreciated. Thanks

@frankie-loves-jesus
Copy link

This is a dupe of #4358. Let us know how it went, thanks.

@panzarino
Copy link
Contributor

Closing as this is a duplicate

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

No branches or pull requests

3 participants