- From: remy <remy.cazabet AT gmail.com>
- To: graphstream-users AT litislab.fr
- Subject: pie-charts colors update
- Date: Mon, 26 Mar 2012 14:16:19 +0200 (CEST)
Hi,
I try to use pie-charts to represent my nodes, but I need to change their
colors dynamically.
I'm using
n.setAttribute("ui.style", "shape:pie-chart;fill-color:XXX").
It works well the first time, but if I do it again with new colors, it keeps
the old ones. It seems to be an actualization problem, because if I first
change the shape to a cross for example, then I can correctly set the colors
for the pie-chart anew. (But only if the cross is displayed. If I change to a
cross, them come back to a pie-chart without graphic update, it keeps the old
colors.)
To give a concrete example of the problem, if I write
n.setAttribute("ui.style", "shape:pie-chart;fill-color:red");
Thread.sleep(1000);
n.setAttribute("ui.style", "shape:pie-chart;fill-color:blue");
the node stays red.
Do you have a solution ? Thanks
- pie-charts colors update, remy, 26/03/2012
Archives gérées par MHonArc 2.6.16.