--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/toolkit/exemples/streamgraph/script.js Thu Apr 10 14:20:23 2014 +0200
@@ -0,0 +1,41 @@
+
+var r = new Relations();
+
+var couleurs = new Couleurs(20);
+
+//*
+var parametresStreamgraph = {
+ name: "streamgraph",
+ selector: "#streamgraph",
+ hauteur: 300,
+ largeur: 900,
+ relations: r,
+ couleurs: couleurs
+};
+
+
+var streamgraph = new Streamgraph(json, parametresStreamgraph);
+
+var parametresStreamgraphTimeline = {
+ name: "streamgraphTimeline",
+ selector: "#streamgraphTimeline",
+ activerSelection : true,
+ activerTimeline: true,
+ hauteur: 50,
+ largeur: 900,
+ relations: r
+ };
+
+var streamgraphTimeline = new Streamgraph(json, parametresStreamgraphTimeline);
+//*/
+
+//*
+r.get("streamgraphTimeline").bind("selectionResize","streamgraph",
+ function(objet, params) { objet.resize(params[0], params[1]); });
+
+for (var i = 0; i<10; ++i) {
+ r.get("streamgraph.cluster." + i)
+ .mouseover(streamgraph.focus)
+ .mouseout(streamgraph.blur);
+}
+//*/
\ No newline at end of file