Production Pie Chart

Sepasoft MES Module Suite

Pie Chart

A component that displays a pie chart with drill down capabilities. This extends from the Pie Chart Component that comes with Ignition.

Component Palette


Features

The Drill Down Options property allows custom menu items to be added. When the user clicks on a segment of the pie chart, the drill down menu will appear. When an item in the drill down menu is clicked on, the drillDown event is fired. Script in the drillDown event is responsible for updating the Data property to change the results shown in the pie chart. The drill down menu information is set through the Drill Down Options property. The Drill Down Options can be populated from the Analysis Controller, Analysis Selector, SQL Query, scripting, or it can be manually defined in the designer.

Production Pie Chart



Component Properties

Properties are provided that can be set to affect the operation and look of the component. They can be set through the Property Editor in the Designer or through scripting.

Example

Python
event.source.parent.getComponent('Production Pie Chart').selectionEnabled = True


Behavior

NameScriptingProperty TypeDescription
Tooltips?tooltipsBooleanShould tooltips be displayed when the mouse hovers over sections?
Selection Enabled?selectionEnabledBooleanIf true, the user will be able to select wedges on the chart. The selected wedge will be highlighted, and the selectedData property will reflect it.

Data

NameScriptingProperty TypeDescription
DatadataDatasetData driving the chart.
Drill Down OptionsdrillDownOptionsDatasetDataset with drill down options.
Previous Drill Down EnabledpreviousDrillDownEnabledbooleanIf true, show previous in drill down menu.
Extract OrderextractOrderint

Controls whether a pie plot views columns as pies or rows.

0 = By Column
1 = By Row

Data QualitydataQualityintThe data quality code for any tag bindings on this component.

Appearance

NameScriptingProperty TypeDescription
Chart TitletitleStringAn optional title that will appear at the top of the chart.
Plot BackgroundplotBackgroundColorBackground color for all plots, unless they override it.
Plot Border ColorplotBorderColorColorBorder color for the chart.
Shadow ColorshadowColorColorShadow color for the chart.
Section ColorssectionColorsColor[]Colors to use for the pie wedge fills.
Outline ColorsoutlineColorsColor[]Colors to use for the pie wedge outlines.
Outline StrokeoutlineStrokefloatWidth for the section outline stroke.
Legend?legendbooleanSet to True to display an item legend below the chart.
Labels?labelsbooleanSet to True to display labels near sections.
Label FormatlabelFormatStringFormatting String. '{0}' is the wedge name, '{1}' is the value, '{2}' is the percent.
Tooltip FormattooltipFormatStringFormatting String. '{0}' is the wedge name, '{1}' is the value, '{2}' is the percent.
Legend FontlegendFontFontFont for legend items, if there is a legend.
Label FontlabelFontFontFont for labels items, if there are labels.
Starting AnglestartAngleintStart angle to draw the pie wedges.
Enforce Circularity?circularbooleanIf true, the pie cannot be an oval, even if the overall chart is.
Radius PercentradiusdoubleAdjusts the size of the pie chart's radius.
Inset TopinsetTopdoubleAdjusts the plot border's top inset for the available drawing area.
Inset LeftinsetLeftdoubleAdjusts the plot border's left inset for the available drawing area.
Inset BottominsetBottomdoubleAdjusts the plot border's bottom inset for the available drawing area.
Inset RightinsetRightdoubleAdjusts the plot border's right inset for the available drawing area.
Stylestyleint

Style of pie chart.

0 = Pie
1 = 3D Pie
2 = Ring

3D?threeDimensionalbooleanDeprecated. Use Style property instead.
Foreground TransparencyforegroundAlphadoubleTransparency of the pie.
3D Depth FactordepthFactordoubleDepth of a 3D pie as a factor of the chart height.
Selection Highlight ColorselectionHighlightColorColorColor of the selection highlight.
Selection Highlight WidthselectionHighlightWidthfloatLine width of the selection highlight.

Event Handlers

Event handlers provide the ability to add custom script when a user interacts with a component such as by clicking a mouse, selecting a drill down menu or when a component property changes.

drillDown

drillDown

Is fired when drill down menu item is selected. Excludes the "Back" menu item.

PropertyDescription
.sourceThe component that fired this event.
.drillDownNameText of selected drill down option menu item.
.categoryValue of first column for the selected row.

back

PropertyDescription
.sourceThe component that fired this event.
.drillDownNameText of selected drill down option menu item.
.categoryValue of first column for the selected row.

Extension Functions

.configureChart()

Included in Sepasoft Versions:

Warning

Stable Release Versions:

MES 3.81.1 SP9 and later
MES 3.79.0 SP9 and later

configureChart()

    • Description

Provides an opportunity to perform further chart configuration via scripting. Doesn't return anything.

    • Parameters

Component chart-A JFreeChart object. Refer to the JFreeChart documentation for API details.

    • Return

Nothing

    • Scope

Client


Custom Methods

Custom methods allow you to add your own component functions to a component that can be called through scripting. This is a useful and clean method of re-using script that is specific to the component (say you want to update a visual aspect of the component in the same way whether a user clicks on the component or a window property value changes). See Component Custom Methods in the Ignition Help Manual for more information.


Customizers

This component does not have any custom properties.


Component Functions

This component does not have functions associated with it.

Sepasoft MES Module Suite