%ZEN.Report.Display.COSChart.cpieChart
deprecated class %ZEN.Report.Display.COSChart.cpieChart extends %ZEN.Report.Display.COSChart.cchart
This is an SVG chart component that displays a pie chart.The plotBy property specifies how the slices of the chart and their labels should be calculated.
The size of each slice is adjusted proportionally so that a complete circle is formed.
The colors of the slice is determined by the seriesColors property. If there are more slices than colors, then the colors are repeated.
Property Inventory
Method Inventory
Parameters
parameter DEFAULTAPPEARANCE = 2D;
Default appearance of this component.
parameter DEFAULTHOLESIZE = 0;
Default size of hole in center of the chart.
Properties
property holeSize as %ZEN.Datatype.float (MAXVAL = "0.9", MINVAL = 0) [ InitialExpression = ..#DEFAULTHOLESIZE ];
This controls whether a hole is displayed in the center of the
pie chart, and if so, how big the hole is.
The value of this property is a percentange of the chart's radius along the x axis. If the size of the chart is changed, the size of the center hole will maintain its proportional size.
The value can range from 0 to 0.9. The default value is 0. Set this to 0.2 to display a "donut chart".
The value of this property is a percentange of the chart's radius along the x axis. If the size of the chart is changed, the size of the center hole will maintain its proportional size.
The value can range from 0 to 0.9. The default value is 0. Set this to 0.2 to display a "donut chart".
Property methods: holeSizeDisplayToLogical(), holeSizeGet(), holeSizeIsValid(), holeSizeLogicalToDisplay(), holeSizeLogicalToOdbc(), holeSizeNormalize(), holeSizeSet()
property labelRadius as %ZEN.Datatype.float (MAXVAL = 1.5, MINVAL = "0.5");
Position of labels as a multiple of the chart radius.
The default is 1.1.
Property methods: labelRadiusDisplayToLogical(), labelRadiusGet(), labelRadiusIsValid(), labelRadiusLogicalToDisplay(), labelRadiusLogicalToOdbc(), labelRadiusNormalize(), labelRadiusSet()
property pieHeight as %ZEN.Datatype.float (MAXVAL = 1, MINVAL = 0) [ InitialExpression = 0.33 ];
For pie charts with appearance set to "3D",
this controls the apparent height of 3D pie chart.
The value of this property is a percentange of the chart's radius along the x axis. If the size of the chart is changed, its depth will maintain its proportional size.
The value can range from 0 to 1. The default value is 0.33.
The value of this property is a percentange of the chart's radius along the x axis. If the size of the chart is changed, its depth will maintain its proportional size.
The value can range from 0 to 1. The default value is 0.33.
Property methods: pieHeightDisplayToLogical(), pieHeightGet(), pieHeightIsValid(), pieHeightLogicalToDisplay(), pieHeightLogicalToOdbc(), pieHeightNormalize(), pieHeightSet()
property pieScale as %ZEN.Datatype.float [ InitialExpression = 1.0 ];
Scaling factor used to compute size of pie within the chart.
The default scaling value is 1.0. A value larger than 1.0 makes the pie bigger relative to the chart's plot area; a value smaller than 1.0 makes the pie smaller.
The default scaling value is 1.0. A value larger than 1.0 makes the pie bigger relative to the chart's plot area; a value smaller than 1.0 makes the pie smaller.
Property methods: pieScaleDisplayToLogical(), pieScaleGet(), pieScaleIsValid(), pieScaleLogicalToDisplay(), pieScaleLogicalToOdbc(), pieScaleNormalize(), pieScaleSet()
property plotBy as %ZEN.Datatype.string (VALUELIST = ",auto,items,series,both") [ InitialExpression = "auto" ];
Specifies how the pie chart will plot its data.
- "items" - plot a slice for every item within this chart's data. If
there are multiple data series, each slice represents the total of each item
summed across the data series.
The labels for the slices are treated as Y axis labels: the onGetLabelY event handler is called to get the label values, or the labels are provided by a %ZEN.Auxiliary.dataController if present. - "series" - plot a slice for every data series within this chart's data.
Each slice represents the total value of all items within each series.
The labels for the slices are specified by the seriesNames property. - "both" - plot a slice for each item within each data series (that is, there
will be seriesCount * seriesSize slices).
The slices are labeled as items; the chart legend will display the series names. - "auto" - automatically select the appropriate way to display data based on how many data series and items are present.
Property methods: plotByDisplayToLogical(), plotByGet(), plotByIsValid(), plotByLogicalToDisplay(), plotByLogicalToOdbc(), plotByNormalize(), plotBySet()
property rotateBy as %ZEN.Datatype.float [ InitialExpression = 0 ];
If specified, rotate the pie chart by this amount (in degrees).
Property methods: rotateByDisplayToLogical(), rotateByGet(), rotateByIsValid(), rotateByLogicalToDisplay(), rotateByLogicalToOdbc(), rotateByNormalize(), rotateBySet()
property showPercentage as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, percentage values (rounded to nearest integer) are displayed as
part of the label for each slice.
Property methods: showPercentageDisplayToLogical(), showPercentageGet(), showPercentageIsValid(), showPercentageLogicalToDisplay(), showPercentageLogicalToOdbc(), showPercentageLogicalToXSD(), showPercentageNormalize(), showPercentageSet(), showPercentageXSDToLogical()
property showValue as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, the item value is displayed as part of the label for each slice.
Property methods: showValueDisplayToLogical(), showValueGet(), showValueIsValid(), showValueLogicalToDisplay(), showValueLogicalToOdbc(), showValueLogicalToXSD(), showValueNormalize(), showValueSet(), showValueXSDToLogical()
Methods
method getChartElementStyle(series, item)
Return default style for slice element.
method getLegendLabels()
Return an array of labels to display within the Legend box.
Override to get appropriate labels for Pie Chart.
Override to get appropriate labels for Pie Chart.
method getPlotBy()
Determine the actual plot by method for this chart.
method hasAxes()
Indicates that this chart has no axes and associated grids
method hasMultiples()
Indicates that this chart supports "show multiples" mode.
method is3D()
Do not show 3-D plot area.
method renderSeries(group)
Draw data series for this chart.
group is the SVG container for the chart components.
Inherited Members
Inherited Properties
- %controlBarH
- %dataDrivenSeriesColors
- %dataSeries
- %date1900
- %endUnits
- %firstXLabelWidth
- %hzMaxStep
- %labelBottom
- %labelPad
- %labelPadL
- %labelPadR
- %lastXLabelWidth
- %legendHeight
- %legendRight
- %legendVisible
- %legendWidth
- %majorUnits
- %marginBottom
- %marginLeft
- %marginRight
- %marginTop
- %maxScrollLeft
- %maxXHeight
- %minorUnits
- %offset
- %oldXMax
- %pixPerSec
- %plotBottom
- %plotBottomOut
- %plotHeight
- %plotLeft
- %plotLeftOut
- %plotRight
- %plotRightOut
- %plotTop
- %plotTopOut
- %plotWidth
- %rplotRight
- %rplotRightOut
- %rplotWidth
- %scaleX
- %scaleY
- %seriesColors
- %startUnits
- %timeEvents
- %titleHeight
- %titleImageLeft
- %titleImageTop
- %titleImageWidth
- %xAxisLabelH
- %xAxisTitle
- %xAxisTitleH
- %xBaseValue
- %xGridType
- %xLabelAngle
- %xLabelOnTheBottom
- %xLabelOnTheTop
- %xLabelStyle
- %xLabelUnits
- %xMajorGrid
- %xMajorGridStyle
- %xMajorUnits
- %xMaxValue
- %xMinValue
- %xMinorGrid
- %xMinorGridStyle
- %xMinorUnits
- %xRange
- %yAxisForSeries
- %yAxisTitle
- %yBaseValue
- %yGridType
- %yLabelAngle
- %yLabelOnTheLeft
- %yLabelOnTheRight
- %yLabelStyle
- %yLabelUnits
- %yMajorGrid
- %yMajorGridStyle
- %yMajorUnits
- %yMaxValue
- %yMinValue
- %yMinorGrid
- %yMinorGridStyle
- %yMinorUnits
- %yRange
- FontXScale
- FontYScale
- appearance
- applyLevel
- autoScaleText
- axisLineStyle
- axisTitleStyle
- backgroundStyle
- bandLeft
- bandLeftStyle
- bandLower
- bandLowerStyle
- bandRight
- bandRightStyle
- bandUpper
- bandUpperStyle
- baseLineStyle
- blockContainerProperty
- borderOffset
- borderRadius
- borderStyle
- caption
- chartPivot
- children
- class
- colcount
- colspan
- composite
- controllerId
- crosstabDataGroup
- crosstabFooterDataField
- crosstabFooterFormatNumber
- crosstabFooterGroup
- crosstabHeaderDataField
- crosstabHeaderGroup
- crosstabHeaderGroupLabels
- crosstabHeaderGroupTooLongText
- crosstabHeaderLabelDataField
- crosstabHeaderMatchField
- crosstabRowGroup
- crosstabTruncationHeight
- crosstabTruncationWidth
- currYAxis
- dataDrivenSeriesColors
- dataSeries
- dateFormat
- debugBBox
- endTime
- field
- foblock
- gridStyle
- group
- grouppath
- hasFooter
- hasHeader
- hasZoom
- height
- htmlstyle
- id
- ifexpression
- ifxpath
- includeBlockContainer
- includeColIfExpression
- includeColIfXPath
- includeColUnlessExpression
- includeColUnlessXPath
- indicatorStyle
- indicatorsVisible
- labelStyle
- labelsVisible
- legendHeight
- legendLabelStyle
- legendLabels
- legendPosition
- legendRectStyle
- legendStyle
- legendTitle
- legendVisible
- legendWidth
- legendX
- legendY
- level
- lineStyle
- linefeedTreatment
- marginBottom
- marginLeft
- marginRight
- marginTop
- markerScale
- markerShapes
- markerStyle
- markersVisible
- maxLabelLen
- msgIfNoData
- multipleTitleStyle
- noDataFill
- noDataOpacity
- noDataStroke
- oldLabelCalc
- ongetData
- ongetLabelX
- ongetLabelY
- ongetSeriesName
- ongetTimeEvents
- onrenderData
- passChartObject
- plotAreaStyle
- plotEdgeStyle
- plotStyle
- plotToEdge
- removeEmpty
- rowspan
- scrollButtonStyle
- selectedItem
- selectedItemStyle
- selectedSeries
- selectstylecond
- selectstylelist
- seriesColorScheme
- seriesColors
- seriesColorsOverride
- seriesCount
- seriesNames
- seriesNumber
- seriesSize
- seriesYAxes
- showMultiples
- startTime
- stripeStyle
- stripesVisible
- style
- stylecall
- styleparamNames
- styleparams
- subtitle
- subtitleStyle
- svgGroup
- tag
- template
- textSize
- timeBased
- title
- titleAlign
- titleBoxStyle
- titleImage
- titleImageStyle
- titleStyle
- titleX
- titleY
- tooLongText
- topLevel
- truncate
- truncationHeight
- truncationWidth
- unlessexpression
- unselectedItemStyle
- valueBoxStyle
- valueLabelFormat
- valueLabelStyle
- valueLabelsVisible
- viewBoxHeight
- viewBoxWidth
- warnIfNoData
- width
- withinSmallmultiple
- xAxis
- xmlnamespace
- xmlnamespaceprefix
- xpath
- xslfostyle
- yAxis
- yAxisList
- zenMonthShortNames
Inherited Methods
- %AddToSaveSet()
- %ApplyClass()
- %ApplyLevelParameters()
- %BeginGroup()
- %BeginGroupNoInc()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DeclareLevelParameters()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawCellFO()
- %DrawCellFO1()
- %DrawCellToHTML()
- %DrawCellToHTML1()
- %DrawFooterFO()
- %DrawFooterToAnnotatedXML()
- %DrawFooterToHTML()
- %DrawHeaderFO()
- %DrawHeaderToHTML()
- %DrawSort()
- %DrawToAnnotatedXML()
- %DrawToHTML()
- %DrawToXSLFO()
- %EndGroup()
- %EndLevel()
- %Extends()
- %FooterWidth()
- %GetAbsoluteURL()
- %GetParameter()
- %HeaderWidth()
- %IncLevel()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OldWidth()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueEmbedded()
- %QuoteValueL10N()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %StyleHTML()
- %StyleXSLFO()
- %ValidateObject()
- %Width()
- ApplyClass()
- CSPLinkToFileLink()
- CountSpaces()
- DoDocForHTML()
- GetBBox()
- GetDocForXSLFO()
- HTMLStyle()
- OutputId()
- ParseCSSStyle()
- Test()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- XSLFOStyle()
- adjustChartTitle()
- calcVertex()
- calculateAxisConstraints()
- calculateLegendDimensions()
- calculateViewBox()
- calculateXAxisHeight()
- calculateXAxisTitleHeight()
- computeEffectiveExtents()
- computeScale()
- computeStyle()
- computeXAxisTimeLine()
- computeXFontSize()
- computeYFontSize()
- createMarker()
- createSVGTextNode()
- createXLabelNode()
- embedStyle()
- getCellInfo()
- getChartSubtitle()
- getChartTitle()
- getColorSchemeArray()
- getComputedFontSize()
- getComputedTextLength()
- getCurrYAxis()
- getDataSeriesCount()
- getDataSeriesLength()
- getEndTime()
- getLegendRectStyle()
- getLegendsCount()
- getMarkerShape()
- getNumericAbbreviation()
- getPelToPixelHRatio()
- getPelToPixelVRatio()
- getPlotX()
- getPlotY()
- getRangeGroupForSeries()
- getSelectedItem()
- getSelectedSeries()
- getSelectedStyle()
- getSeriesColor()
- getSeriesCount()
- getSeriesData()
- getSeriesNames()
- getSeriesNamesSize()
- getSeriesSVGGroup()
- getSeriesSize()
- getSeriesType()
- getStartTime()
- getStyleArray()
- getTextWidth()
- getTimeX()
- getXAxis()
- getXAxisTitle()
- getXAxisType()
- getXLabelText()
- getYAxis()
- getYAxisCount()
- getYAxisTitle()
- getYAxisType()
- getYLabelText()
- hasFooterGet()
- hasHeaderGet()
- hasSelectedItem()
- initializeAxisProperties()
- insertAxis()
- integrateStyleSpec()
- isCSPLink()
- isTimeBased()
- makeId()
- max()
- min()
- myCountSpaces()
- needsURL()
- parent()
- pickVerticalSkips()
- plotLineForSeries()
- prepareAxisGroup()
- processExclamationPoint()
- qualify()
- removeChildNodes()
- renderAxes()
- renderBands()
- renderContents()
- renderLegend()
- renderPlotArea()
- renderSeriesGroup()
- renderTimeEvents()
- renderTitle()
- renderXAxisTimeLine()
- renderXAxisTitle()
- renderXLabels()
- renderYAxisTitle()
- renderYLabels()
- split()
- stripWhitespace()
- tagGet()
- unrender()
- updateIndicator()
- usePercentForRange()
- useSumForRange()
- xToLogical()
- yToLogical()
- zenGet()