<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE report PUBLIC "-//JFreeReport//DTD report definition//EN//simple/version 0.8.5" "http://jfreereport.sourceforge.net/report-085.dtd"> <report bottommargin="10" topmargin="10" rightmargin="10" leftmargin="10" pageformat="LETTER" orientation="landscape" name="XY Charting"> <parser-config> <property name="reportheader"/> <property name="reportfooter"/> <property name="pageheader">Average MSRP Versus Average Buy Price Per Product</property> <property name="pagefooter"/> </parser-config> <reportheader color="#ff7d17" fontname="Arial" fontsize="16"> <message-field alignment="left" height="18" vertical-alignment="middle" width="100%" x="0%" y="0">${reportheader}</message-field> <drawable-field x="0" y="20" fieldname="XYChart" width="600" height="400"/> </reportheader> <reportfooter color="#ff7d17" fontname="Arial" fontsize="16"> <message-field alignment="center" height="18" vertical-alignment="top" width="100%" x="0%" y="0">${reportfooter}</message-field> </reportfooter> <pageheader color="#c0c0c0" fontname="Arial" fontsize="8"> <message-field alignment="left" height="18" vertical-alignment="middle" width="50%" x="0%" y="0">${pageheader}</message-field> <message-field alignment="right" height="18" width="50%" x="50%" y="0">$(report.date, date, MMMM dd, yyyy @ hh:mm )</message-field> <line color="#9eaa36" height="3" weight="1" width="100%" x1="0%" x2="100%" y1="18" y2="18"/> </pageheader> <pagefooter color="#c0c0c0" fontname="Arial" fontsize="8"> <line color="#9eaa36" height="3" weight="1" width="100%" x1="0%" x2="100%" y1="0" y2="0"/> <message-field alignment="left" height="18" width="50%" x="0" y="0">${pagefooter}</message-field> <message-field alignment="right" height="18" width="50%" x="50%" y="0">Page $(PageofPages)</message-field> </pagefooter> <functions> <property-ref name="report.date"/> <function class="org.jfree.report.function.PageOfPagesFunction" name="PageofPages"/> <function name="backgroundTrigger" class="org.jfree.report.function.ElementVisibilitySwitchFunction"> <properties> <property name="element">rowBandingElement</property> <property name="numberOfElements">1</property> <property name="initialState">true</property> </properties> </function> <expression class="org.jfree.report.function.HideElementIfDataAvailableExpression" name="noDataLabelElementHideIfNullTrigger"> <properties> <property name="element">noDataLabelElement</property> </properties> </expression> <expression class="org.jfree.report.function.ShowElementIfDataAvailableExpression" name="dummyGroupFooterHideIfNullTrigger"> <properties> <property name="element">dummyGroupFooter</property> </properties> </expression> <expression class="org.jfree.report.function.ShowElementIfDataAvailableExpression" name="PRODUCTLINEGroupHeaderHideIfNullTrigger"> <properties> <property name="element">PRODUCTLINEGroupHeader</property> </properties> </expression> <expression class="org.jfree.report.function.ShowElementIfDataAvailableExpression" name="PRODUCTLINEGroupFooterHideIfNullTrigger"> <properties> <property name="element">PRODUCTLINEGroupFooter</property> </properties> </expression> <expression class="org.pentaho.plugin.jfreereport.reportcharts.XYSeriesCollectorFunction" name="chartDataSource" depLevel="1"> <properties> <property name="seriesColumn">true</property> <property name="seriesName[0]">PRODUCTLINE</property> <property name="xValueColumn[0]">AVERAGE_MSRP</property> <property name="yValueColumn[0]">AVERAGE_BUYPRICE</property> <property name="summaryOnly">false</property> </properties> </expression> <expression class="org.pentaho.plugin.jfreereport.reportcharts.XYSeriesCollectorFunction" name="scatterChartDataSource" depLevel="1"> <properties> <property name="seriesColumn">true</property> <property name="seriesName[0]">PRODUCTNAME</property> <property name="xValueColumn[0]">AVERAGE_MSRP</property> <property name="yValueColumn[0]">AVERAGE_BUYPRICE</property> <property name="group">PRODUCTNAME</property> <property name="resetGroup">PRODUCTLINE</property> <property name="summaryOnly">false</property> </properties> </expression> <expression class="org.pentaho.plugin.jfreereport.reportcharts.XYLineChartExpression" name="XYChart" depLevel="1"> <properties> <!-- Font specification: fontfamilyname-style-pointsize e.g. Arial-BOLD-14 Style can be BOLD, BOLDITALIC, or ITALIC --> <property name="title">Average MSRP vs. Average Buy Price </property> <property name="threeD">true</property> <property name="titleFont">Arial-BOLD-14</property> <property name="labelFont">Arial--8</property> <property name="legendFont">Arial--6</property> <property name="backgroundColor">#9EAA36</property> <property name="showBorder">true</property> <property name="horizontal">false</property> <property name="dataSource">chartDataSource</property> <property name="seriesColor[0]">#EE7733</property> <property name="seriesColor[1]">#9EAA36</property> <property name="seriesColor[2]">#BF0000</property> <property name="seriesColor[3]">#FCCF12</property> <property name="seriesColor[4]">#772200</property> <property name="seriesColor[5]">#DDCC88</property> <property name="seriesColor[6]">#123D82</property> <property name="seriesColor[7]">#4A0866</property> <property name="seriesColor[8]">#445500</property> <property name="seriesColor[9]">#FFAA00</property> <property name="seriesColor[10]">#1E8AD3</property> <property name="seriesColor[11]">#AA6611</property> <property name="seriesColor[12]">#772200</property> <property name="legendLocation">BOTTOM</property> <property name="showLegend">true</property> <property name="chartHeight">400</property> <property name="chartWidth">600</property> <property name="useDrawable">true</property> <property name="markersVisible">true</property> <property name="domainStickyZero">false</property> <property name="domainIncludesZero">false</property> <property name="rangeStickyZero">false</property> <property name="rangeIncludesZero">false</property> <property name="domainTitle">MSRP</property> <property name="rangeTitle">Buy Price</property> </properties> </expression> <expression class="org.pentaho.plugin.jfreereport.reportcharts.ScatterPlotChartExpression" name="DotChart" depLevel="1"> <properties> <!-- Font specification: fontfamilyname-style-pointsize e.g. Arial-BOLD-14 Style can be BOLD, BOLDITALIC, or ITALIC --> <property name="title">Scatterplot Grouped Chart Example</property> <property name="threeD">true</property> <property name="titleFont">Arial-BOLD-14</property> <property name="labelFont">Arial--8</property> <property name="legendFont">Arial--6</property> <property name="backgroundColor">#9EAA36</property> <property name="showBorder">true</property> <property name="horizontal">false</property> <property name="dataSource">scatterChartDataSource</property> <property name="seriesColor[0]">#EE7733</property> <property name="seriesColor[1]">#9EAA36</property> <property name="seriesColor[2]">#BF0000</property> <property name="seriesColor[3]">#FCCF12</property> <property name="seriesColor[4]">#772200</property> <property name="seriesColor[5]">#DDCC88</property> <property name="seriesColor[6]">#123D82</property> <property name="seriesColor[7]">#4A0866</property> <property name="seriesColor[8]">#445500</property> <property name="seriesColor[9]">#FFAA00</property> <property name="seriesColor[10]">#1E8AD3</property> <property name="seriesColor[11]">#AA6611</property> <property name="seriesColor[12]">#772200</property> <property name="legendLocation">BOTTOM</property> <property name="showLegend">true</property> <property name="chartHeight">400</property> <property name="chartWidth">600</property> <property name="useDrawable">true</property> <property name="domainStickyZero">false</property> <property name="domainIncludesZero">false</property> <property name="rangeStickyZero">false</property> <property name="rangeIncludesZero">false</property> <property name="domainTitle">MSRP</property> <property name="rangeTitle">Buy Price</property> <property name="dotHeight">20</property> <property name="dotWidth">20</property> </properties> </expression> </functions> <items color="#000000" fontname="Arial" fontsize="9" fontstyle="plain"> <rectangle name="rowBandingElement" color="#e7e7e7" draw="false" fill="true" height="11" x="0%" width="100%" y="0"/> <string-field name="PRODUCTNAMEElement" nullstring="-" fieldname="PRODUCTNAME" vertical-alignment="middle" alignment="left" width="33.333333333333336%" x="0.0%" y="0" height="11" color="#000000" fontname="Arial" fontsize="9"/> <number-field name="AVERAGE_MSRPElement" nullstring="-" fieldname="AVERAGE_MSRP" format="$#,###.00" vertical-alignment="middle" alignment="right" width="33.333333333333336%" x="33.333333333333336%" y="0" height="11" color="#000000" fontname="Arial" fontsize="9"/> <number-field name="AVERAGE_BUYPRICEElement" nullstring="-" fieldname="AVERAGE_BUYPRICE" format="$#,###.00" vertical-alignment="middle" alignment="right" width="33.33333333333333%" x="66.66666666666667%" y="0" height="11" color="#000000" fontname="Arial" fontsize="9"/> <line color="#c0c0c0" weight=".5" x1="0.0%" y1="0" x2="0.0%" y2="11"/> <line color="#c0c0c0" weight=".5" x1="33.333333333333336%" y1="0" x2="33.333333333333336%" y2="11"/> <line color="#c0c0c0" weight=".5" x1="66.66666666666667%" y1="0" x2="66.66666666666667%" y2="11"/> <line color="#c0c0c0" weight=".5" x1="100%" y1="0" x2="100%" y2="11"/> <line color="#c0c0c0" weight=".5" x1="0%" y1="0" x2="100%" y2="0"/> <line color="#c0c0c0" weight=".5" x1="0%" y1="11" x2="100%" y2="11"/> </items> <groups> <group name="dummy"> <groupheader name="dummyGroupHeader" color="#767676" fontname="Arial" fontsize="12" fontstyle="bold" repeat="false"> <label name="noDataLabelElement" height="11" vertical-alignment="middle" alignment="left" width="100%" x="0%" y="0" visible="false">No Data Available</label> </groupheader> <groupfooter name="dummyGroupFooter" color="#ff7d17" fontname="Arial" fontsize="12" fontstyle="bold"/> </group> <group name="PRODUCTLINE"> <fields> <field>PRODUCTLINE</field> </fields> <groupheader name="PRODUCTLINEGroupHeader" repeat="false" pagebreak-before-print="false" pagebreak-after-print="false" color="#767676" fontname="Arial" fontsize="12" fontstyle="bold" height="37"> <rectangle color="#FFFFFF" draw="false" fill="false" height="17" width="100%" x="0%" y="0"/> <message-field height="17" vertical-alignment="middle" alignment="left" width="100%" x="0%" y="0" nullstring="-">Product Line: $(PRODUCTLINE)</message-field> <rectangle color="#9eaa36" draw="false" fill="true" height="18" width="100%" x="0%" y="18"/> <rectangle draw="false" fill="false" height="1" width="100%" x="0%" y="17"/> <label color="#ffffff" fontname="Arial" fontsize="10" fontstyle="plain" height="18" vertical-alignment="middle" alignment="left" width="33.333333333333336%" x="0.0%" y="18">Product Name</label> <label color="#ffffff" fontname="Arial" fontsize="10" fontstyle="plain" height="18" vertical-alignment="middle" alignment="right" width="33.333333333333336%" x="33.333333333333336%" y="18">Average MSRP</label> <label color="#ffffff" fontname="Arial" fontsize="10" fontstyle="plain" height="18" vertical-alignment="middle" alignment="right" width="33.33333333333333%" x="66.66666666666667%" y="18">Average Buy Price</label> </groupheader> <groupfooter name="PRODUCTLINEGroupFooter" color="#ff7d17" fontname="Arial" fontsize="12" fontstyle="bold" pagebreak-before-print="false" pagebreak-after-print="false"> <drawable-field x="0" y="0" fieldname="DotChart" width="600" height="400"/> </groupfooter> </group> </groups> </report>