title | titleSuffix | description | ms.prod | ms.technology | ms.assetid | ms.manager | ms.author | author | ms.topic | monikerRange | ms.date |
---|---|---|---|---|---|---|---|---|---|---|---|
Example of an Analytics Widget |
Azure DevOps |
Describes the data entities and relationships provided by the Analytics service for Azure DevOps |
devops |
devops-analytics |
37253E50-28D5-4AA9-B0E1-9D09D951739F |
jillfra |
kaelli |
KathrynEE |
sample |
>= azure-devops-2019 |
04/05/2019 |
[!INCLUDE temp]
You can build your own Analytics widget to display in a Dashboard in Azure DevOps. The example widget on github demonstrates the following:
[!div class="checklist"]
- How to render trend lines associated with work item states
- How to query a dataset, whe a user will configure through the widget configuration view
- How to build and publish the widget to the Azure DevOps marketplace With this information, you'll be able to create your own Analytics widget.
[!INCLUDE temp]
This example provides a ready-made widget, covering basics from topics in Dashboards, Charting and Analytics. The following documents provide more grounding on details demonstrated in this example: 0. Create an Azure DevOps Widget Extension, reference the Widget extensions sample 0. Render an Azure DevOps Chart Control, reference Add a Chart 0. Query OData from Analytics
- Run simple analytics queries required by UI controls used for configuring a view.
- Manage state of configuration UI, with updates based on user actions, and with new data from Analytics queries.
- Render configuration UI using Typescript and React.
- Run a user configured query as a POST Request
- Interpret data from analytics to render a chart
To avoid excess complexity in the sample, we omitted certain technologies and practices, which a production widget should certainly include. The ui-fabric-react sample on github highlights a build process which exercises these details. 0. Javascript bundling and content minification - The set of small, loose script files in the sample can load much more quickly when consolidate into a single file, and minified. 0. Fabric UI Controls - Fabric UI controls provide a rich set of configuration UI components for React.