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

Sunburst - dataLabels.useHTML is not working properly in dataLabless.formatter function. #8704

vbiarulkumar opened this issue Jul 29, 2018 · 3 comments


Copy link

@vbiarulkumar vbiarulkumar commented Jul 29, 2018

Expected behaviour

Styles are not applied to child element when applied style in root element.
EX: 205.00

Actual behaviour

Should apply styles to the child element.

Live demo with steps to reproduce

Working in Pie:
Not working in Sunburst:

Affected browser(s)


Copy link

@sebastianbochan sebastianbochan commented Jul 30, 2018

Hi @vbiarulkumar,
Thank you for reporting.

Internal note
It looks like a problem in this merge: which does not extract options from series.


Copy link

@vbiarulkumar vbiarulkumar commented Aug 1, 2018

Still color is not applied to the child element. Look the code in the datalabel formatter function.
dataLabels:{ enabled:true, useHTML:true, formatter: function(){ return "<span style='color:#ff0000'><span style='white-space:pre;'>205.00</span></span>"; } }

Copy link

@TorsteinHonsi TorsteinHonsi commented Aug 16, 2018

Still color is not applied to the child element

In the demo with the fix applied, it seems like the text is red like expected:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants