Created
October 12, 2011 16:10
-
-
Save johnrobertwilson/1281668 to your computer and use it in GitHub Desktop.
highcharts page???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>HighCharts - jsFiddle demo</title> | |
<script type='text/javascript' src='http://code.jquery.com/jquery-1.5.2.js'></script> | |
<link rel="stylesheet" type="text/css" href="/css/result-light.css"> | |
<script type='text/javascript' src="http://www.highcharts.com/js/highcharts.js"></script> | |
<style type='text/css'> | |
</style> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
$(function(){ | |
jQuery.noConflict(); | |
var chart; | |
chart = new Highcharts.Chart({ | |
chart: { | |
renderTo: 'container', | |
defaultSeriesType: 'line', | |
marginRight: 210, | |
marginBottom: 25 | |
}, | |
title: { | |
text: 'Energy Department Technology Transfer Programs', | |
x: -0 //center | |
}, | |
subtitle: { | |
text: '', | |
x: -20 | |
}, | |
xAxis: { | |
categories: ['2001', '2002', '2003', '2004', | |
'2005', '2006', '2007', '2008', '2009', '2010'] | |
}, | |
yAxis: [{ | |
title: { | |
text: 'Number' | |
}, | |
plotLines: [{ | |
value: 0, | |
width: 1, | |
color: '#808080'}], | |
min: 0 | |
}, | |
{ | |
title: { | |
text: 'Licensing $, in millions' | |
}, | |
opposite: 'true'}], | |
tooltip: { | |
formatter: function() { | |
return '<b>' + this.series.name + '</b><br/>' + this.x + ': ' + this.y; | |
} | |
}, | |
legend: { | |
layout: 'vertical', | |
align: 'right', | |
verticalAlign: 'top', | |
x: 20, | |
y: 100, | |
borderWidth: 0 | |
}, | |
series: [{ | |
name: 'Licensing Income', | |
type: 'column', | |
color: '#464646', | |
yAxis: 1, | |
data: [21.4, 23.5, 25.8, 27.3, 27.4, 35.6, 39.2, 49.3, 43.5, 40.6]}, | |
{ | |
name: 'CRADAs', | |
color: '#e7227e', | |
data: [558, 680, 661, 610, 644, 631, 697, 711, 744, 697]}, | |
{ | |
name: 'User Facility Agreements', | |
color: '#19a9e2', | |
data: [0, 0, 5333, 3252, 2859, 3474, 3680, 2817, 6030, 4391]}, | |
{ | |
name: 'WFOs', | |
color: '#f5fa00', | |
data: [0, 1934, 1952, 1884, 1922, 2416, 2395, 2530, 2695, 2222]}, | |
{ | |
name: 'Licenses', | |
color: '#7cc00d', | |
data: [2005, 3459, 3687, 4345, 5677, 5916, 5842, 6146, 5742, 6224]}, | |
{ | |
name: 'Patent Applications', | |
color: '#dc323c', | |
data: [792, 711, 866, 661, 812, 726, 693, 904, 919, 1051]}, | |
{ | |
name: 'Patents', | |
color: '#ec7c00', | |
data: [605, 551, 627, 520, 467, 438, 441, 370, 520, 657]}, | |
{ | |
name: 'Inventions', | |
color: '#960b64', | |
data: [1527, 1498, 1469, 1617, 1776, 1694, 1575, 1460, 1439, 1616]}] | |
}); | |
}); | |
//]]> | |
</script> | |
</head> | |
<body> | |
<div id="container" class="highcharts-container" style="width: 745px"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment