Following KEIKAI-793, Charts can be rendered with axis index -1, which causes Highcharts error #18

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: 6.1.0
    • Component/s: None
    • Security Level: Jimmy
    • None
    • None

      Steps to Reproduce

      Run attached zul / xlsx

      Current Result

      no chart

      JS console:
      chart.wpd:466 Uncaught Error: Highcharts error #18: www.highcharts.com/errors/18/
          at H.Chart.defaultHandler (chart.wpd:466:27)
          at H.fireEvent (chart.wpd:2442:33)
          at H.error (chart.wpd:487:19)
          at chart.wpd:30158:29
          at Array.forEach (<anonymous>)
          at obj.<anonymous> (chart.wpd:30118:46)
          at H.fireEvent (chart.wpd:2442:33)
          at obj.bindAxes (chart.wpd:30116:17)
          at obj.init (chart.wpd:29972:24)
          at H.Chart.initSeries (chart.wpd:24410:24)
      

      Expected Result

      no error

      Debug Information

      final int xAxisIndex = xAxis == null ? -1 : xAxisMap.get(xAxis.getId());
      final int yAxisIndex = yAxis == null ? -1 : yAxisMap.get(yAxis.getId());
      

      -1 is not a valid axis index, causes the highcharts error #18

      Workaround

      attached HighchartsHelper.java, restore to previous state

            Assignee:
            Unassigned
            Reporter:
            MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: