JSFiddle - React, Tailwind, and code Playground
by Nick Hulea
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="http://www.highcharts.com/js/themes/grid.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$(document).ready(function () {
chart = new Highcharts.Chart({
credits: {
enabled: false
},
chart: {
renderTo: 'container',
type: 'spline'
},
title: {
text: 'Attending/Non Attending Analysis'
},
subtitle: {
text: ''
},
xAxis: {
categories: ['May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
tickmarkPlacement: 'on',
title: {
enabled: false
}
},
yAxis: {
title: {
text: 'Millions'
},
labels: {
enabled: true,
formatter: function () {
return this.value/1000000;
}
}
},
tooltip: {
formatter: function () {
return '' + this.x + ': ' + Highcharts.numberFormat(this.y, 0, ',') + '';
}
},
plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
lineWidth: 1,
marker: {
lineWidth: 1,
lineColor: '#666666'
}
}
},
series: [{
name: 'All Attending',
data: [4611550, 553306, 8536652, 6798539, 15392251, 8332391, 728498, 4967]
}, {
name: 'Attending ( media parnter)',
data: [1737106, 268532, 638614, 1455393, 8413203, 2702820, 728498, 2654]
} ,{
name: 'Attending (Non media partner)',
data: [2874444, 284774, 7898038, 5343146, 6979048, 5629571, 0,...