datasets not starting at the beginning of a graph

this patch allows to handle data sets either not starting at the first label or not ending at the last label (in this case a null or undefined has to be added to the data array)