Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

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

Open
GoogleCodeExporter opened this issue Mar 10, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 30 Sep 2014 at 8:19

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant