pond icon indicating copy to clipboard operation
pond copied to clipboard

Unexpected serialisation result of empty time series

Open katrotz opened this issue 6 years ago • 1 comments

Given an empty time series instance

const emptyTimeSeries = new TimeSeries({
    name: 'Empty time series',
    columns: [ 'time', 'data' ],
    points: []
});

I would expect to get the list of columns

// Expected [ 'data' ]
// Actual []
emptyTimeSeries.columns(); 

and would expect to get the series serialised

// Expected "{"name":"Empty time series","utc":true,"columns":["time","data"],"points":[]}"
// Actual undefined
emptyTimeSeries.toString();

katrotz avatar Jul 02 '18 11:07 katrotz

I am having the same issue. When this will be fixed?

pe7r avatar Mar 24 '21 11:03 pe7r