Stacked Area
Demo grid for Sage Tree
by Sarah Godoshian
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function() {
$('#container').highcharts({
credits: {
enabled: false
},
exporting: {
enabled: false
},
colors: ['#ff9900', '#2f7ed8', '#8bbc21'],
chart: {
type: 'area'
},
title: false,
subtitle: false,
xAxis: {
categories: ['12/15', '01/16', '02/16', '03/16', '04/16', '05/16', '06/16'],
tickmarkPlacement: 'on',
title: {
enabled: false
}
},
yAxis: {
title: {
text: 'Thousands of Dollars ($)'
},
labels: {
formatter: function() {
return this.value / 1;
}
}
},
tooltip: {
shared: true,
valueSuffix: ' thousands'
},
plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
lineWidth: 0,
marker: {
enabled: false,
lineWidth: 1,
lineColor: '#666666'
}
}
},
series: [{
name: 'Amazon',
data: [502, 635, 809, 947, 1402, 3634, 5268]
}, {
name: 'Walmart',
data: [763, 503, 576, 408, 547, 729, 628]
}, {
name: 'Home Depot',
data: [218, 431, 754, 556, 339, 818, 1201]
}]
});
});