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

Chart y-axis stating at base 100 (index)

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 470 times
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

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

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!
Mateusz Bernacik
Highcharts Developer
kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

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

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: 2006
Joined: Tue Jul 13, 2021 11:34 am

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

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!
Mateusz Bernacik
Highcharts Developer
kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

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

Hi Mateusz,

I just want to reproduce the attached chart.

Thanks,

Kevin
Attachments
chart.png
chart.png (89.41 KiB) Viewed 412 times
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

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

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
Mateusz Bernacik
Highcharts Developer
kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

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

wow, great job mateusz, thanks a lot - am impressed
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

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

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!
Mateusz Bernacik
Highcharts Developer
kevincreation
Posts: 5
Joined: Thu Oct 14, 2021 8:44 pm

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

Thank Mateusz for your proposal
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

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

You're welcome.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”