ace:chart  XML
Forum Index -> Components
Author Message

Joined: 12/May/2017 05:53:47
Messages: 3


I use an ace:chart (pie chart) component in my jspx page populated with String-Long type of key-value pairs. The chart is rendered fine, but when I click a slice invoking the method registered in selectListener property, NumberFormatException is thrown saying that the label cannot be cast to int.

This mechanism resides in the ChartRenderer.processSelections API method when the seriesIndex and pointIndex variables are attempted to create.

private void processSelections(Chart chart, String[] select) {
int seriesIndex = Integer.parseInt(select[0]);
int pointIndex = Integer.parseInt(select[1]);
chart.queueEvent(new SeriesSelectionEvent(chart, seriesIndex, pointIndex));

Does anybody know how to use the selection feature of this UI component?

Many thanks,
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team