GraphStream Users

Archives de la liste Aide

pie-charts colors update

Chronologique Discussions 
  • From: remy <remy.cazabet AT>
  • To: graphstream-users AT
  • Subject: pie-charts colors update
  • Date: Mon, 26 Mar 2012 14:16:19 +0200 (CEST)

I try to use pie-charts to represent my nodes, but I need to change their
colors dynamically.
I'm using
n.setAttribute("", "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

To give a concrete example of the problem, if I write

n.setAttribute("", "shape:pie-chart;fill-color:red");

n.setAttribute("", "shape:pie-chart;fill-color:blue");

the node stays red.

Do you have a solution ? Thanks

Archives gérées par MHonArc 2.6.16.

Top of page