rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

I need help to draw chart

Fri Sep 22, 2023 2:43 am

Hello friends ,
I need to draw chart . Is it possible to draw this chart using highcharts ?
I attached image of chart .
Please suggest something .
Attachments
Screenshot_2023_0922_103605.jpg
Screenshot_2023_0922_103605.jpg (235.41 KiB) Viewed 183 times

jakub.j
Posts: 884
Joined: Tue Jan 24, 2023 11:14 am

Re: I need help to draw chart

Fri Sep 22, 2023 7:33 am

Thanks for contacting us with your question!

You can achieve this by drawing column series, and yAxis.plotBands.

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

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

rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

Re: I need help to draw chart

Fri Sep 22, 2023 9:40 am

Thank you very much for your valuable response

This code is very helpful for me .
Its amazing !

Thank you .

rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

Re: I need help to draw chart

Mon Sep 25, 2023 2:42 am

Hello ,
I have one query about grid line . I want to show grid line outside like image . Can you tell me how I achieve this ?


Thank you .

jakub.j
Posts: 884
Joined: Tue Jan 24, 2023 11:14 am

Re: I need help to draw chart

Mon Sep 25, 2023 7:32 am

Hey!

I've drawn custom gridLines using Highcharts.SVGRenderer. To set the gridLines color, change gridLinesColor variable value.

Demo: https://jsfiddle.net/BlackLabel/3vfqk2gu/

Feel free to ask any further questions!
Best regards
Jakub
Jakub
Highcharts Developer

rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

Re: I need help to draw chart

Mon Sep 25, 2023 8:48 am

Thank you for your quick response ,
I found one thing here in full screen mode grid lines are showing outside of chart not showing inside chart .
Please tell me how I solve this?

Thank you

jakub.j
Posts: 884
Joined: Tue Jan 24, 2023 11:14 am

Re: I need help to draw chart

Mon Sep 25, 2023 9:34 am

Hey!

I modified the grid lines for the fullscreen mode, see:
Demo: https://jsfiddle.net/BlackLabel/7q2o8za3/

Let me know if you have any other questions!
Kind regards
Jakub
Jakub
Highcharts Developer

rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

Re: I need help to draw chart

Mon Sep 25, 2023 10:10 am

Thank you for your cooperation ,

I checked but sometimes in full screen mode grid line show accurate but some times in full screen mode grid lines show very big . Means length of grid line is big and grid line crosses values like 0 % to 100% .
Grid lines crosses values .
If I check in full screen mode again and again then this thing I found .
Can you tell me how can I fix length of grid lines .So grid lines not cross values on y axis .

Thank you.

jakub.j
Posts: 884
Joined: Tue Jan 24, 2023 11:14 am

Re: I need help to draw chart

Mon Sep 25, 2023 11:36 am

Hey!

I added different yAxis configurations for full screen and default, you can try to play with them and also with the offset in line 55 so that the chart behaves as desired on full screen.

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

I hope you will find it useful
Best regards
Jakub
Jakub
Highcharts Developer

rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

Re: I need help to draw chart

Tue Sep 26, 2023 2:49 am

Hello ,
Thank you for your response .
Same thing happen like in full screen mode some time it is working and some time it is not working .
Means length of grid lines are big and grid line crosses values like 0 % to 100% .
I tried on mozila firefox and google chrome browser . I thought browser issue but same thing happen on both browser.
I don't know why grid lines crosses values and some times show big .
I attached two screen shot . So you can understand what is problem.
I also don't know while full screen mode 2 results show .


Thank you.
Attachments
Screenshot_2023_0926_104222.jpg
Screenshot_2023_0926_104222.jpg (55.74 KiB) Viewed 111 times
Screenshot_2023_0926_104206.jpg
Screenshot_2023_0926_104206.jpg (104.36 KiB) Viewed 111 times

jakub.j
Posts: 884
Joined: Tue Jan 24, 2023 11:14 am

Re: I need help to draw chart

Tue Sep 26, 2023 8:07 am

Hey!

I've added fullScreenGridLineWidth variable in the 2nd line so that you can control the width by yourself. Currently it is set to 0.02, if it's still too much for your screen, please reduce this value and check out how does it look for you.

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

I hope you find it useful.
Regards!
Jakub
Jakub
Highcharts Developer

rupesh811
Posts: 39
Joined: Mon Sep 18, 2023 3:22 am

Re: I need help to draw chart

Tue Sep 26, 2023 8:25 am

Thank you very much for your help .
Highcharts forum is very helpful .

Thank you.

Return to “Highcharts Usage”