wx-charts icon indicating copy to clipboard operation
wx-charts copied to clipboard

charts crash with [] empty array

Open dcsan opened this issue 6 years ago • 1 comments

大家好!大问题发现:

charts crash with empty array

    new wxCharts({
      canvasId: 'columnCanvas',
      type: 'column',
      categories: days,
      series: [{
        name: 'stars',
        // data: [15, 20, 45, 37, 4, 80]    // OK
        data: []   // crash 😢 
      }, ],
      yAxis: {
        format: function (val) {
          return val + ''
        }
      },
      width: 300,
      height: 160
    })

dcsan avatar Jun 26 '18 12:06 dcsan

有解决办法么?

pollux611 avatar Aug 12 '19 02:08 pollux611