- Switch to Edit mode on your dashboard by clicking
Edit
on the top right of the command bar.
- Click
Clone tile
on theTop 5 Repos
tile to duplicate it.
- On the newly created tile, click
Edit tile
and update the query as follows:
// Let's see what Microsoft technologies have the most traction in GitHub
EventsAll
| where Repo.name has 'Microsoft'
| summarize TotalEvents = count() by RepoName=tolower(tostring(Repo.name))
| top 5 by TotalEvents
-
Click
Run
to see the results of this query. -
Every dashboard has a
Time range
picker by default. So far, we haven't used it in our queries. Update this query to work with theTime range
picker, by using the keywordsstartTime
andendTime
as follows:
// Let's see what other Microsoft technologies have the most traction in GitHub
EventsAll
| where Repo.name has 'Microsoft'
| where CreatedAt between (_startTime.._endTime)
| summarize TotalEvents = count() by RepoName=tostring(Repo.name)
| top 5 by TotalEvents
- Once you do this, you will see the
Time range
picker enabled:
Choose a different value to see the chart update.
-
Change the chart type to
Column
chart and name itTop Microsoft Technologies
. ClickDone
to exit the tile editing experience and go back to the dashboard. -
Move this new tile to the right of your previous tile, resize it to occupy all of the remaining width and save your dashboard.
- Use the
Time range
picker to have the column chart update accordingly.