kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

Chart y-axis stating at base 100 (index)

Thu Oct 14, 2021 8:48 pm

Hello,

How can I do a chart as per attachment where the y-axis stating at base 100 (index).

Thanks in advance for your support.

Kevin
Attachments
chart.png
chart.png (89.41 KiB) Viewed 247 times

mateusz.b
Posts: 797
Joined: Tue Jul 13, 2021 11:34 am

Re: Chart y-axis stating at base 100 (index)

Fri Oct 15, 2021 7:46 am

Hi kevincreation,

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

Not sure if I understood correctly, but if you want your Y axis values to start on 100 you can use yAxis.min option.
Demo:https://jsfiddle.net/BlackLabel/rv78dz4s/
API reference: https://api.highcharts.com/highcharts/yAxis.min

Let me know if that was what you were looking for!
Best regards!

kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

Re: Chart y-axis stating at base 100 (index)

Mon Oct 18, 2021 7:24 pm

Hi Mateusz,

Thanks for your response, in fact what i am looking for is for a value of 84 the bar goes downward from 100 to 84 whereas for a value of 120 the bar goes upward from 100 to 120.

Best Regards,

Kevin

mateusz.b
Posts: 797
Joined: Tue Jul 13, 2021 11:34 am

Re: Chart y-axis stating at base 100 (index)

Tue Oct 19, 2021 2:34 pm

Hi kevincreation,

Not sure if I understood correctly. Would you like to set Y axis range dynamically based on max and min values of you data? Let me know if that is the case and if not please provide me with more details.

Best regards!

kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

Re: Chart y-axis stating at base 100 (index)

Wed Oct 20, 2021 9:37 am

Hi Mateusz,

I just want to reproduce the attached chart.

Thanks,

Kevin
Attachments
chart.png
chart.png (89.41 KiB) Viewed 189 times

mateusz.b
Posts: 797
Joined: Tue Jul 13, 2021 11:34 am

Re: Chart y-axis stating at base 100 (index)

Wed Oct 20, 2021 11:35 am

Hi kevincreation,

Here's a simple reproduction of your chart: https://jsfiddle.net/BlackLabel/j305pxdr/ Let me know what do you think about it and what would you like to change.

Best regards

kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

Re: Chart y-axis stating at base 100 (index)

Wed Oct 20, 2021 8:56 pm

wow, great job mateusz, thanks a lot - am impressed

mateusz.b
Posts: 797
Joined: Tue Jul 13, 2021 11:34 am

Re: Chart y-axis stating at base 100 (index)

Thu Oct 21, 2021 6:30 am

Hi kevincreation,

Glad to hear you like it. Frankly speaking it is a mere example of what you can achieve with Highcharts. In case you would like to change anything or ask more Highcharts related questions feel free to contact us anytime.

Best regards!

kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

Re: Chart y-axis stating at base 100 (index)

Fri Oct 22, 2021 10:12 am

Thank Mateusz for your proposal

mateusz.b
Posts: 797
Joined: Tue Jul 13, 2021 11:34 am

Re: Chart y-axis stating at base 100 (index)

Mon Oct 25, 2021 8:14 am

You're welcome.

Return to “Highcharts Usage”