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

Pie chart rich labels overflow #16023

Closed
Ovilia opened this issue Nov 8, 2021 · 0 comments · Fixed by #16034
Closed

Pie chart rich labels overflow #16023

Ovilia opened this issue Nov 8, 2021 · 0 comments · Fixed by #16034

Comments

@Ovilia
Copy link
Contributor

Ovilia commented Nov 8, 2021

Version

5.2.2

Reproduction link

https://www.makeapie.com/editor.html?c=xWP6wufPiQ&v=2

image

Steps to reproduce

Problem A: Label overflow

Set label to have big font size like 40 will show the overflow, even without rich text.

label: {
    position: 'outer',
    alignTo: 'edge',
    margin: 20,
    fontSize: 40
}

Problem B: labelLine start position is wrong with rich text

Probably due to bounding box calculation error, the start position of the label is not as close as those without rich text. See the demo.

What is expected?

Problem A: Text should not overflow the canvas.
Problem B: LabelLine start position should be near the text.

What is actually happening?

Problem A: Text overflows the canvas.
Problem B: LabelLine start position is far from the right side of the text.

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.

1 participant