Threaded View
-
1 May 2012 5:36 AM #1
gxt radar chart refresh issue
gxt radar chart refresh issue
I'm getting some weird artifacts when redrawing a gxt radar chart. It looks like the labels are drawn on top of each other until I resize the container. Here's the code:
The forceLayout() command at the end helps somewhat. It's less likely to stack labels on top of each other, but it still happens.Code:onSuccess(Payload result) { store.clear(); store.addAll(result.data); chart.redrawChart(); forceLayout(); }
Note that the labels only get "stacked" when the result.data object contains different a different number of data points (not just different values) from the previous run.
I'll attach a screenshot.
I'm going to try adding this to the end of the onSuccess() call:
But I don't think that should be needed...Code:Scheduler.get().scheduleDeferred(new ScheduledCommand() { @Override public void execute() { chart.redrawChart(); forceLayout(); } });
Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.


Reply With Quote