Broken graphs (due to the JavaScript error) on the Project page

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: echarts-api-plugin
    • None

      Hi,

      I'm getting an "Uncaught SyntaxError: Unexpected token ?" JavaScript error from the "/static/012ea04e/plugin/echarts-api/js/trend-chart.js" file from this code:

       yAxis: [{
                      type: 'value',
                      min: chartModel.rangeMin ?? 'dataMin',
                      max: chartModel.rangeMax ?? 'dataMax',
                      axisLabel: {
                          color: textColor
                      },
                      minInterval: chartModel.integerRangeAxis ? 1 : null
                  }
       

      It's happening because of "Nullish coalescing operator" usage ("??"), which is only supported since Google Chrome 80 / Firefox 72.

            Assignee:
            Ulli Hafner
            Reporter:
            bfhzog6i
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: