Document toolboxDocument toolbox

.Pie chart widgets vv7.0.8

These are useful when you need to do a part-to-whole data analysis and have only a small number of categories to compare. The pie chart is a statistical graph intended to plot numerical proportions. The pie is divided into slices representing the proportion of each value in a data series.

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

query(
from demo.ecommerce.data
group every 5m 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 required 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 pie chart:

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

Tips for using a pie chart widget

Here are a few tips to get the most out of your pie chart:

  • Move your mouse over any slice of the pie to display a tooltip that contains detailed information.
  • Click the value of any slice in the chart legend to hide or show that slice.
  • To emphasize an individual slice of a pie chart, you can pull it away from the chart by clicking it. Click the slice again to move it back to its original location.