deprecatedclass %ZEN.SVGComponent.swirlChart
extends %ZEN.SVGComponent.chart
property animate
as %ZEN.Datatype.string(VALUELIST=",none,auto,manual") [ InitialExpression = "auto" ];
when drawing start, draw slices and labels in an animation or just show finished product
property gap
as %ZEN.Datatype.integer(MAXVAL=135,MINVAL=0) [ InitialExpression = 30 ];
space between first slice and last slice in degrees
property invert
as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
Whether or not to 'invert' the swirl. In an inverted swirl, the labels are on the outside
and the slices are lines rather than real surfaces.
Note, that the invert property is only active when labels are visible (labelsVisible=true)
property legendVisible
as %ZEN.Datatype.string(VALUELIST=",auto,false,true") [ InitialExpression = "false" ];
Overriding default value: now FALSE
property plotBy
as %ZEN.Datatype.string(VALUELIST=",items,series") [ InitialExpression = "items" ];
plotBy - items - this is default, it results in slices that are colored by items and a legend that is organized by labels on the slices
plotBy - series - it results in slices where slices of the same series are the same color, and legend shows labels for each series (not labels on the slices)
property separateSeriesScale
as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
method getChartElementStyle(series, item)
[ Language = javascript ]
Return default style for the specified data element (if any).
This is used to restore styles when chart elements are unselected.
Subclasses can override this.
method getLegendLabels()
[ Language = javascript ]
Return an array of labels to display within the Legend box.
Default implementation is to return a list of series names.
method getLegendsCount(legends)
[ Language = javascript ]
method getSeriesNamesSize()
[ Language = javascript ]
method getYLabelText(val, yAxisNo, base)
[ Language = javascript ]
Given a logical value, return the text to use for an axis label.
base is an arbitrary delta but can be used to make labels 0-based or 1-based
default is 0-based for backwards compatibility
Can be overriden by user through sub-classing
method hasAxes()
[ Language = javascript ]
Indicates that this chart has no axes and associated grids
method hasMultiples()
[ Language = javascript ]
Indicates that this chart supports "show multiples" mode.
method is3D()
[ Language = javascript ]
Do not show 3-D plot area.
method renderSeries(group)
[ Language = javascript ]
Draw data series for this chart.
group is the SVG container for the chart components.
method setAnimation(label, steps, from, to, center)
[ Language = javascript ]
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.