Highcharts Demo - No Stacking
Shiv Ganesh
by shivkumarganesh
HTML
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://highcharts.github.io/pattern-fill/pattern-fill.js"></script>
<div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
JavaScript
var gfxPath = 'https://sampleproject-shivkumarganesh.c9users.io/img/';
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Stacked bar chart'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
}
},
legend: {
reversed: true
},
plotOptions: {
series: {
// stacking: 'normal'
}
},
series: [{
name: 'John',
data: [5, 3, 4, 7, 2],
color: {
pattern: gfxPath + 'Dots_Large.png',
width: 10,
height: 10
}
}, {
name: 'Jane',
data: [2, 2, 3, 2, 1],
color: {
pattern: gfxPath + 'Grid.png',
width: 10,
height: 10
}
}, {
name: 'Joe',
data: [3, 4, 4, 2, 5],
color: {
pattern: gfxPath + 'Bricks.png',
width: 15,
height: 15
}
}]
});