Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (39 sloc) 0.976 kb
053fa4e David Chester second round import
dchester authored
1 <!doctype>
2 <head>
3 <link type="text/css" rel="stylesheet" href="../src/css/graph.css">
4
9687c40 David Chester upgrade d3 for examples
dchester authored
5 <script src="../vendor/d3.v2.js"></script>
053fa4e David Chester second round import
dchester authored
6
7 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
8 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script>
9
b69c8d1 David Chester refactor various renderers so they subclass a base class renerer
dchester authored
10 <script src="../rickshaw.js"></script>
053fa4e David Chester second round import
dchester authored
11 </head>
12 <body>
13
14 <div id="chart"></div>
15
16 <script>
17
18 // set up our data series with 50 random data points
19
20 var seriesData = [ [], [], [] ];
21 var random = new Rickshaw.Fixtures.RandomData(150);
22
23 for (var i = 0; i < 70; i++) {
24 random.addData(seriesData);
25 }
26
27 // instantiate our graph!
28
29 var graph = new Rickshaw.Graph( {
30 element: document.getElementById("chart"),
31 width: 960,
32 height: 500,
33 renderer: 'bar',
34 series: [
35 {
36 color: "#c05020",
37 data: seriesData[0],
38 }, {
39 color: "#30c020",
40 data: seriesData[1],
41 }, {
42 color: "#6060c0",
43 data: seriesData[2],
44 }
45 ]
46 } );
47
48 graph.render();
49
50 </script>
51
52 </body>
Something went wrong with that request. Please try again.