Threaded View

    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.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2008
    Posts
    72
    Vote Rating
    5
    elirov is on a distinguished road

      0  

    Default 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:

    Code:
    onSuccess(Payload result) {
               store.clear();          store.addAll(result.data);
                  chart.redrawChart();
                  forceLayout();
    }
    The forceLayout() command at the end helps somewhat. It's less likely to stack labels on top of each other, but it still happens.

    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:
    Code:
              Scheduler.get().scheduleDeferred(new ScheduledCommand() {
                @Override
                public void execute() {
                  chart.redrawChart();
                  forceLayout();
                }
              });
    But I don't think that should be needed...
    Attached Images

Thread Participants: 1

Tags for this Thread