Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created April 21, 2013 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramnathv/5429908 to your computer and use it in GitHub Desktop.
Save ramnathv/5429908 to your computer and use it in GitHub Desktop.
test highcharts
<!doctype HTML>
<html>
<head>
<script src='http://code.jquery.com/jquery-1.9.1.min.js' type='text/javascript'></script>
<script src='http://code.highcharts.com/highcharts.js' type='text/javascript'></script>
<script src='http://code.highcharts.com/highcharts-more.js' type='text/javascript'></script>
<style>
.rChart {
display: block
margin: auto auto;
width: 900px;
height: 500px;
}
</style>
</head>
<body>
<div id='chartbaed212b5c60' class='rChart nvd3Plot'></div>
<script type='text/javascript'>
(function($){
$(function () {
var chart = new Highcharts.Chart({"dom":"chartbaed212b5c60","credits":{"href":null,"text":null},"chart":{"type":"line","renderTo":"chartbaed212b5c60"},"title":{"text":"US Personal Expenditure"},"xAxis":[{"categories":["Food and Tobacco","Household Operation","Medical and Health","Personal Care","Private Education"]}],"yAxis":[{"title":{"text":"Billions of dollars"}}],"series":[{"name":"1940","data":[22.2,10.5,3.53,1.04,0.341]},{"name":"1945","data":[44.5,15.5,5.76,1.98,0.974]},{"name":"1950","data":[59.6,29,9.71,2.45,1.8]},{"name":"1955","data":[73.2,36.5,14,3.4,2.6]},{"name":"1960","data":[86.8,46.2,21.1,5.4,3.64]}],"id":"chartbaed212b5c60"});
});
})(jQuery);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment