Skip to main content

Pie Chart

Overview

pie_chart

Pie Chart - A type of data visualization represented as a circle divided into sectors. Each sector represents a share or percentage of the total data. This type of chart is widely used to illustrate the relative shares of different categories in the total amount of data, allowing you to quickly visualize how the parts make up the whole.

Settings

General

In the General tab, you can set the following parameters:

SettingDescriptionJSON-field
Enable OtherA switch that groups data that is less than a specified threshold into a separate categoryoptions.general.checkedOther
Other percent thresholdA slider that specifies the percentage of the total data that defines the threshold of the Other sectionoptions.general.threshold
Enable labelA switch that allows you to display the name of the pie chart specified in the Label text parameteroptions.general.checkedLabel
Label textField for specifying the name of the pie chartoptions.general.textField
Donut chartA switch that changes the view of the diagram to the donutoptions.general.checkedDonut
Show percent value in slicesA switch that allows you to enable or disable the percentage display of the ratio of each sectionoptions.general.checkedSlicePercent
Show count value in slicesA switch that allows you to enable or disable the display of the real data quantityoptions.general.checkedSliceCount
Truncate textA switch that allows you to enable or disable text trimming, in case the text is too longoptions.general.truncateText

Search Anywhere Framework general settings window:

Color

In the Color tab you can specify the color scheme for the pie chart. After clicking the Add new rule button, you can specify the desired Series and its Color.

The color setting has the following form:

Theme

In the Theme tab, you can select one of the prepared color scheme options. By default, the Smart Monitor theme is selected. The general list of themes is shown below:

  • Smart Monitor
  • Material
  • Dataviz
  • Kelly's
  • Frozen
  • Moonrise Kingdom
  • Spirited Away
  • Amcharts

Pie Chart creation

Creation of a pie chart is possible by applying statistical commands such as: stats, aggs and others. In this case, a table with the corresponding statistics will be returned.

For example, the query is:

source windows_events
| aggs count by event.code

will return the following result:

aggs_results

After that, by going to the Visualization tab, you can select the Pie Chart visualization type and add it to the desired dashboard by clicking the Add to dashboard button.

visualization