animation - g.raphael bar chart and updating/animating the values -


I'm working on charts a few times and need to update the chart values. The only way to do this is to do the whole thing again, is there a simple update to do so often? And if I really want to do this, then this change is animate. Any suggestions?

here you want (updates).

The only issue you were on the right track to create a new bar chart is that you do not want to "display" the bar at that time, but you want to use your bar for animation . Although it creates a new graph that we throw later (using the remove), it seems that Rafael is the best practice. function b_animate () {/ / first, a new bar chart var c2 = bars.g.barchart (200, 0, 300, 400, [bdata], {stacked: falls, color : ["# 999", "# 333", "# 666)")}); // Then for each time (C) in our chart, revive the path of our new chart (C2) $ .each (c.bars [0], function (k, v) {v.animate ({ Path: c2.bars [0] [k] .attr ("path"), 200); v.value [0] = bdata [k] [0];}); // Now remove the new chart c2.remove (); }

It has not been completed, as we have not animated the legends to match the new chart, but you have to get the technology applied to the labels. In fact, we need to map the zombie again to show new labels (and to remove old labels).

Hopefully, it's just as much as you expect, as you would expect. Let me know if you have any problems enjoy!

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -