missing value in highcharts line graph results in no line, just points

前端 未结 2 1858
情话喂你
情话喂你 2021-01-01 18:11

please take a look at this:

http://jsfiddle.net/2rNzr/

var chart = new Highcharts.Chart({

    chart: {
        renderTo: \'container\'
    },

    x         


        
2条回答
  •  失恋的感觉
    2021-01-01 18:49

    It's not displaying incorrectly its just plotting a scatter plot. I thinks this is because you don't have a complete series it will be treated like that. I possible, and this depends that your data doesn't use negative number, try to put the collection of no data a 0 such that you have data: [29.9, 0, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] and this will display a line.

提交回复
热议问题