Pie chart
This section explains how to create pie chart dashboard elements and add them to your dashboard.
Pie charts can illustrate the distribution of different types of event data. Each slice represents the proportion of a specific value relative to the total. For example, a pie chart shows the proportion of HTTP requests that use each method, such as GET or POST.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Send data to your Axiom dataset.
- Create an empty dashboard.
Create a dashboard element
- In the sidebar, click Dashboards and open the dashboard to which you want to add the pie chart.
- Click Edit dashboard.
- Click Add element in the top right corner.
- Select Pie from the Add element menu (under Chart > Chart aggregation or Data).
- Choose one of the following:
- Click Builder to create your chart using a visual query builder. For more information, see Create chart using visual query builder.
- Click Editor to create your chart using the Axiom Processing Language (APL). Create a chart in the same way you create a chart in the Editor.
- Optional: Configure the dashboard element.
- Click Save.
The new element appears in your dashboard. In the page header, click Save dashboard to save your changes to the dashboard.
Example with Builder
Select sample-http-logs, add the count aggregation, and group by method. Each slice shows the request count for one HTTP method.

Example with APL
APL
