kdp9390
Posts: 62
Joined: Tue Apr 26, 2022 3:20 am

box-plot median width

Is it possible to specify the area of ​​the "median" part of a "boxplot" chart like this? My chart is filled with lines in the "median" area. Also can you show the "box plot" side by side?

this is my chart
화면 캡처 2022-05-17 153711.png
화면 캡처 2022-05-17 153711.png (6.47 KiB) Viewed 270 times
I want to make my chart like this.
화면 캡처 2022-05-17 153132.png
화면 캡처 2022-05-17 153132.png (9.42 KiB) Viewed 270 times
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: box-plot median width

Hi kdp9390,

Thanks for contacting us with our question.

Median width can be adjusted with medianWidth property.
Demo:https://jsfiddle.net/BlackLabel/wktz31o5/
API reference: https://api.highcharts.com/highcharts/s ... edianWidth

When it comes to your second queston - should the chart be rendered in separated div container or do you need both in the same one?

Regards!
Mateusz Bernacik
Highcharts Developer
kdp9390
Posts: 62
Joined: Tue Apr 26, 2022 3:20 am

Re: box-plot median width

What I want is to adjust the length like the second picture in the attached file. I want to give the middle value a little space instead of being full.
I wonder if "medianLength" is possible, or if it is possible to have a "margin" value in the box.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: box-plot median width

Hi kdp9390,

Sorry for longer response time.

You can't do that from API level, but you can adjust median path to be shorter like in the following example:
Demo: https://jsfiddle.net/BlackLabel/phgb8f79/
API reference: https://api.highcharts.com/class-refere ... ement#attr

Let me know if it was what you were looking for.

Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”