-
Notifications
You must be signed in to change notification settings - Fork 40
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
Outlabels rendered outside of canvas #11
Comments
I'm having this exact issue. |
Has anyone got a fix for this yet? Personally, I'm using "zoomOutPercentage" to get by at the moment, but this falls apart very quickly when I dynamically generate charts with lots of sections, which cause the labels to be pushed out very far. Is there any way at all to make this dynamic? |
I am having exact this problem. What i did is used custom scrollbar option and keep changing padding value based on this of chart therefore keep reducing the size of chart in canvas till all the outlabels get inside the box.
But there is still need some update such that it can dynamic reduce the size of chart in canvas till all outlabels get inside canvas. |
So sad no one's maintaining this anymore! :( |
This PR adds some optimizations and improvements: - Reduce performance bottleneck in the layout algorithm when the chart contains a lot of datasets, by setting a loop limit. This can lead to overlapping labels when there is a LOT of labels, but anyway in this case the chart may not be readable - Improve the resizing algorithm to fit the labels in the chart area, by running successive fitting processes - Avoid to draw labels if fitting is ongoing - Rewrite the collision algorithm by making it more readable
i'd set options to:
responsive: true, maintainAspectRatio: false
a target rendered like this
but its rendered like this
The text was updated successfully, but these errors were encountered: