highcharts - Navigator showing at 1970 when first point is null -


i've got data being loaded asynchronously client. time time, null time , value pairs received. if happens, navigator shows beginning @ 1970. i've tried setting initial point first timestamp in navigator series , problem persists, null in series being displayed.

is there solution can suggest or workaround?

here's code , a fiddle:

$(function() {     $('#container').highcharts('stockchart', {          chart: {         },          navigator: {             adapttoupdateddata: false,             series: {                 name: 'navigator'             }         },          rangeselector: {             enabled: false         },         series: [{             name: "billy"         }         ]     });      var data = [[null, null],                     [date.utc(1990,  9, 27), 10 ],                     [date.utc(1990, 10, 10), 20 ],                     [date.utc(1990, 10, 18), 30 ],                     [date.utc(1990, 11,  2), 40 ],                     [date.utc(1990, 11,  9), 50 ],                     [date.utc(1990, 11, 16), 60 ],                     [date.utc(1990, 11, 28), 50],                     [date.utc(1991,  0,  1), 40],                     [date.utc(1991,  0,  8), 30],                     [date.utc(1991,  0, 12), 20],                     [date.utc(1991,  0, 27), 10]]     var chart = $('#container').highcharts();     chart.series[0].setdata(data);     chart.xaxis[0].setextremes(chart.xaxis[0].min, chart.xaxis[0].max, true); }); 

you can't have null x value in highcharts.

if have no y data point, specify data (ie) [date.utc(1990, 9, 27), null]

a null x , null y gives nothing meaningful, don't know when null value (ie, problem) occurred.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -