Uploaded image for project: 'ZK Charts'
  1. ZK Charts
  2. ZKCHARTS-31

chart resize error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.1
    • 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.

            jumperchen jumperchen
            mausca29 mausca29
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 18 minutes
                18m