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

drilldown affects onPointClick events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.1.1
    • 2.1.1
    • Security Level: Jimmy
    • None

      the attached example demostrates a NPE when using onPointClick events in combination with drilldown

      2 sequences to create an NPE in this example:
      1) click a category -> back (drill up) -> click same (or other) category again -> NPE
      2) click a category -> click a sub category -> NPE

      the NPE occurs when calling event.getPoint() in the event listener

      in case one the event sent to the server indicate a problem on the client side when sending the event (might be a problem in highcharts or the ZK client side implementation)

      dtid:z_nnz, cmd_0:onPlotClick, uuid_0:bU9Q1,
      data_0:{"sIndex":0,"pIndex":1,"category":1}
      
      dtid:z_nnz, cmd_0:onPlotClick, uuid_0:bU9Q1,
      data_0:{"sIndex":1,"pIndex":1,"category":1}
      

      in the second event the "sIndex" is incremented to 1 which leads to the NPE when retrieving the point from the event

        1. Browser.java
          0.6 kB
        2. BrowserMarketShare.java
          3 kB
        3. chart-drilldown.zul
          0.3 kB
        4. ChartDrilldownComposer.java
          3 kB

            christopherszu christopherszu
            cor3000 cor3000
            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 - 3 hours
                3h