TimeSeriesChart and datasets

Hello folks,

Why is it that the series property of the TimeSeriesChart shows an error when bound to a dataset, even though it works just fine ?
It’s not a huge deal breaker, but I really don’t like that red triangle. And I’m way too lazy to transform that dataset into a json when there’s no need to do it.

The component is throwing the error because ‘series’ is meant to be an array of objects. Each object within the array expects a ‘data’ and ‘name’ property. This doesn’t require any transformation you can just rebuild property and move the binding down to the ‘data’ property.

For example:
image

1 Like

Thanks.
I’m a bit confused as to why it receives something that it’s not expecting but still does exactly what you would expect.

1 Like