Unexpected serialisation result of empty time series
Open
- Dominant language
- TypeScript
- Stars
- 211
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
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();
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.