Highcharts / Highstock step line with gaps?

你离开我真会死。 提交于 2019-12-11 02:32:13

问题


Is it possible to have a step line with gaps? I'm talking about the square wave kind of line (step line) that would have gaps?

This kind of line (at least in my case) is drawn from such a dataset that has the start time and the new value (level) as one data point. For example can I set NULL to be a level to achieve gaps in the line?


回答1:


Yes, it's possible. Just add null point when you need a gap. Just like this: http://jsfiddle.net/mCLpr/

    series: [{
        data: [1,2,3,4,null,6,7,null,9],
        step: 'right',
        name: 'Right'
    }]


来源:https://stackoverflow.com/questions/23243386/highcharts-highstock-step-line-with-gaps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!