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

Look Ahead setting for graph widgets to show future data #146

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MrTimbones
Copy link
Contributor

@MrTimbones MrTimbones commented Sep 28, 2024

This enhancement adds a "look ahead" setting to graph widgets so that they can show data in the future, for data that's collected from forecasts.

image

For example: outdoor temperature, with actual vs forecast temperature, set to 24 hours with a 12 hour look ahead. Whenever this graph loads or refreshes, the current time will be in the middle. By chance, zooming out will keep centred on the current time.

image

Another useful example is to plot the upcoming Agile price:

image

...and solar power forecasts:

image

This supersedes PR 143 that also added auto-refresh and has been included into this one

@TrystanLea
Copy link
Member

Hello Tim, I think this option should ideally be saved in the saved graph object. Rather than added in as an external parameter. E.g alongside the floatingtime paramater which is probably the best example of such a parameter?

@MrTimbones
Copy link
Contributor Author

MrTimbones commented Sep 30, 2024

Maybe. I wasn't sure that this would be useful outside of dashboards.

The Graph page doesn't have a use-editable field for floatingtime, it's just set magically based on wherever the user happens to save it. Would it be sensible to automagically set the lookahead if chart is scrolled into the future when saved?

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

Successfully merging this pull request may close these issues.

2 participants