Skip to content

Instantly share code, notes, and snippets.

@reinholdsson
Created May 4, 2014 16:58
Show Gist options
  • Save reinholdsson/11519959 to your computer and use it in GitHub Desktop.
Save reinholdsson/11519959 to your computer and use it in GitHub Desktop.
My Chart 2
<!doctype HTML>
<meta charset = 'utf-8'>
<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>
<script src='http://code.highcharts.com/modules/exporting.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 250px;
}
</style>
</head>
<body >
<div id = 'chartc6ae4d23d97f' class = 'rChart highcharts'></div>
<script type='text/javascript'>
(function($){
$(function () {
var chart = new Highcharts.Chart({
"dom": "chartc6ae4d23d97f",
"width": 800,
"height": 250,
"credits": {
"href": null,
"text": null
},
"exporting": {
"enabled": false
},
"title": {
"text": null
},
"yAxis": {
"title": {
"text": null
}
},
"chart": {
"type": "spline",
"backgroundColor": null,
"renderTo": "chartc6ae4d23d97f"
},
"series": [
{
"data": [
1,
3,
2,
4,
5,
4,
6,
2,
3,
5,
null
],
"dashStyle": "longdash"
},
{
"data": [
null,
4,
1,
3,
4,
2,
9,
1,
2,
3,
1
],
"dashStyle": "shortdot"
}
],
"legend": {
"symbolWidth": 80
},
"id": "chartc6ae4d23d97f"
});
});
})(jQuery);
</script>
<script></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment