Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Clearing data in a FacetChart

    Hi,
    I'm using SmartGWTPro 4.0p-20140221.
    I've a chart in which I display time series data for different time intervals. When user changes the time interval and not data is present for the time interval I want to clear the data from previous search.

    I'm trying to clear the previous data by setting empty record list
    ArrayList timeChartRecList = new ArrayList(0);
    timeChart.setData(new RecordList(timeChartRecList));
    timeChart.markForRedraw();

    This is not clearing the data form previous search.

    Is there any other way of doing this?
    Thanks.

    #2
    Thanks for pointing this out. The chart should indeed clear itself if handed empty data but was instead treating it as invalid data. This has been corrected for all affected branches.

    Comment

    Working...
    X