Pie Chart
A pie chart is a widget on Datadog dashboards that divides a single value into the proportion for each category and shows it as slices. You choose it when you want to show each service's or environment's share of a count, leaving out change over time.
Overview
A pie chart is a component that conveys the breakdown of a whole in a single view, such as which services error counts are concentrated in, or which environments log volume comes from. It suits situations where you want to show at a glance how a breakdown is skewed, in an incident retrospective or a regular meeting. Conversely, if you put an average value into it, nobody can explain what the size of each slice represents. Besides the pie chart, components that show a breakdown include the top list and the treemap, and the dividing line for choosing between them is whether the values you put in add up to the whole.
A component that shows the proportion of the whole as slices
A pie chart is a widget that divides the result of a query into the proportion for each category and shows it by the size of the slices. As a data source you can choose not only metrics but also queries on events such as logs, and you can also modify values with formulas (as of October 2026; Source: Pie Chart Widget). In API and JSON definitions, the name of the widget type is sunburst, spelled differently from the name on the screen. Examples of components whose type name differs from the screen, and the overall approach to choosing components, are summarized in the Widget term.
Does it become a single circle or nested rings?
The shape is decided by the number of data groupings you put in. With one, it becomes a single circle lining up the proportion of each category; with several, it is drawn as rings with nested proportions (as of October 2026; Source: Pie Chart Widget). What creates the categories is the query's Group By; split by service and you get a slice for each service. With nested rings, clicking a category on an outer ring switches to the proportions within that category only. Clicking the center of the circle returns to the original view. If you limit the number of groups returned by a log or event query, the values outside that limit do not appear as slices. Read what share of the whole the proportions represent together with how you limited them.
The legend, the total in the center, and when to switch to a treemap
What you can choose for the appearance of a pie chart is the total in the center, the legend, and links that take you to other screens.
| Item | Available forms | Default behavior |
|---|---|---|
| Total in the center | Show / hide | Shown once the component reaches a certain size |
| Legend | None / Aside (directly on the slices) / Table (a list of values, colors, and proportions) | Aside with names on dashboards; both Aside and Table in full screen |
| Context links | Enabled / disabled | Enabled |
Aliases for categories are held in the API definition with alias for each formula, and the color set with palette in style. Nested proportions can also be drawn with a treemap. The difference is whether it divides with slices or with nested rectangles. The only appearance setting listed in the official treemap documentation is Context links; the legend and center total items are on the pie chart side (as of October 2026; Source: Treemap Widget). If you want readers to read the total and a list of values together with the proportions, the pie chart fits.
Do not turn values that do not add up to a whole into slices
This is not a statement from the official documentation but the author's own framing. The size of the slices carries meaning for values where adding up the categories gives the whole. Request counts, error counts, and log counts take this form, and the size of a slice is directly its share of the whole. Conversely, average response time, CPU utilization, and Percentile values do not give the overall value when you add up the categories. Make them a pie, and nobody can explain what a large slice is the size of. The difference between counts and averages can be told apart from Metric Types. One more point: a pie chart folds the time range into a single value, so you cannot see how something grew or sudden changes. Place the chart that tracks when a skew began separately, as a time series graph.
Tell apart in the edit screen whether the pie holds counts or averages
Open a pie chart on your own dashboard in the edit screen, and check whether the aggregation field of the query is a count or an average. In a component that stays with counts, the size of the slices directly represents the shares. For a component that had an average or a percentile in it, one option is to move it to a Top List, which lines up tag values in descending or ascending order of value (as of October 2026; Source: Top List Widget). For a component that uses nested rings, also click an outer category to open the proportions inside it, and see whether that depth is enough for the breakdown you want to know. If it is not, there are cases where reducing the categories and going back to a single circle reads more easily than adding a Group By tag.