score:3

Accepted answer

you can't have a null x value in highcharts.

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

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

score:0

you can also combine this lines:

 chart.addseries({
            name: 'usd to eur'
        });
    chart.series[0].setdata(data);

into

 chart.addseries({
    name: 'usd to eur',
    data:data,
    pointstart: date.utc(1990, 9, 27)
});

you can use pointstart, but will be better to get rid of null values.

http://jsfiddle.net/tt7dp/4/

score:1

why not filter out null/null pairs? if the data has no meaningful use why allow it to be sent to the chart?


Related Query

More Query from same tag