SHOW:
|
|
- or go back to the newest paste.
1 | <html> | |
2 | - | <head> |
2 | + | |
3 | - | |
3 | + | |
4 | - | <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css"> |
4 | + | |
5 | - | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> |
5 | + | |
6 | - | <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> |
6 | + | |
7 | - | <script src="http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script> |
7 | + | |
8 | - | |
8 | + | |
9 | - | |
9 | + | |
10 | - | </head> |
10 | + | |
11 | - | <body> |
11 | + | |
12 | - | |
12 | + | <div style="height: 250px;max-width:500px"><div id="myfirstchart"></div></div> |
13 | - | <div id="myfirstchart" style="height: 250px;"></div> |
13 | + | |
14 | - | |
14 | + | |
15 | - | |
15 | + | |
16 | - | <script> |
16 | + | |
17 | - | |
17 | + | |
18 | // the chart. | |
19 | data: [ | |
20 | { year: '2005', value: 3564700000 }, | |
21 | { year: '2006', value: 6114000000 }, | |
22 | { year: '2007', value: 7888000000 }, | |
23 | { year: '2008', value: 5764700000 }, | |
24 | { year: '2009', value: 6614000000 }, | |
25 | { year: '2010', value: 6888000000 } | |
26 | ], | |
27 | // The name of the data record attribute that contains x-values. | |
28 | xkey: 'year', | |
29 | - | <div id="myfirstchart" style="height: 250px;"></div> |
29 | + | |
30 | ykeys: ['value'], | |
31 | // Labels for the ykeys -- will be displayed when you hover over the | |
32 | // chart. | |
33 | labels: ['Value'], | |
34 | }); | |
35 | </script> | |
36 | </body> | |
37 | - | { year: '2010', value: 5564700000 }, |
37 | + |