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

Contrast color is not applied on datalabels - drilldown #5396

Closed
sebastianbochan opened this Issue Jun 13, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@sebastianbochan
Contributor

sebastianbochan commented Jun 13, 2016

Expected behaviour

Contrast color applied on datalabels

Actual behaviour

Black datalabels in column

Live demo with steps to reproduce

http://jsfiddle.net/7u7hxbay/

@jon-a-nygaard

This comment has been minimized.

Show comment
Hide comment
@jon-a-nygaard

jon-a-nygaard Jun 15, 2016

Collaborator

@TorsteinHonsi: I noticed that the activeDataLabelStyle has a default color of #0d233a, will it not be a better default if we switch it to contrast?

Collaborator

jon-a-nygaard commented Jun 15, 2016

@TorsteinHonsi: I noticed that the activeDataLabelStyle has a default color of #0d233a, will it not be a better default if we switch it to contrast?

@steakchaser

This comment has been minimized.

Show comment
Hide comment
@steakchaser

steakchaser Jul 12, 2016

The title references drilldown labels, but in the example and in my testing contrast also does NOT work on top-level dataLabels: http://jsfiddle.net/tjmoretto/k3anu2sh/

steakchaser commented Jul 12, 2016

The title references drilldown labels, but in the example and in my testing contrast also does NOT work on top-level dataLabels: http://jsfiddle.net/tjmoretto/k3anu2sh/

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Jul 12, 2016

Contributor

Hi @steakchaser

To get contrast working, dataLabels.inside needs to be set to true (or dataLabels.distance < 0 for a pie chart). Then you can set dataLabels.verticalAlign: "top" to position labels below the top edge of column. Example for you: http://jsfiddle.net/h4eaaeg9/

Contributor

pawelfus commented Jul 12, 2016

Hi @steakchaser

To get contrast working, dataLabels.inside needs to be set to true (or dataLabels.distance < 0 for a pie chart). Then you can set dataLabels.verticalAlign: "top" to position labels below the top edge of column. Example for you: http://jsfiddle.net/h4eaaeg9/

@steakchaser

This comment has been minimized.

Show comment
Hide comment
@steakchaser

steakchaser Jul 13, 2016

@pawelfus thanks! Confirmed that it also works in my application chart(s).

steakchaser commented Jul 13, 2016

@pawelfus thanks! Confirmed that it also works in my application chart(s).

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