Skip to main content

Pie chart

Pie chart is useful for reflecting numerical proportions. Conceptually, it is similar to a bar chart in that it represents categorical values. A pie chart shows the relative size of a given category (a slice of the pie) compared to the entire dataset (the whole pie).

Developers: To add the viewer from the console, use: grok.shell.tv.addViewer('Pie chart');

Controls:

Right clickContext menu
Alt+FShow in full screen
Segment clickSelect segment

Videos

Pie Chart

Properties

PropertyTypeDescription
General
Category Column Namestring
Segment Angle Column Namestring
Segment Angle Aggr Typestring
Segment Length Column Namestring
Segment Length Aggr Typestring
On ClickstringAction to be performed when you click on a pie
Start Anglenumber
Max Radiusnumber
Shiftnumber
Outline Line Widthnumber
Back Colornumber
Outline Colornumber
Mouse Over Outline Colornumber
Inner Label Colornumber
Missing Value Colornumber
Show LabelbooleanShow the label (text or image) inside the pie.
Show PercentagebooleanShow the percent value inside the pie.
Show ValuebooleanShow the number of values inside the pie.
Show Column Selectorboolean
Show Mouse Over Row GroupbooleanHighlight part of the pie that corresponds to the mouse-over rows
Show Selected RowsbooleanHighlight selected rows
Margin Leftnumber
Margin Topnumber
Margin Rightnumber
Margin Bottomnumber
Legend Visibilityvisibilitymode
Legend Positionflexautoposition
Row SourcestringDetermines the rows shown on the plot.
Allow Dynamic Menusboolean
Show Context MenubooleanProperties common for all viewers todo: use code generation
Titlestring
DescriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.
HelpstringHelp to be shown when user clicks on the ''?'' icon on top. Could either be in markdown, or a URL (starting with ''/'' or ''http'').
Description Positionflexposition
Description Visibility Modevisibilitymode
Data
Category MapstringCategory time unit map function (applicable to dates only).
Pie Sort Typestring
Pie Sort Orderstring
Include Nullsboolean
FilterstringFormula that filters out rows to show. Examples: ${AGE} > 20 or ${WEIGHT / 2)} > 100, ${SEVERITY} == ''Medium'', ${RACE}.endsWith(''sian'')
Tablestring
Style
Label Positionstring
Auto Layoutboolean
Controls FontstringViewer controls elements font.
Description
Show Titleboolean

See also: