Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21627 kshitij.so 1
<!doctype html>
2
<head>
3
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
4
  <script src="https://raw.github.com/DmitryBaranovskiy/raphael/300aa589f5a0ba7fce667cd62c7cdda0bd5ad904/raphael-min.js"></script>
5
  <script src="../morris.js"></script>
6
  <script src="lib/prettify.js"></script>
7
  <script src="lib/example.js"></script>
8
  <link rel="stylesheet" href="lib/example.css">
9
  <link rel="stylesheet" href="lib/prettify.css">
10
  <link rel="stylesheet" href="../morris.css">
11
  <style>
12
    body { background:#ccc; }
13
  </style>
14
</head>
15
<body>
16
<h1>Donut Chart</h1>
17
<div id="graph"></div>
18
<pre id="code" class="prettyprint linenums">
19
Morris.Donut({
20
  element: 'graph',
21
  data: [
22
    {value: 70, label: 'foo'},
23
    {value: 15, label: 'bar'},
24
    {value: 10, label: 'baz'},
25
    {value: 5, label: 'A really really long label'}
26
  ],
27
  backgroundColor: '#ccc',
28
  labelColor: '#060',
29
  colors: [
30
    '#0BA462',
31
    '#39B580',
32
    '#67C69D',
33
    '#95D7BB'
34
  ],
35
  formatter: function (x) { return x + "%"}
36
});
37
</pre>
38
</body>