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: Wrong color/position on outside dataLabels which are forced inside #6487

Closed
SirMartin opened this Issue Mar 20, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@SirMartin

SirMartin commented Mar 20, 2017

Expected behaviour

With columns.dataLabels.inside = false all the data labels need to be placed outside of the column in the chart.

Actual behaviour

If the column height is close to the edge of the chart, the datalabel is placed inside.
Same problem occurs for bar.

Possible solutions:

  • DataLabels placed outside are accounted for when calculating column height.
  • Contrast color is applied when dataLabels are placed inside (even when inside = false) due to overflow.

Live demo with steps to reproduce

http://jsfiddle.net/9npohssn/2/ ==> Columns
http://jsfiddle.net/9npohssn/3/ ==> Bar

Affected browser(s)

All

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