Skip to content

Commit

Permalink
#48 updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Jul 18, 2013
1 parent 25dbd68 commit 22af2ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
24 changes: 15 additions & 9 deletions examples/gists.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
}

function renderGraph( data ){
vis.data( data );
console.log( vis.keys() );
vis.axis("description");
vis.group("public", [true, false]);
//vis.set({ chart: { radius : 10 } });
vis.axis("comments");
vis
.data( data )
.axis("description")
.select("public")
.group([true, false])
.axis("comments");

//vis.gt(0, "comments");
vis.render();
}
Expand Down Expand Up @@ -74,9 +75,14 @@ <h2>Gists</h2>
vis = new Cloudvisio({
layout: "force"
});
vis.axis("created_at");
vis.group("public", [true, false]);
vis.axis("comments");

vis
.data( data )
.axis("description");
.select("public");
.group([true, false]);
.axis("comments");

vis.render();
</pre>
</header>
Expand Down
4 changes: 2 additions & 2 deletions examples/income.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
.axis("radius", 5)
.axis("name")
.select("incomeLevel")
.group(["High", "Medium", "Low"]);
.group(["High", "Middle", "Low"]);

vis.render();
});
Expand Down Expand Up @@ -70,7 +70,7 @@ <h3>countries split in high/medium/low groups</h3>
.axis("radius", 5)
.axis("name")
.select("incomeLevel")
.group(["High", "Medium", "Low"]);
.group(["High", "Middle", "Low"]);

vis.render();
});
Expand Down

0 comments on commit 22af2ce

Please sign in to comment.