I am implementing the VaadinVisualization wrapper library for Google visualization. Using the VaadinvisualizationApplication.java example I cannot get the selectionChanged listener for PieChart to show a value for selected node/slice of pie.
i have a timeline chart and want to implement a SelectionListener… but i always get undefined as value when i click on a point in the timeline chart:
For example we have a LineChart:
// Add a LineChart
LineChart lc = new LineChart();
lc.setOption(“legend”, “bottom”);
lc.setOption(“title”, “Company Performance”);
lc.addXAxisLabel("Year");
lc.addLine("Expenses");
lc.addLine("Sales");
lc.add("2004", new double[]{100,200});
lc.add("2005", new double[]{75,100});
lc.add("2006", new double[]{32,234});
lc.add("2007", new double[]{25,2534});
lc.add("2008", new double[]{2343,12});
lc.setSizeFull();
//
how can i now implement a listener which shows me the value (perhaps for 2005 75) in a notification?
However Andreas Haug the rights - for example, for BarChart such reception doesn’t pass -
for the same code at onClick a column in selectedItems registers null.