JavaScript
Highcharts.chart('container', {
chart: {
type: 'boxplot',
inverted: true
},
title: {
text: 'Highcharts box plot styling'
},
legend: {
enabled: false
},
xAxis: {
categories: ['1', '2', '3', '4', '5'],
title: {
text: 'Experiment No.'
}
},
yAxis: {
title: {
text: 'Observations'
}
},
plotOptions: {
boxplot: {
fillColor: '#000',
lineWidth: 1,
lineColor: "#fff",
pointWidth: 5,
groupPadding: 0,
medianColor: '#fff',
medianWidth: 1,
stemColor: '#000',
stemDashStyle: 'dot',
stemWidth: 1,
whiskerColor: '#000',
whiskerLength: '20%',
whiskerWidth: 1,
},
},
series: [{
name: 'Observations',
data: [
[760, 801, 848, 895, 965],
[733, 853, 939, 980, 1080],
[714, 762, 817, 870, 918],
[724, 802, 806, 871, 950],
[834, 836, 864, 882, 910],
[760, 801, 848, 895, 965],
[733, 853, 939, 980, 1080],
[714, 762, 817, 870, 918],
[724, 802, 806, 871, 950],
[834, 836, 864, 882, 910],
]
}]
});