Skip to content

Commit

Permalink
tweak scatter plot example and add to examples listing
Browse files Browse the repository at this point in the history
  • Loading branch information
dchester committed Feb 6, 2012
1 parent 1cceb56 commit 5cc895b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 10 additions & 0 deletions examples/index.html
Expand Up @@ -89,6 +89,16 @@ <h2><a href="extensions.html">Interactive Real-Time Data</a></h2>
</div>
</section>

<section>
<a href="scatterplot.html"><img src="screenshots/scatterplot.png"></a>
<div>
<h2><a href="scatterplot.html">Scatter Plot with Multiple Series</a></h2>
<span>
Basic scatter plot with two overlapping series.
</span>
</div>
</section>

<section>
<a href="status.html"><img src="screenshots/status.png"></a>
<div>
Expand Down
11 changes: 5 additions & 6 deletions examples/scatterplot.html
Expand Up @@ -20,7 +20,7 @@
var seriesData = [ [], [], [] ];
var random = new Rickshaw.Fixtures.RandomData(150);

for (var i = 0; i < 70; i++) {
for (var i = 0; i < 500; i++) {
random.addData(seriesData);
}

Expand All @@ -33,18 +33,17 @@
renderer: 'scatterplot',
series: [
{
color: "#c05020",
color: "#ff9030",
data: seriesData[0],
}, {
color: "#30c020",
color: "#ff4040",
data: seriesData[1],
}, {
color: "#6060c0",
data: seriesData[2],
}
]
} );

graph.renderer.dotSize = 6;

graph.render();

</script>
Expand Down
Binary file added examples/screenshots/scatterplot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5cc895b

Please sign in to comment.