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

Labels for bars with smallest possible value go overlap axis labels #94

Open
oxygen opened this issue Oct 3, 2018 · 3 comments
Open

Comments

@oxygen
Copy link

oxygen commented Oct 3, 2018

image

The labels would go outside the chart if aligned to the right of the anchor.

It would be nice if labels would stay inside the chart when near an edge (offset apply to the edge not the anchor | the edge becomes the anchor).

@simonbrunel
Copy link
Member

@oxygen isn't #98 the same issue? what do you think about the clamp option, would it fix this case as well?

@rscottfree
Copy link

Even with clamp: true the data labels overlap the axis labels.

@simonbrunel
Copy link
Member

@rscottfree clamp doesn't guarantee that the label will not overlap the axis but ensure that the anchor point is inside the chart area. Depending on your use case, you can tweak the align option to prevent the label to be on top of the axis.

Currently, there is no option to enforce the label to be inside the chart area.

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