Document toolboxDocument toolbox

.Donut chart widgets vv7.0.8

The donut chart is a variant of the pie chart and is also intended to plot numerical proportions. The donut has a cut-out center and is divided into slices representing the proportion of each value in a data series. Each slice shows its corresponding data-series value next to it.

Much like pie charts, donut charts are useful when you need to do a part-to-whole data analysis and have only a small number of categories to compare.

This is the source query used to generate the above widget:

query(

from demo.ecommerce.data

group every 0 by str(statusCode), method, protocol

select count() as count

)

What data do I need for this widget?

The source query must contain grouped events or aggregated values, which are used as data series. You can select the series in the widget's visual settings.

The source query must also contain one or more numeric values, used to determine the proportion of each slice. If there is more than one, you can select the necessary one in the widget's visual settings.

Widget settings

The widget settings are contained in the Data and Visual tabs. The settings in the Data tab are described in the Create a widget article.

These are the visual settings for the donut chart:

CategorySettingDescription
FieldsAggregationValue that determines the proportion of each slice of the donut. It must be a number.
SeriesSelect the data series that you want to display in the pie chart.

Tips for using a donut chart widget

Here are a few tips to get the most out of your donut chart.

  • Move your mouse over any slice of the donut to display a tooltip that contains detailed information.