Skip to main content

%ZEN.SVGComponent.barChart

Class %ZEN.SVGComponent.barChart Extends chart [ Deprecated, System = 3 ]

This is an SVG chart component that displays a bar chart.
This chart displays one or more data series as rectangular bars whose size is proportional to the data value.
If there are multiple data series, the bars are plotted either side-by-side or stacked, as specified by the chartStacked property.
You can view data as a set of horizontal columns by setting the chartPivot property.
Note: the plotToEdge property is always treated as false for bar charts.

Parameters

DEFAULTPLOTTOEDGE

Parameter DEFAULTPLOTTOEDGE = 0;

Default value for plotToEdge property.

DEFAULTAPPEARANCE

Parameter DEFAULTAPPEARANCE = "2D";

Default appearance of this component.

Properties

chartStacked

Property chartStacked As %ZEN.Datatype.boolean [ InitialExpression = 0 ];

If true, this is a stacked bar chart. That is, data series are plotted on top of one another.
If false, then data series are plotted side-by-side.

chartPivot

Property chartPivot As %ZEN.Datatype.boolean [ InitialExpression = 0 ];

If true, pivot this chart: display categories vertically and values horizontally.

XDatas

SVGStyle

XData SVGStyle

Methods

renderSeries

ClientMethod renderSeries(group) [ Language = javascript ]

Draw data series for this chart. group is the SVG container for the chart components. This includes the logic for display combo charts as it is shared with its subclass.

getChartElementStyle

ClientMethod getChartElementStyle(series, item) [ Language = javascript ]

Return default style for a bar element.

getXAxisType

ClientMethod getXAxisType() [ Language = javascript ]

Return the type of x axis (category or value) used by this chart.

getYAxisType

ClientMethod getYAxisType() [ Language = javascript ]

Return the type of y axis (category or value) used by this chart.

useSumForRange

ClientMethod useSumForRange() [ Language = javascript ]

This method returns true if data series should be summed when calculating data range for the chart.

setProperty

ClientMethod setProperty(property, value, value2) [ Language = javascript ]

Set the value of a named property.

getSeriesType

ClientMethod getSeriesType(series) [ Language = javascript ]

Return the type (how a series should be displayed) for the given data series (0-based). Overridden in combo chart.

hasMultiples

ClientMethod hasMultiples() [ Language = javascript ]

Indicates that this chart supports "show multiples" mode.

plotTargetForSeries

ClientMethod plotTargetForSeries(group, sno, data) [ Language = javascript ]

Plot a set of target lines based on the given data series.