Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected serialisation result of empty time series #122

Open
katrotz opened this issue Jul 2, 2018 · 1 comment
Open

Unexpected serialisation result of empty time series #122

katrotz opened this issue Jul 2, 2018 · 1 comment

Comments

@katrotz
Copy link

katrotz commented Jul 2, 2018

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();
@pe7r
Copy link

pe7r commented Mar 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants