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

Continue drawing line from most recent data to chart edge? #157

Open
swemoney opened this issue Mar 4, 2022 · 0 comments
Open

Continue drawing line from most recent data to chart edge? #157

swemoney opened this issue Mar 4, 2022 · 0 comments

Comments

@swemoney
Copy link

swemoney commented Mar 4, 2022

If I have data that isn't updated in regular intervals (a heart rate for instance), is there a way to make the chart continue to draw a straight line to the edge of the graph and then replace it when new data arrives? Right now, if I try this I just have a huge gap from the last point on the graph until a new piece of data comes through. If my heart rate stays fairly stable, it could be 5-20 seconds before my watch sends an update. Currently, the way I'm working around it is just pushing the old heart rate into the data at each 1 second interval onRefresh but then when the rate moves, the line jumps from the 1 seconds ago point straight to the new heart rate. I think it looks better when you have the line sloping from the last different data point that was different instead.

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

1 participant