Skip To Content

Add pie charts

A pie chart is a circular chart divided into sections. Each section is proportional to the quantity it represents. A pie chart contains a single series of data points and is useful for visualizing part-to-whole relationships or data composition. Pie charts can be configured to visualize data as a traditional pie, doughnut, or rose chart. Pie charts are not intended for comparing individual sections with each other or representing exact values (use a serial chart instead). Pie charts are also not meant to show more than seven or eight data points. To add a pie chart to an analysis view, complete the following steps:

  1. Access edit mode for the analysis view to which you want to add a pie chart.
  2. Click Add element > Pie chart.

    The Select dataview dialog box appears with a list of dataviews.

  3. Click Create dataview or proceed to step 9 to use an existing dataview.

    The Create dataview dialog box appears.

  4. Provide a name for the dataview in the Name text box.
  5. Optionally, provide a description for the dataview in the Description text box.
  6. Use the expression builder to choose the type of data to display in the chart.

    For example, to build an expression that contains the number of open alerts for all components, do the following:

    1. Click Resource and choose Alerts.
    2. Next to Alerts, click Where.

      The where clause appears under Alerts.

    3. Under Alerts, click the Select a field drop-down arrow and choose Closed at.
    4. Click the operator drop-down arrow and change it from is on to never.
  7. Optionally, click Test to test the expression.

    Data that matches the expression appears on the tabs next to the expression.

  8. Click Create dataview.

    The dataview appears in the Dataviews list and is automatically selected.

    Tip:

    To duplicate a dataview and use it as a base for similar types of data, click More options and click Duplicate Duplicate. To edit a dataview, click More options and click Edit Edit. To delete a dataview, click More options and click Delete Delete.

  9. Choose an expression from the list and click Select.

    The Pie chart dialog box appears.

  10. Optionally, click Filter to create a query to filter the data returned by the dataview.
  11. Click the Category field drop-down arrow and choose the field to use for the category.

    For example, to group open alerts by their status, choose Status.

    Tip:

    Click the tabs under the chart preview to view the data returned by the expression.

  12. Click the Statistic type drop-down arrow and choose the type of statistic to show in the chart.

    For example, to show the total number of open alerts for all components, choose Count.

  13. Click the Statistic field drop-down arrow and choose the field that contains the data to evaluate using the chosen Statistic type setting.

    For example, to show the total number of open alerts for all components, choose ID.

  14. Optionally, click Date filter and choose a date field from the Date filter field drop-down menu to allow the chart to be filtered by the analysis view's time range options.

    If the field you chose for Category field is a datetime field, date filtering is automatically enabled.

    Tip:

    To turn off date filtering, click Remove Remove.

  15. Click Chart on the side of the dialog box.

    The Chart tab appears.

  16. Choose a chart type next to Type.

    The chart preview is updated to match the chosen chart options.

  17. Optionally, use the Gap slider to adjust the gap between the sections of the chart.
  18. Optionally, turn on the Labels toggle button to add labels to the chart.
  19. Optionally, turn on the Legend toggle button to add a legend to the chart, and choose a Position setting.
    Tip:

    The legend can also be used to hide a data series in the chart or to show a data series that was hidden.

  20. Click General on the side of the dialog box.

    The General tab appears.

  21. Optionally, provide a title for the chart in the Title text box.
  22. Optionally, provide a description for the chart in the Description text box.
  23. Click Done.

    The chart appears in the analysis view.

  24. Optionally, hover over the chart and use the buttons to perform the following actions:
    • Hover over a chart and drag Move Move to move the chart to a new location in the analysis view.
    • Click Configure Configure to edit the chart.
    • Click Duplicate Duplicate to duplicate the chart.
    • Click Delete Delete to delete the chart.
    • Drag Resize Resize to change the size of the chart.
  25. When you finish adding elements to the analysis view, click Save.
    Tip:

    You can also click the Save drop-down arrow and click Save as to save the analysis view with a new name and description.

Related topics