-
Bug
-
Resolution: Fixed
-
Normal
-
2.0.0.1
-
None
-
operating system: Windows 7
java version: jdk 1.7.0_75
application server: apache tomcat 7.0.59
Dear all.
I'm evaluating zkchart.
I had implement two spinner control on my chart page to modify on the fly the width and height of generated chart.
When the user change the spinner value the apply class (a SelectorComposer implementation) call the chart.setWidth (height) method using spinner value.
I receive this exception:
java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Integer
at org.zkoss.chart.PlotData.onChange(PlotData.java:323)
at org.zkoss.chart.Optionable.fireEvent(Optionable.java:92)
at org.zkoss.chart.Optionable.fireEvent(Optionable.java:74)
at org.zkoss.chart.Optionable.fireEvent(Optionable.java:56)
at org.zkoss.chart.Optionable.setAttr(Optionable.java:204)
at org.zkoss.chart.Optionable.setAttr(Optionable.java:175)
....
I opened the source code and I modified the org.zkoss.chart.PlotData class and now the exception is fixed. In attachment the new class version. The modified code start at if block in the line 320.
I hope I have been of help for your team.
Regards
Maurizio.
PS: please by patient if my english is not good.