Threaded View
-
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
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