ialexei / gwt-charts

Automatically exported from code.google.com/p/gwt-charts
0 stars 0 forks source link

De-Selecting and redrawing in SelectHandler Callback causes selection to be re-selected #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Attach a SelectHandler to a CoreChart (i.e. PieChart)
2.In the SelectHandler callback call draw() on the CoreChart

Selecting works but de-selecting doesn't work because the selection instance in 
the CoreChartWidget is not set to null: 

@Override
protected void redrawNow() {
    super.redrawNow();
    if (selection != null) {
        chartObject.setSelection(selection);
    }
}

What is the expected output? What do you see instead?

The Selection should be de-selected but it isn't. 

Workaround ?

Programatically set the selection to null. 

What operating system, browser and version are you using?

gwt-chart 0.9.10 GWT 2.6.1

Original issue reported on code.google.com by uemit.se...@gmail.com on 30 Sep 2014 at 8:19

GoogleCodeExporter commented 8 years ago

Original comment by rglafo...@gmail.com on 14 Oct 2014 at 2:41