Creating a pie chart
Use a pie chart to represent numbers in percentages, or to visualize the parts of a relationship or a composition.
Before you begin
Procedure
- In the Views section of the widget, give the chart a name and select whether to show the title and the update status.
- Select Pie Chart.
- On the General tab, select a label and value.
- For offense data sources only, click More options, and select an
aggregation type for the value. The following list describes the available aggregation options:
Option Description No aggregation If the field is numerical, returns the sum of each unique label. First For each unique label, returns the first value of the selected field. Average For each unique label, returns the average of the selected field. Sum For each unique label, returns the sum of each value of the selected field. Count For each unique label, returns a row count of the selected field. Maximum For each unique label, returns the largest numeric value of the selected field. Minimum For each unique label, returns the smallest numeric value of the selected field. - Set Doughnut Chart to On to give the chart an open center.
- Set Show Legend to Yes and set the orientation.
- On the Format tab, select a text format and hover format for the labels.
- Optional: On the Drilldown tab, choose a drill down
action for when a slice is clicked in the pie chart. You can open a dashboard, a URL, or a panel.
- If you chose to open a dashboard, select the dashboard to open, optionally select
dashboard parameter values, and choose whether to open it in the current window or in a new
window.
If you set parameters, they are passed to the target dashboard based on the slice that was clicked in the pie chart. For example, if you set an ID parameter, the bar or segment ID is passed as a parameter to the target dashboard. If you set a dashboard parameter value to Default, no parameter value is passed to the target dashboard; the existing session or default parameter value is used or the parameter field is blank in the target dashboard Parameters card.
Tip: If you drill down to a different dashboard in the same window, you can use the breadcrumb trail to return to previous dashboards in the drill path. - If you chose to open a URL, specify an absolute path to open an external URL (for
example, https://www.ibm.com). Choose
whether to open the URL in the current window or in a new window. If you open an external URL in the
current window, it replaces the console.
You can define any number of parameters anywhere in the URL. Enclose parameters in braces ({}), then select a value for each parameter. For example,
https://exchange.xforce.ibmcloud.com/ip/{ip_address}
. - If you chose to open a panel, select the drill down column and enrichment type.
For example, if the selected drill down column represents a source IP address, then select Enriched IPv4 as the enrichment type, so the panel opens with the details and enrichment for this IP address.
- If you chose to open a dashboard, select the dashboard to open, optionally select
dashboard parameter values, and choose whether to open it in the current window or in a new
window.
-
Preview how the chart looks and then click Save.
Tip: The labels for the chart come from the queries that are used. If they are unintelligible in the preview, edit the labels in the View section.