Advertisement
GWibisono

malah minta lebih :(

Apr 3rd, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.41 KB | None | 0 0
  1. <html>
  2.   <head>
  3.     <meta name="generator"
  4.     content="HTML Tidy for HTML5 (experimental) for Windows https://github.com/w3c/tidy-html5/tree/c63cc39" />
  5.     <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css" />
  6.     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
  7.     <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
  8.     <script src="http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js"></script>
  9.     <title></title>
  10.   </head>
  11.   <body>
  12.     <div id="myfirstchart" style="height: 250px;"></div>
  13.     <script>
  14. new Morris.Line({
  15.   // ID of the element in which to draw the chart.
  16.   element: 'myfirstchart',
  17.   // Chart data records -- each entry in this array corresponds to a point on
  18.   // the chart.
  19.   data: [
  20.     { year: '2010', value: 5564700000 },
  21.     { year: '2011', value: 6114000000 },
  22.     { year: '2012', value: 7888000000 }
  23.   ],
  24.   // The name of the data record attribute that contains x-values.
  25.   xkey: 'year',
  26.   // A list of names of data record attributes that contain y-values.
  27.   ykeys: ['value'],
  28.   // Labels for the ykeys -- will be displayed when you hover over the
  29.   // chart.
  30.   labels: ['Value'],
  31.   yLabelFormat:function( y ){
  32.     str=(y/1000000000) + "M"; //Math.floor
  33.     return str;
  34.   },
  35.   ymin: 4000000000 //begini lho mas
  36. });
  37. </script>
  38.   </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement