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

Closed
vbiarulkumar opened this Issue Jul 29, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@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: https://jsfiddle.net/3op8y1rx/4/
Not working in Sunburst: https://jsfiddle.net/qweghk4b/23/

Affected browser(s)

All

@sebastianbochan

This comment has been minimized.

Show comment
Hide comment
@sebastianbochan

sebastianbochan Jul 30, 2018

Contributor

Hi @vbiarulkumar,
Thank you for reporting.

Internal note
It looks like a problem in this merge: https://github.com/highcharts/highcharts/blob/master/js/modules/treemap.src.js#L1161 which does not extract options from series.

@jon-a-nygaard

Contributor

sebastianbochan commented Jul 30, 2018

Hi @vbiarulkumar,
Thank you for reporting.

Internal note
It looks like a problem in this merge: https://github.com/highcharts/highcharts/blob/master/js/modules/treemap.src.js#L1161 which does not extract options from series.

@jon-a-nygaard

@vbiarulkumar

This comment has been minimized.

Show comment
Hide comment
@vbiarulkumar

vbiarulkumar Aug 1, 2018

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

vbiarulkumar commented Aug 1, 2018

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

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Aug 16, 2018

Collaborator

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: https://jsfiddle.net/qweghk4b/59/

Collaborator

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: https://jsfiddle.net/qweghk4b/59/

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