Skip to content

Instantly share code, notes, and snippets.

@patilv
Created June 12, 2014 01:36
Show Gist options
  • Save patilv/144eb503d782a289ac5e to your computer and use it in GitHub Desktop.
Save patilv/144eb503d782a289ac5e to your computer and use it in GitHub Desktop.
h1
<!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: 400px;
}
</style>
</head>
<body >
<div id = 'chart1ce89a81a45' class = 'rChart highcharts'></div>
<script type='text/javascript'>
(function($){
$(function () {
var chart = new Highcharts.Chart({
"dom": "chart1ce89a81a45",
"width": 800,
"height": 400,
"credits": {
"href": null,
"text": null
},
"exporting": {
"enabled": false
},
"title": {
"text": null
},
"yAxis": [
{
"title": {
"text": "value"
}
}
],
"series": [
{
"data": [
[
2001,
942.81
],
[
2002,
1048.25
],
[
2003,
940.39
],
[
2004,
986.91
],
[
2005,
952.2
],
[
2006,
967.91
],
[
2007,
1026.88
],
[
2008,
905.69
],
[
2009,
932.02
],
[
2010,
930.54
],
[
2011,
923.38
],
[
2012,
1007.39
],
[
2013,
995.63
],
[
2014,
989.25
],
[
2015,
935.38
],
[
2016,
1103.13
],
[
2017,
982.51
],
[
2018,
989.16
],
[
2019,
1015.53
],
[
2020,
1000.02
],
[
2021,
979.23
],
[
2022,
911.6
],
[
2023,
1093.6
],
[
2024,
949.61
],
[
2025,
1001.93
],
[
2026,
963.72
],
[
2027,
936.98
],
[
2028,
956.62
],
[
2029,
1069.27
],
[
2030,
976.38
],
[
2031,
980.19
],
[
2032,
1056.89
],
[
2033,
963.87
],
[
2034,
1000.52
],
[
2035,
1014.01
],
[
2036,
994.79
],
[
2037,
1076.33
],
[
2038,
957.86
],
[
2039,
1020.52
],
[
2040,
987.43
],
[
2041,
980.3
],
[
2042,
953.11
],
[
2043,
1062.98
],
[
2044,
1093.22
],
[
2045,
972
],
[
2046,
953.91
],
[
2047,
1007.69
],
[
2048,
1042.53
],
[
2049,
947.12
],
[
2050,
1119.15
]
],
"name": "A",
"type": "line",
"marker": {
"radius": 3
}
},
{
"data": [
[
2001,
706.71
],
[
2002,
1119.42
],
[
2003,
1403.48
],
[
2004,
978.97
],
[
2005,
536.3
],
[
2006,
879.54
],
[
2007,
1495.73
],
[
2008,
922.5
],
[
2009,
667.45
],
[
2010,
590.03
],
[
2011,
1411.64
],
[
2012,
572.34
],
[
2013,
710.69
],
[
2014,
1488.45
],
[
2015,
1157.54
],
[
2016,
1312.8
],
[
2017,
590.63
],
[
2018,
1280.07
],
[
2019,
1120.11
],
[
2020,
607.41
],
[
2021,
711.23
],
[
2022,
903.61
],
[
2023,
1376.33
],
[
2024,
837.64
],
[
2025,
778.12
],
[
2026,
858.69
],
[
2027,
861.61
],
[
2028,
685.85
],
[
2029,
1293.05
],
[
2030,
1172.33
],
[
2031,
1136.66
],
[
2032,
1017.29
],
[
2033,
1492.81
],
[
2034,
777.66
],
[
2035,
659.32
],
[
2036,
1305.75
],
[
2037,
959.51
],
[
2038,
1255
],
[
2039,
1034.84
],
[
2040,
1226.43
],
[
2041,
1457.42
],
[
2042,
1069.15
],
[
2043,
542.07
],
[
2044,
860.09
],
[
2045,
1262.3
],
[
2046,
992.51
],
[
2047,
1044.7
],
[
2048,
768.93
],
[
2049,
1124.59
],
[
2050,
696.76
]
],
"name": "B",
"type": "line",
"marker": {
"radius": 3
}
}
],
"xAxis": [
{
"title": {
"text": "time"
}
}
],
"subtitle": {
"text": null
},
"id": "chart1ce89a81a45",
"chart": {
"renderTo": "chart1ce89a81a45"
}
});
});
})(jQuery);
</script>
<script></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment