Hi guys i wan't to ask you about button how to make this queires for buttons yesterday last week etc and when i click to update the graph any idea how can i make that?
Wout Mahieu [SLC] [DevOps Catalyst] Answered question 18th October 2024
Hi Davor
I see that you are using a GQI query for your use case. You can configure this in a few steps:
- Add a line & area chart component and time range component to the dashboard.
- Create query that fetches the data of interest. This can use the built-in 'Get trend data' source or any ad hoc source. Make sure that the column that you want to use for the X-axis is a datetime column, otherwise the values will not be formatted as time.
- Add 2 filter nodes to the query, 1 should filter the start time & 1 the end time. The values of the filters can be linked to the 'to' & 'from' feeds from the time range component.
In the end, it will look like something this:
Wout Mahieu [SLC] [DevOps Catalyst] Edited answer 18th October 2024