You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to show missing data when charting multiple lines dynamically
I have time series data returned from my backend. In my app the user can select x amount of devices to chart (restricted to five right now). Therefore, I need to chart a dynamic number of lines on one CartesianChart. I have figured out a way to do this and get the chart press state y value for each one. However, I have found that when there is missing data in one of the data arrays, it looks like there is no missing data until you inspect the timestamps (y values). As you may notice in my example below I have started to work on this by padding the start but this does not really help. It only accounts for if there is missing data right at the beginning of the data.
I am wondering how I would show a break in 1 or more of the lines and still get the results I am looking for?
Uh oh!
There was an error while loading. Please reload this page.
How to show missing data when charting multiple lines dynamically
I have time series data returned from my backend. In my app the user can select x amount of devices to chart (restricted to five right now). Therefore, I need to chart a dynamic number of lines on one CartesianChart. I have figured out a way to do this and get the chart press state y value for each one. However, I have found that when there is missing data in one of the data arrays, it looks like there is no missing data until you inspect the timestamps (y values). As you may notice in my example below I have started to work on this by padding the start but this does not really help. It only accounts for if there is missing data right at the beginning of the data.
I am wondering how I would show a break in 1 or more of the lines and still get the results I am looking for?
The text was updated successfully, but these errors were encountered: