himmat
Posts: 28
Joined: Mon Dec 28, 2020 5:36 pm

Troubleshooting chart.styledMode with flags

Hi,

I am trying to implement custom flag CSS, which seems to be possible, as seen in this official example: https://jsfiddle.net/gh/get/library/pur ... datalabels

Here is my attempt to apply a simple

Code: Select all

test_css_class
to one of my flags: https://jsfiddle.net/4z5b103v/ But I'm having trouble getting any custom CSS to be applied.

Could you please advise?
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Troubleshooting chart.styledMode with flags

Hello himmat!

We appreciate you reaching out to us!

You're referring to the wrong class in the CSS section. The easiest way would be to use classes that occur in the first demo.

Something like that: https://jsfiddle.net/BlackLabel/s3twe9cq/

You also need to use proper CSS attributes, like stroke or fill instead of border/color.

Best regards!
Dominik Chudy
Highcharts Developer
himmat
Posts: 28
Joined: Mon Dec 28, 2020 5:36 pm

Re: Troubleshooting chart.styledMode with flags

Thank you! I updated my code to stroke/fill/lineColor and I got it to work.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Troubleshooting chart.styledMode with flags

You're welcome!

In case of any further questions, feel free to contact us again.
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”