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

Image that occupies the width of the plane according to its coordinate.

Hello good afternoon, I am trying to plot an image on the point according to its source, but I require that it occupies the width of the plane, but I have not succeeded, thank you in advance for your help.
Attached jsfiddle, of what I have tried


https://jsfiddle.net/jonaathaan/72L1tfwj/110/
Screenshot_109.png
Screenshot_109.png (27.18 KiB) Viewed 250 times
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Image that occupies the width of the plane according to its coordinate.

Hello there,

Thanks for contacting us again!

You can simply use the plotWidth property on the chart instance. I have updated your demo changing the containerWidth property to this one, see:
https://jsfiddle.net/BlackLabel/nefs46yo/

Let me know if that was what you were looking for,
Kind Regards!
Kamil Kubik
Highcharts Developer
jonguevara
Posts: 8
Joined: Mon Nov 28, 2022 4:53 pm

Re: Image that occupies the width of the plane according to its coordinate.

Hello!
Ok, I understand it works for the top, and from the middle down how would it be?
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Image that occupies the width of the plane according to its coordinate.

The solution works for both areas you pointed in the screen. The problem lies in your data as the x values of bottom elements are too high and start on the right side leaving the space on the left. I have updated the x data of the last element from 37 that you provided to the 22 for better visualization, see: https://jsfiddle.net/BlackLabel/rwzg572a/
Kamil Kubik
Highcharts Developer
jonguevara
Posts: 8
Joined: Mon Nov 28, 2022 4:53 pm

Re: Image that occupies the width of the plane according to its coordinate.

I appreciate your answer but modifying the source was not an option as that information will be variant, the following worked for me https://jsfiddle.net/jonaathaan/72L1tfwj/130/

Thank you very much for your help
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: Image that occupies the width of the plane according to its coordinate.

That's great to hear you found the proper solution.

In case of any further questions, feel free to contact us again,
Regards!
Kamil Kubik
Highcharts Developer

Return to “Highcharts Usage”