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

Multiline charts label position #4057

Closed
kosi16 opened this issue Mar 22, 2017 · 1 comment · Fixed by #6988
Closed

Multiline charts label position #4057

kosi16 opened this issue Mar 22, 2017 · 1 comment · Fixed by #6988

Comments

@kosi16
Copy link

kosi16 commented Mar 22, 2017

In version 2.3.0 multiline labels were displayed like example in expected behavior. I think this way is much better than actual behavior.

Expected Behavior

multiline-label-good

Current Behavior

multiline-label

Environment

  • Chart.js version >= 2.4.0:
@kosi16
Copy link
Author

kosi16 commented Jun 19, 2017

Wrong change was in
file src/core/core.scale.js
commit b39c0e1 line 688 (old)
line
for (var i = 0, y = -(label.length - 1)*tickFontSize*0.75; i < label.length; ++i) was changed to
for (var i = 0, y = 0; i < label.length; ++i)
Need to fix y position

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

Successfully merging a pull request may close this issue.

2 participants