Skip to content
This repository was 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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions