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

Datalabels in bar graph gets clipped #1789

Closed
poonammimani opened this issue May 1, 2013 · 2 comments
Closed

Datalabels in bar graph gets clipped #1789

poonammimani opened this issue May 1, 2013 · 2 comments

Comments

@poonammimani
Copy link

Hi,
Please take a look at this fiddle - http://jsfiddle.net/poonamd/2zNmE/

The datalabel for Sept with value 235.4 gets clipped on the right side. The issue gets fixed if the chart size is increased in width.
I have also attached a screen shot which shows the clipping in red.
untitled

Is there a way I can fix this?

@TorsteinHonsi
Copy link
Collaborator

Highcharts doesn't reserve space for data labels.

Instead, you can make sure there is enough space by adding a maxPadding to the yAxis. There's also the endOnTick option that affects this.

@pawelfus
Copy link
Contributor

Solved by the commit above.

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