JSFiddle - React, Tailwind, and code Playground
by JoeKuan
HTML
<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>
<script type="text/javascript" src="http://code.highcharts.com/highcharts-3d.js"></script>
<body>
<div id="container"></div>
</body>
JavaScript
$(function () {
$(document).ready(function() {
document.title = "Highcharts " + Highcharts.version;
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column',
borderWidth: 1,
marginTop: 55,
marginLeft: 35,
spacingBottom: 25,
options3d: {
alpha: 10,
beta: 30,
enabled: true
}
},
title: {
text: 'Number of Patents Granted',
},
credits: {
position: {
align: 'left',
x: 20
},
href: 'http://www.uspto.gov',
text: 'Source: U.S. Patent & Trademark Office'
},
xAxis: {
categories: [
'2001', '2002', '2003', '2004', '2005',
'2006', '2007', '2008', '2009', '2010', '2011' ],
},
yAxis: {
title: {
text: 'No. of Patents',
x: 50,
y: -70
}
},
plotOptions: {
column: {
stacking: 'normal'
}
},
series: [{
name: 'UK',
data: [ 4351, 4190, 4028, 3895, 3553,
4323, 4029, 3834, 4009, 5038, 4924 ],
stack: 'Europe'
}, {
name: 'Germany',
data: [ 11894, 11957, 12140, 11367, 9575,
10889, 10012, 10085, 10352, 13633, 12968 ],
stack: 'Europe'
}, {
name: 'S.Korea',
data: [ 3763, 4009, 4132, 4671, 4591,
6509, 7264, 8730, 9566, 12508, 13239 ],
stack:...