Bar Chart
Attribute Name | XML Declaration | Description / Notes |
---|---|---|
name |
|
|
items |
|
This attribute must directly follow the |
groupData |
|
|
yAxisTitle |
|
|
xAxisTitle |
|
|
hoverBehavior |
|
|
stackValue |
|
|
hoverSeriesLabel |
|
|
hoverValueLabel |
|
|
hoverGroupLabel |
|
|
dataTypeSeriesFormat |
|
|
dataTypeGroupFormat |
|
|
dataType |
|
|
decimalPlaces |
|
|
Example of XML Report Definition to Generate Bar Chart JSON Data
<report> <frame type="table" query-name="MajorGroupsQuery" name="barFrame"> <bands> <band type="table-body"> <cell type="text" data-format="text" alignment="left" print-width="140" chart-attr-name="seriesName">Series1</cell> <cell type="column" data-format="currency" alignment="right" suppress-formatting="true" print-width="70">salesTotal</cell> <cell type="text" data-format="text" alignment="left" print-width="140" chart-attr-name="seriesName">Series2</cell> <cell type="column" data-format="currency" alignment="right" suppress-formatting="true" print-width="70">salesTotal</cell> <cell type="column" data-format="text" alignment="left" chart-attr-name="groupData">majorGroupNameMaster</cell> <!-- extra cell to match count in table-column --> <cell type="chart_text" data-format="text" alignment="left"></cell> <cell type="chart_text" data-format="text" alignment="left"></cell> <cell type="chart_text" data-format="text" alignment="left"></cell> <cell type="chart_text" data-format="text" alignment="left"></cell> <cell type="chart_text" data-format="text" alignment="left"></cell> <cell type="chart_text" data-format="text" alignment="left"></cell> </band> <band type="table-column-header"> <!-- yAxisTitle chart attribute --> <cell type="text" data-format="text" alignment="left" chart-attr-name="yAxisTitle">Y Axis Title</cell> <!-- xAxisTitle chart attribute --> <cell type="text" data-format="text" alignment="left" chart-attr-name="xAxisTitle">X Axis Title</cell> <!-- hover series label attribute --> <cell type="text" data-format="text" alignment="left" chart-attr-name="hoverSeriesLabel">Test Series</cell> <!-- hover value label attribute --> <cell type="text" data-format="text" alignment="left" chart-attr-name="hoverValueLabel">Test Value</cell> <!-- hover group label attribute --> <cell type="text" data-format="text" alignment="left" chart-attr-name="hoverGroupLabel">Test Group</cell> <!-- hoverBehavior chart attribute --> <cell type="chart_text" data-format="text" alignment="left" chart-attr-name="hoverBehavior">dim</cell> <!-- stackValue chart attribute --> <cell type="chart_text" data-format="text" alignment="left" chart-attr-name="stackValue">off</cell> <!-- dataType chart attribute --> <cell type="chart_text" data-format="text" alignment="left" chart-attr-name="dataType">integer</cell> <!-- decimalPlaces chart attribute --> <cell type="chart_text" data-format="text" alignment="left" chart-attr-name="decimalPlaces">2</cell> <!-- dataTypeSeriesFormat chart attribute --> <cell type="chart_text" data-format="text" alignment="left" chart-attr-name="dataTypeSeriesFormat">percent</cell> <!-- dataTypeGroupFormat chart attribute --> <cell type="chart_text" data-format="text" alignment="left" chart-attr-name="dataTypeGroupFormat">currency</cell> </band> </bands> </frame> <layout type="columner"> <component frame-name="barFrame" column="1" visual-type="ojBar" visual-style="oj-sm-12" visual-title="TotalOperatingCosts"/> </layout> </report>
Parent topic: Visualizations