an.margarita
Posts: 2
Joined: Wed May 05, 2021 4:21 pm

Another color on a bar

Hello everyone !! :D

I have a question about the bar chart.

I leave the example. https://jsfiddle.net/jet65cw9/

In the graph, I have several bars of a single blue color.
I need one bar to be red and the rest blue.
Is this possible?
Like this Image

Thank you in advance.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Another color on a bar

Hello an.margarita!

Welcome to our forum and thanks for contacting us with your question!

Sure, it's possible. We only need to set the color property of a point to red. Check out the demo in the link below.

API references:
https://api.highcharts.com/highcharts/s ... data.color

Demo:
https://jsfiddle.net/BlackLabel/d4cfrv81/

Best regards!
Dominik Chudy
Highcharts Developer
an.margarita
Posts: 2
Joined: Wed May 05, 2021 4:21 pm

Re: Another color on a bar

Hi! Dominik,

I applied the example without problem.

Thank you! :D
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Another color on a bar

That's great to hear!

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

Return to “Highcharts Usage”