12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Zen</strong> Charts3.1.7 Percent Bar ChartsA displays each data series as a bar in the chart. All the bars are the same height, and represent 100%of the values in the series. Bands in the bar represent items in the series, and are sized proportional to that items contributionto the total. This method of handling data series is similar to a when plotBy="both", except that the piechart also shows the relative contribution of each series. See Pie Charts by Items.You can use ongetLabelX to provide labels for the bars, and seriesNames to provide labels for the legend, matching namesto colors by order in the series.Figure 3–13: Percent Bar Chart has the following attributes:AttributeChart attributeschartPivotDescription has the same general-purpose attributes as any chart. Fordescriptions, see the sections “Providing Data for <strong>Zen</strong> Page Charts” and “ChartLayout, Style, and Behavior.”If true, pivot the chart (display categories vertically and values horizontally). If false,display the chart in typical fashion (categories on the horizontal axis and values onthe vertical axis).This attribute has the underlying data type %ZEN.Datatype.boolean. It has the value"true" or "false" in XData Contents, 1 or 0 in server-side code, true or false in clientsidecode.If true, pivot the chart (display categories vertically and values horizontally). If false,display the chart in typical fashion (categories on the horizontal axis and values onthe vertical axis).This attribute has the underlying data type %ZEN.Datatype.boolean. It has the value"true" or "false" in XData Contents, 1 or 0 in server-side code, true or false in clientsidecode.3.1.8 Pie ChartsPie charts can plot single or multiple data series, and can show the series, the items in the series, or both. doesnot support axes or grids in the plot area, as do line charts or bar charts. Note that, as with bubble charts, if the width andheight of the chart are not the same, the pie shape is not rendered as a circle.64 <strong>Using</strong> <strong>Zen</strong> <strong>Components</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!