Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta name="generator"
- content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css" />
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
- <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
- <script src="http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script>
- <title></title>
- </head>
- <body>
- <div style="height: 250px;max-width:500px"><div id="myfirstchart"></div></div>
- <script>
- new Morris.Line({
- // ID of the element in which to draw the chart.
- element: 'myfirstchart',
- // Chart data records -- each entry in this array corresponds to a point on
- // the chart.
- data: [
- { year: '2005', value: 3564700000 },
- { year: '2006', value: 6114000000 },
- { year: '2007', value: 7888000000 },
- { year: '2008', value: 5764700000 },
- { year: '2009', value: 6614000000 },
- { year: '2010', value: 6888000000 }
- ],
- // The name of the data record attribute that contains x-values.
- xkey: 'year',
- // A list of names of data record attributes that contain y-values.
- ykeys: ['value'],
- // Labels for the ykeys -- will be displayed when you hover over the
- // chart.
- labels: ['Value'],
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement