Pie/Donut Chart Widget

Last modified on 2022/05/28 10:53

Apps - Widget - Pie Donut Chart icon.png This type of widget belongs to the Dashboard category in the widget library. It enables you to view, for a given measure, the quantity or portion of each dimension element compared with all of the other elements (100%) in a pie or donut chart. Values are usually in percentages.

Pie charts and donut charts are exactly the same. The only difference is that the interior of a donut chart is empty.

Notes

   Open url.png  See General information on widgets

  • As a general rule, a data source contains one Dimension column and one or more Measure columns. See Standard data source structure.
  • This chart can process one measure only.
    • If the data source contains several measures, you should select the one you want using the Data Transformer. If you do not do so, then the first measure will automatically be processed.
  • In execute mode, the legend displayed at the top right of the chart is a dynamic data filter (Chart Label -/- Legend > Legend). Infotips appear when you move the mouse over each segment.

Best Practice big icon.pngBest practice

  • Use the Pie/Donut Chart widget to view the quantity of each element or to highlight one element as compared with the whole. 
  • When the number of dimension elements is large and must be displayed in a limited space, you should use the Bar Chart widget.
Best Practice icon.png   Bar Chart widget Pie/Donut Chart widget
EVApps - widgets Bar Chart and PieDonut - Best practice On.png EVApps - widgets Bar Chart and PieDonut - Best practice Off.png

Example

You want to display the percentage of incidents per employee (measure) by department (dimension with 3 elements: Sales, Marketing and Administration) in a donut chart.

Data source Pie/Donut Chart widget

Note: The data source contains several measures. You select the measure you want (number of incidents per employee) using the Data Transformer.

EVApps - widget PieDonut - Example DataSource.png

Download Zip icon.png Download Example (CSV file)

EVApps - widget PieDonut - Example Chart.png

List of properties

Content

DataSource

Data Source: External data source associated with the widget. 

  • The drop-down list displays all of the data sources available in the app. 
  • To modify the data source or to view its contents, you should click Apps - Edit icon.png. The Apps - datasources Properties - Preview button.png button below the Preview property shows the number of rows (max. 15) and columns extracted.
  • To define a new data source, click Apps - Add datasource icon.png Add Data Source in the Objects pane.
DataTransformer

Data Transformer: Used to define the structure and scope of the data source, apply statistical aggregate functions and modify the order of the measures displayed.

  • Click Setup / Preview Data below the Data Transformer property to open the dedicated window. Open url.png See the description.
EnableDrilldown

Enable Drilldown (Note: Only for an EasyVista data source data source using a view with grouping levels): Used to indicate if data is aggregated (box is checked - the drill-down functionality is enabled) or not (box is not checked).

example   Breadcrumbs widget: Breakdown of equipment by location.

Best Practice icon.png  

  • If you want the widget to display the breakdown in a grouping level, you should not check this box.
  • Add a Breadcrumb widget to facilitate navigation within grouping levels.

Data

FirstRowContainsDimensionElements

First Row Contains Dimension Elements: Used to specify the structure of the data source by indicating if dimension elements are found in the first column (box is not checked: standard data source structure) or in the first row (box is checked). Note: This property does not affect the behavior of the Data Transformer.

SortByValueDescending

Sort By Value Descending: Used to sort dimension elements in descending order (if the box is checked, from highest to lowest value) or in the order in which they are read in the data source (box is not checked). Note: The order applied is determined by the dimension elements of the first measure in the data source.

: Charts for incidents and requests per employee

The data source contains the Department dimension with three elements. Sort By Value Descending - Example - Datasource.png

Box is checked Box is not checked

Sort By Value Descending - Example - Sort value - On.png

The dimension elements of each measure are sorted in descending order.

Sort By Value Descending - Example - Sort value - Off.png

The dimension elements of each measure are displayed according to the sort order of the data source.

MaximumNumberOfData

Maximum Number Of Data: Used to indicate the maximum number of dimension elements to be loaded from the data source for each measure selected in the data source.

Best Practice icon.png  You should use this property to prevent loss of performance when data volume is large.

  • The count is always performed from the first dimension element.
  • When the number of dimension elements to be loaded is greater than the number of dimension elements in the data source, all of the data is loaded.
  • To view the data source, click Apps - Edit icon.png next to the Data source property, then click Apps - datasources Properties - Preview button.png button below the Preview property which shows the number of measures and the number of dimension elements for each measure.

: Charts for incidents and requests per employee

The data source contains the Department dimension with three elements. Sort By Value Descending - Example - Datasource.png

Maximum Number Of Data = 20 (default value) Maximum Number Of Displayed Data = 20 (default value)
Maximum Number Of Data = 2 Maximum Number Of Displayed Data = 20 (default value)
Maximum Number Of Data = 20 (default value) Maximum Number Of Displayed Data = 1

Sort By Value Descending - Example - Number Data - All.png

All dimension elements are loaded and displayed for each measure, i.e. the three departments.

Sort By Value Descending - Example - Number Data - Part.png

Only the first two dimension elements are loaded and displayed for each measure, i.e. the first two departments.

Sort By Value Descending - Example - Displayed Data - Part.png

All dimension elements are loaded but only the first element is displayed. This corresponds to the Sales department. The Others dimension element groups values from the Marketing and Administration departments.

MaximumNumberOfDisplayedData

Maximum Number Of Displayed Data: Used to indicate the maximum number of dimension elements to be displayed for each measure selected in the data source. This improves chart readability.

example   You want to display the chart for incidents and requests per employee. Open url.png See the Maximum Number Of Data field.

  • The count is always performed from the first dimension element.
  • When the number of dimension elements to be displayed is less than the number of dimension elements to be loaded, the Others dimension element will automatically be added to the chart. It will aggregate all of the values from non-displayed dimension elements.

Chart

Chart Type (Pie/Donut): Type of chart to be displayed.

Donut option Pie option

Circular chart whose interior is empty

EVApps - widget PieDonut - Pie Chart.png

Circular chart

EVApps - widget PieDonut - Donut Chart.png

ColorTheme

Color Theme: Color theme applied to the chart. This affects the color of Bar Chart widgets, Line Chart widgets and Pie/Donut Chart widgets as well as the color of the buttons for each legend.

  • The list is provided by EasyVista.
  • The number of theme colors is indicated next to the theme name, e.g. Brown (6), Default (12), EasyVista (7).

          Apps - widgets Dashboards - Color theme.png

MeasureAxisDataType

Measure Axis Data Type: Used to define the display of values in the axis and infotips. Note: The number format, e.g. comma or period for the decimal symbol, depends on the configuration settings of the platform used by the logged-in user. In Windows, this is specified in the Control Panel > Regional and Language Options.

  • Integer: Used to display whole numbers rounded up or down to the nearest unit.

    example   152200.10 ==> 152200

  • Float: Used to display values with 2 decimal places.

    example   152200 ==> 152200.00

  • Big Number: Used to display values converted to thousands (k), millions (m), billions (G) followed by the unit symbol. Numbers are rounded up or down to the nearest unit.

    example   152200 ==> 152k

Chart Label -/- Legend

ChartLabelLegendPieDonutChart

Properties of the legends.

Property Description Representation
Element Object to format EVApps - Graphic Properties - Chart Label Element Pie Donut Chart.png
(1) Label: Legend of the segments
(2) Legend: Legend displayed at the top right of the chart
Graphic properties of the selected object
PageGeneralFormat
Font Family (Inherit) Font of the text, selected via Select Font Graphic properties - General format.png
Size Font size, selected via the slide or specified directly in the field
Alignment (Inherit) Alignment of the text (Left/Center/Right/Justified)
Style (Inherit) Font style of the text Bold/Italic/Underline)
Background Color (Inherit) Background color of the widget
Text Color (Inherit) Color of the text displayed by the widget

Note: Priority is given to the font and color defined using the text editor

Legend

Legend: Used to indicate if the chart legend should be displayed (box is checked) or not (box is not checked).
         Apps - widgets Advanced Dashboards - Common display legend.png

  • Each legend is made up of the name of the dimension element preceded by a button.
  • The color of the buttons is defined by the color palette applied to the chart (Common > Color Palette property).
  • Define the position of the legend using the Layout, Position, Horizontal and Vertical properties.

   Depending on the selected options, the chart will automatically be resized to allow legends to be fully displayed.

Best Practice icon.png  The legend can be used as a dynamic data filter in execute mode. When you click a button or name, you can display or hide the corresponding values in the chart.

Display/Hide Labels: Used to indicate if the data labels should be displayed (box is checked) or hidden (box is not checked). Note: If required, use the Labels Outside property to define the position of the labels.

Color of Arc Text: Used to indicate if the data labels are displayed in a specific color (box is checked) or in black (box is not checked).

Label Type: Used to define the content of the data labels. Note: Use the Labels Outside property to define the position of the labels.

  • Value: Used to display the value of the dimension element.
  • Label: Used to display the name of the dimension element.
  • Percent: Used to display the value of the dimension element as a percentage.
  • Label and Percent: Used to display the name of the dimension element and its value as a percentage.

Labels Outside: Used to indicate if the data labels are displayed inside each segment (box is checked) or outside each segment (box is not checked).

Box is checked Box is not checked
EVApps - widget PieDonut - Label inside.png EVApps - widget PieDonut - Label outside.png

Label Threshold: When the value of a dimension element exceeds the threshold, its data label will be displayed. Note: The threshold applies to the display unit of labels defined in the Label Type property.
         Example documentation icon EN.png  Threshold = 0.15; Display percentage  ==>  Only data labels whose percentage value exceeds 15% will be displayed.

Theme

     Open url.png  See List of properties

Tags:
Powered by XWiki © EasyVista 2022