Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-595

Chart can't handle error values gracefully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.11.0
    • 5.9.0
    • None
    • Security Level: Jimmy
    • None
    • None

      Steps to Reproduce

      1. import the file

      Current Result

      java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
      at io.keikai.model.impl.chart.ChartUtil.evalVisibleInfo(ChartUtil.java:77)
      at io.keikai.model.impl.chart.SeriesImpl.evalVisibleInfo(SeriesImpl.java:159)
      at io.keikai.model.impl.chart.SeriesImpl.isXValueFomulaHidden(SeriesImpl.java:460)
      at io.keikaiex.util.ChartsModelManager$CategoryModelSelector.toCharts(ChartsModelManager.java:251)
      at io.keikaiex.util.ChartsModelManager.getChartsModel(ChartsModelManager.java:58)
      at io.keikaiex.util.HighchartsHelper.drawCharts(HighchartsHelper.java:106)
      at io.keikaiex.ui.widget.ChartsWidget.initChart(ChartsWidget.java:138)
      at io.keikaiex.ui.widget.ChartsWidget.invalidate(ChartsWidget.java:128)
      at io.keikaiex.ui.widget.DefaultWidgetHandler.onLoadWidgetOnDemand(DefaultWidgetHandler.java:170)
      at io.keikaiex.ui.widget.DefaultWidgetHandler.onLoadOnDemand(DefaultWidgetHandler.java:150)
      at io.keikai.ui.SpreadsheetCtrlImpl.setLoadedRect(SpreadsheetCtrlImpl.java:200)
      at io.keikai.ui.au.in.BlockSyncCommand.process(BlockSyncCommand.java:74)
      at io.keikai.ui.Spreadsheet.service(Spreadsheet.java:3373)

      Expected Result

      no exception, the error value doesn't affect the chart rendering

      Debug Information

      • one cell in the data source is #N/A causes the error

      Workaround

      replace the error value with 0

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: