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

Title and Legends don't center to chart area #4657

Closed
ChaseLewis opened this issue Aug 14, 2017 · 1 comment
Closed

Title and Legends don't center to chart area #4657

ChaseLewis opened this issue Aug 14, 2017 · 1 comment

Comments

@ChaseLewis
Copy link

If you make a legend with a long horizontal Title and legend it becomes really obvious everything is not centered to the same point as the axes. I was able to fix this by having the draw methods of the legend & title plugin reassign their left & right to match the chart areas so they become properly centered aligned. However, i'd think this should be the default functionality of the library for the sake of making high quality graphs.

It also becomes egregiously obvious when you have a left & right y-axis of significantly differing lengths that it is not centered to the chart area.

This is in 2.6.0 which I thinks is the newest release, but felt it was worth reporting since I had a possible fix for it and having properly layed out text does a lot for the visual quality of the library.

@etimberg
Copy link
Member

This can be done in v3 by setting the fullSize property of the title plugin to false. See https://jsfiddle.net/1hn4pevx/

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

2 participants