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

Borders are applied to data label even if their width is default (0) #18127

Closed
kluvin opened this issue Dec 12, 2022 · 2 comments · Fixed by #18141
Closed

Borders are applied to data label even if their width is default (0) #18127

kluvin opened this issue Dec 12, 2022 · 2 comments · Fixed by #18141

Comments

@kluvin
Copy link

kluvin commented Dec 12, 2022

When plotOptions.series.dataLabels has a borderColor and a backgroundColor. TheborderWidth is the default, 0.

Expected behaviour

Does not show borders on data labels.

Actual behaviour

Shows borders on data labels.

Live demo with steps to reproduce

MRE: https://jsfiddle.net/kluvin/2hdnsbvu/5/
With maps: https://jsfiddle.net/kluvin/m7c0nfzL/14/

Product version

10.3.2 -->

Affected browser(s)

Chrome, Firefox

@karolkolodziej
Copy link
Contributor

Hi @kluvin thank you for reporting this issue!

Internal note:
Bisected to: 53521c8
FYI @TorsteinHonsi

@TorsteinHonsi
Copy link
Collaborator

Thanks! I think the best solution is just to add the default dataLabel.borderWidth as code, not just a free floating doclet:

        /**
         * The border width in pixels for the data label.
         *
         * @sample {highcharts} highcharts/plotoptions/series-datalabels-box/
         *         Data labels box options
         *
         * @type      {number}
         * @default   0
         * @since     2.2.1
         * @apioption plotOptions.series.dataLabels.borderWidth
         */
        borderWidth: 0,

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

Successfully merging a pull request may close this issue.

5 participants