artakserkses
Posts: 51
Joined: Tue Feb 23, 2021 11:23 am

white label with black border

Hey again :)
I would like to change labels on point, cause when it is white (or black, or every other color) sometimes my users don't see letters :) So I came to idea to make white font with black border (something like: https://www.geeksforgeeks.org/css-font-border/ ), but when i try to add on serie.dataLabels.style any -webkit property this doesn't work. When I try to add textShadow this doesn't work either (i tried:

Code: Select all

                  textShadow: '2px 2px #000'

Code: Select all

                  textShadow: '0 0 2px #000'

Code: Select all

                  textShadow: '-1px 0 black, 0 1px black, 1px 0 black, 0 -1px black'
And nothing works).
I tried even on serie.dataLabels to add formatter() {} but this doesn't work either, and I'm running out of solutions :)
artakserkses
Posts: 51
Joined: Tue Feb 23, 2021 11:23 am

Re: white label with black border

Ok, solved, please delete this topic :mrgreen:
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: white label with black border

Hello artakserkses!

We appreciate you reaching out to us!

Congrats on solving your issue. In case of any further questions feel free to contact us again! :-)

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Gantt”