Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P04, 4.2
-
Fix Version/s: EE-3.3.0.GA_P06
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ace
-
Assignee Priority:P1
-
Support Case References:Support Case 14149:- https://icesoft.my.salesforce.com/5007000001kw562
Description
In an ace:chart (pie chart) component in view page populated with String-Long type of key-value pairs. The chart is rendered fine, but when I clicking on 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));
}
the select[0] and select[1] values should first be checked for type of Object and then cast accordingly, rather than assumed it's an Integer value. (Support Case would like to be able to use a String for label of pie chart)
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));
}
the select[0] and select[1] values should first be checked for type of Object and then cast accordingly, rather than assumed it's an Integer value. (Support Case would like to be able to use a String for label of pie chart)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #51968 | Thu Sep 28 15:57:39 MDT 2017 | judy.guglielmin | |
Files Changed | ||||
![]() ![]() |