jonguevara
Posts: 8
Joined: Mon Nov 28, 2022 4:53 pm

Vertical color bars

Hello your help, I have this graphic and I need the colors that are displayed horizontally to go to vertical, please I have not found the way to do it, I attach the example jsfiddle, thank you very much.

https://jsfiddle.net/jonaathaan/qesw0rLf/
daniel_s
Posts: 773
Joined: Fri Sep 01, 2017 11:01 am

Re: Vertical color bars

Hello jonguevara,

Thank you for reaching out to us, and opening the topic.
In order to achieve the thing you want it's just needed to specify the axis along which the zones will work, using the zoneAxis property, and then changing their values with step by 1 - since every category is sequentially increased by 1. I've allowed my self to edit the demo you provided us with, so please take a look on it.

API Reference: https://api.highcharts.com/highcharts/p ... n.zoneAxis
Demo example: https://jsfiddle.net/BlackLabel/amuno7t9/

Hope this will help you,
Kind regards!
Daniel Studencki,
Highcharts Developer

Return to “Highcharts Usage”