Hello! I am trying to populate a time series chart using a dataset located in a custom view property. Looking at the time series chart section of the user manual, it looks like this is possible as long as the time column is the first column, which I have.
My time series chart says "component error" as soon as I bind the dataset to the series' data property:
Is anyone able to advise what I'm doing wrong? I have tried deleting and reinserting the time series chart component as well. Thanks!
Something to note is if you are in play mode you can hover over the information icon next to Component Error and it will give you the related error. Sometimes it does just say minified React error, but it can be helpful.
The left-justified data makes me suspect that they're all strings.
You need numbers!
Yes I noticed this. It is saying "data must be in chronological order" but as far as I can tell it is. I tried pre-sorting the data by time ascending and descending, but unfortunately this made no difference.
These are definitely floats, as they are direct queries from the DB.
Does the timeseries chart want date/time format rather than epoch timestamps maybe? I haven't worked in Perspective for a while now, but I would think that could be a possibility.
From the dataset editor, click the button to copy to clipboard. Paste here inside a "preformated text" style section.
Double-check: add an expression transform on the dataset to find the type of one of the elements. e.g.,
typeOf({value}[2, 2])