-
10 May 2012 5:46 AM #1
bar chart refresh problem after deleting a bar
bar chart refresh problem after deleting a bar
Hello, after a few time testing, I have a little problem with my bar chart.
It's possible to add and delete new data bars. But the problem is when I remove a bar.
It's like the chart don't delete the hole data object it uses to draw.
here are some screens :
http://sd-1.archive-host.com/membres.../bar_first.PNG
http://sd-1.archive-host.com/membres...bar_second.PNG
http://sd-1.archive-host.com/membres.../bar_third.PNG
On the second screen, you can see that they all resize like it should. Then when i maximize the window i see a little box where the data was before deleting it. How can i fix that ?
This is the code i use when i remove a data :
Thank's for helping.Code:public void onSelect(SelectEvent event) { Context c = event.getContext(); int row = c.getIndex(); Data d = store.get(row); channelsData.remove(row); store.remove(d); store.commitChanges(); barChart.setStore(store); barSpec.setChannelsData(channelsData); channelsData = barSpec.getChannelsData(); barChart.redrawChart();
Van de Velde Jo
-
10 May 2012 11:32 AM #2
Thanks for the report. This has been fixed in SVN and will be in the next release. Until then you can avoid this issue by turning off shadows.
-
10 May 2012 10:20 PM #3
It don't change anything even after turning off the shadows.
Then i have the situation you can see in the image 2. Just the last bar is still there, the others just go over that one and don't remove the green bar.
When i add a new data, the text is also gone.
I tried to remove the data from the series too with the codebut it don't change anything.Code:barChart.removeSeries(row)
Here is a new image to see the problem :
http://sd-1.archive-host.com/membres...ar_explain.PNG
Maybe i'm doing it wrong, so i need some help with this.
-
15 Aug 2012 1:33 PM #4
GXT 3.0.1 has been released and contains this fix.
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