Skip to content
Snippets Groups Projects
Unverified Commit 121be9ad authored by Jeff Bruemmer's avatar Jeff Bruemmer Committed by GitHub
Browse files

docs - events and timelines (#21527)

parent 4860eee2
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@
- [Basic exploration](./users-guide/03-basic-exploration.md)
- [Sharing and organizing your saved questions](./users-guide/06-sharing-answers.md)
- [Collections](./users-guide/collections.md)
- [Events and timelines](./users-guide/events-and-timelines.md)
## People and groups
......
......@@ -58,6 +58,10 @@ You can also archive _collections_ if you have curate permissions for the collec
If you have second thoughts and want to bring an archived item back, you can see all your archived questions from the archive; click the menu icon in the top-right of any collection page to get to the archive. To unarchive a question, hover over it and click the unarchive icon that appears on the far right.
## Events and timelines
You can add events to collections, and organize those events into timelines. See [Events and timelines](events-and-timelines.md).
## Next: creating dashboards
Next, we'll learn about [creating dashboards and adding questions to them][dashboards].
......
# Events and timelines
A lot of discussions around data have a moment when someone asks a question related to a specific point in time: "Wait, what's the spike in March again?", or "When did the new widget launch?"
Events and timelines are a way to capture that chronological knowledge and make it available when you need it, in context (that is, when you're viewing a chart). Events are a great way to store institutional knowledge about what happened and when, so people (including yourself three months from now) won't have to figure out (again) why the line chart spiked back in March.
Anyone with [view or curate access](../administration-guide/06-collections.md) to a collection can add events and timelines to that collection.
## Events
An event is basically a date + a title + a description + an icon. You can add events to Metabase to show important milestones, launches, or anything else, right alongside your data.
## Timelines
You can group events into timelines, and associate those timelines with [collections](collections.md). For example, you may want to have a timeline that contains important email or sales dates, or an outages timeline that tracks downtime. You can move events between timelines, and move timelines from collection to collection.
Collections can have timelines, and timelines can contain events. In practice what this means is that events you've added to a timeline will show up on time series questions stored in the same collection as that timeline. Events are invisible on dashboards
### Adding events when viewing a collection
When viewing a [collection](collections.md), you can view, add, or edit events by clicking on the calendar icon in the upper right.
![In a collection, view or add events by clicking on the calendar icon](./images/events-and-timelines/event-calendar.png)
Once you create an event, the event will show up in charts in the collection, provided:
- the date of the event falls within the chart's time range, and
- the timeline is visible (more on that [below](#adding-events-when-viewing-a-question))
You'll see an icon along the x-axis that plots the event. A vertical line will extend from the event to show when the data plotted on the chart intersects with the event.
![An event on a chart](./images/events-and-timelines/example-event.png)
### Adding events when viewing a question
If your question is a time series, you can click on the **Calendar** in the bottom right of the question, and Metabase will open the timeline sidebar. Metabase will list any timelines and their events that fall in the range of your time series. You can:
- Toggle timeline visibility (including timelines from other collections)
- Add a new event (even if you haven't saved the question yet).
- Edit, move, or archive an event.
## Archiving and deleting
### Archiving events
You can archive both events and timelines to get them out of the way, or unarchive them to resurrect them.
To archive an event, click on the **...** next to the event and select **Archive event**.
To view archived events, navigate to the relevant collection and click on the **Calendar** icon, then the **...** menu to **View archived events**.
### Archiving timelines
To archive a timeline, click on the **...** next to the timeline and select **Edit timeline details**. Metabase will pop up an edit modal; click on **Archive timeline and all events**.
To resurrect an archived timeline, click on the **Calendar** icon in the relevant collection, then click on the **...** menu. Next to the timeline you want to unarchive, click on the **...** menu and select **Unarchive timeline**.
To permanently delete an event or timeline, you must first archive the event or timeline. Then you can delete the archived events from the **View archived events** modal, or timelines from the **View archived timelines** modal.
## Disabling events for a question
If a collection includes timelines, those events will show up for any time series in that collection (provided the timeline and the question's date range overlap). If you want to disable the visibility of events by default for a particular question, you'll need to move that question to a collection that doesn't have any timelines or events.
# Events and timelines
A lot of discussions around data have a moment when someone asks a question related to a specific point in time: "Wait, what's the spike in March again?", or "When did the new widget launch?"
Events and timelines are a way to capture that chronological knowledge and make it available when you need it, in context (that is, when you're viewing a chart). Events are a great way to store institutional knowledge about what happened and when, so people (including yourself three months from now) won't have to figure out (again) why the line chart spiked back in March.
## Events
Events are basically dates + a title + a description + an icon. You can add events to Metabase to show important milestones, launches, or anything else, right alongside your data.
## Timelines
You can group events into timelines, and associate those timelines with [collections](collections.md). For example, you may want to have a timeline that contains important email or sales dates, or an outages timeline that tracks downtime. You can move events between timelines, and move timelines from collection to collection.
Collections can have timelines, and timelines can contain events. When we say, "collections have timelines", in practice what this means is that when you view a time series question in that collection, you'll see events from all the collection's timelines plotted on its chart. Events are invisible on dashboards.
### Adding events when viewing a collection
When viewing a [collection](collections.md), you can view, add, or edit events by clicking on the **calendar** icon in the upper right.
![In a collection, view or add events by clicking on the calendar icon](./images/events-and-timelines/event-calendar.png)
Once you create an event, the event will show up in charts in the collection, provided:
- the date of the event falls within the chart's time range, and
- the timeline is visible (more on that [below](#adding-events-when-viewing-a-question))
You'll see an icon along the x-axis that plots the event. A vertical line will extend from the event to show when the data plotted on the chart intersects with the event.
![An event on a chart](./images/events-and-timelines/example-event.png)
### Adding events when viewing a question
If your question is a time series, you can click on the **Calendar** in the bottom right of the question, and Metabase will open the timeline sidebar. Metabase will list any timelines and their events that fall in the range of your time series. You can:
- Toggle timeline visibility (including timelines from other collections)
- Add a new event (even if you haven't saved the question yet).
- Edit, move, or archive an event.
## Archiving and deleting
### Archiving events
You can archive both events and timelines to get them out of the way, or unarchive them to resurrect them.
To archive an event, click on the **...** next to the event and select **Archive event**.
To view archived events, navigate to the relevant collection and click on the **Calendar** icon, then the **...** menu to **View archived events**.
### Archiving timelines
To archive a timeline, click on the **...** next to the timeline and select **Edit timeline details**. Metabase will pop up an edit modal; click on **Archive timeline and all events**.
To resurrect an archived timeline, click on the **Calendar** icon in the relevant collection, then click on the **...** menu. Next to the timeline you want to unarchive, click on the **...** menu and select **Unarchive timeline**.
To permanently delete an event or timeline, you must first archive the event or timeline. Then you can delete the archived events from the **View archived events** modal, or timelines from the **View archived timelines** modal.
## Disabling events for a question
If a collection includes timelines, those events will show up for any time series in that collection (provided the timeline and the question's date range overlap). If you want to disable the visibility of events by default for a particular question, you'll need to move that question to a collection that doesn't have any timelines or events.
docs/users-guide/images/events-and-timelines/event-calendar.png

41.1 KiB

docs/users-guide/images/events-and-timelines/example-event.png

141 KiB

......@@ -20,6 +20,7 @@
- [Sharing and organizing your saved questions](06-sharing-answers.md)
- [Collections](collections.md)
- [Events and timelines](events-and-timelines.md)
## Dashboards
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment