I have some data that was taken every minute. But there are irregular gaps in it. I'm using stockchart (v6.0.5) with the 'line' chart type and my xAxis is 'datetime'. I want that the gaps don't cut the xAxis in pieces but rather reflect the time that has passed as in http://jsfiddle.net/VwkHu/177/ . I don't really want to fill in Null values in my dataset as the gaps can be large. How can I get this behavior with stockchart?
BTW: If I change in the upper mentioned fiddle to stock chart by adding StockChart the following way
...
$('#container').highcharts('StockChart',{
...
then the gaps don't reflect the size of the actual gap in the data but are constant or equal the gapsize.
Using highstock, you need to set
ordinal: false
to keep missing times in the chart.Like this:
Working JSFiddle example: http://jsfiddle.net/ewolden/VwkHu/183/