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

Adjust the sequencing mode (window, cumulative) #7

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Nov 15, 2021

Note: The wording of this description has been adjusted after 62541a9. Please note this reflects the current state, but does not match this patch.

The new scenario parameter mode can have one of two values:

  • window will slide a window through the defined time range
  • cumulative will use a fixed start time and stepwise expand the end time

While window was hardcoded beforehand, you can now also use cumulative. It is a suitable flavor when aiming to demonstrate the progress of a timeseries starting at a fixed point in time.

Example:

grafanimate --grafana-url=https://play.grafana.org/ --dashboard-uid=000000012 --scenario=playdemo

https://github.com/panodata/grafanimate/blob/7efec10c2eccf26557bfcc25b38dbc311bccf086/grafanimate/scenarios.py#L38-L49

/cc @wetterfrosch

- "window" will slide a window through the defined time range
- "expand" will use a fixed start time and stepwise expand the end time

The default value is "window".
@amotl amotl merged commit 790dbe0 into main Nov 15, 2021
@amotl amotl deleted the navigation-flavor branch November 15, 2021 22:14
@amotl amotl changed the title Add possibility to control the navigation flavor (window, expand) Adjust the navigation flavor (window, expand) Nov 16, 2021
@amotl amotl changed the title Adjust the navigation flavor (window, expand) Adjust the sequencing flavor (window, expand) Nov 16, 2021
@amotl amotl changed the title Adjust the sequencing flavor (window, expand) Adjust the sequencing mode (window, expand) Nov 16, 2021
@amotl amotl changed the title Adjust the sequencing mode (window, expand) Adjust the sequencing mode (window, cumulative) Nov 16, 2021
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.

None yet

1 participant