Javascript examples for highcharts:Boxplot Chart
margin between two boxplot series in boxplot chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function () {//from w ww.ja va 2 s . co m $('#container').highcharts({ chart: { type: 'boxplot' }, 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: '#F0F0E0', lineWidth: 2, medianColor: '#0C5DA5', medianWidth: 3, stemColor: '#A63400', stemDashStyle: 'dot', stemWidth: 1, whiskerColor: '#3D9200', whiskerLength: '20%', whiskerWidth: 3 } }, series: [{ name: 'Observations', pointPlacement: -0.1, 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] ] }, { name: 'Observations', pointPlacement: -0.1, 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] ] }, { name: 'Observations', pointPlacement: 0.1, 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] ] }, { name: 'Observations', pointPlacement: 0.1, 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] ] }] }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/highcharts-more.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="height: 400px; margin: auto; min-width: 400px; max-width: 600px"></div> </body> </html>