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

Some of stackLabels are not displayed when dataLabels are #8742

Closed
raf18seb opened this issue Aug 7, 2018 · 5 comments
Closed

Some of stackLabels are not displayed when dataLabels are #8742

raf18seb opened this issue Aug 7, 2018 · 5 comments

Comments

@raf18seb
Copy link
Contributor

@raf18seb raf18seb commented Aug 7, 2018

Expected behaviour

All stackLabels should be displayed independently from dataLabels.

Actual behaviour

Some stackLabels are not displayed when dataLabels are displayed.

Live demo

https://jsfiddle.net/BlackLabel/rht1j40w/

Product version

6.1.1

Workaround

Set yAxis.stackLabels.allowOverlap to true.

Looks like regression after commit ae93276

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Aug 8, 2018

Hi @raf18seb,
Thank you for reporting.

Internal note
Regression since 6.1.1.

In the 6.1.0 worked properly

@babycannotsay
Copy link

@babycannotsay babycannotsay commented Oct 21, 2019

@sebastianbochan hi,this problem still exists in bar.
can see https://jsfiddle.net/gzxsc54m/1/

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Oct 21, 2019

Hi @babycannotsay

Thanks for pointing this out!

Workaround:
Decrease dataLabels.labelrank: https://jsfiddle.net/BlackLabel/qa9yxb1g/

Internal note:
For inverted charts, plotWidth should be taken instead of plotHeight:

5e32ec7#diff-ab2057e2acad2e59110a7bb3938a9707R107

@pawelfus pawelfus reopened this Oct 21, 2019
@babycannotsay
Copy link

@babycannotsay babycannotsay commented Oct 22, 2019

@pawelfus Thank you for your answer.
I have a question about labelRank which commented as follows

// Prevent a situation in a gradually rising slope, that each label will
// hide the previous one because the previous one always has lower rank.

Is there a demo?

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Oct 22, 2019

I'm not sure what do you mean.. In general this is the case: https://jsfiddle.net/BlackLabel/wf6hg1qL/ - as you can see, one label has higher priority, so it's displayed (label =150).

@khlieng khlieng self-assigned this Dec 11, 2020
@circleci-mu circleci-mu added this to To do in Development-Flow via automation Dec 11, 2020
@circleci-mu circleci-mu moved this from To do to In progress in Development-Flow Dec 11, 2020
khlieng added a commit that referenced this issue Dec 11, 2020
Development-Flow automation moved this from In progress to Done Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

6 participants