[英]Add horizontal lines from the SD on a levey Jennings Chart in IReport
我试图在我的 levey jennings 图中添加水平线,到目前为止,我只使用范围值标记添加了 2 条,该标记使用的是内置图表定制器组件,但我不完全确定它是如何从那里放置这两条线以及如何获取3.0 sd、2.0sd、-1sd 和-2s 的其他线代替图表的其他部分
我尝试使用不同的变量作为开始和结束添加另一个值标记,但是它不再显示行,它也只接受字符串,所以我将数组字段更改为字符串以使其工作。
<multiAxisChart>
<chart evaluationTime="Report">
<reportElement key="" x="0" y="0" width="555" height="543" uuid="8ff3dfda-86f1-4daf-a24f-7d09c619f472">
<property name="net.sf.jasperreports.customizer.0.maxValue" value="31"/>
<property name="net.sf.jasperreports.customizer.0.tickUnit" value="1"/>
<property name="net.sf.jasperreports.customizer.class.0" value="net.sf.jasperreports.customizers.axis.DomainAxisCustomizer"/>
<property name="net.sf.jasperreports.customizer.1.minValue" value="3.57"/>
<property name="net.sf.jasperreports.customizer.1.maxValue" value="5.4"/>
<property name="net.sf.jasperreports.customizer.1.tickUnit" value="0.3"/>
<property name="net.sf.jasperreports.customizer.class.1" value="net.sf.jasperreports.customizers.axis.RangeAxisCustomizer"/>
<property name="net.sf.jasperreports.customizer.0.minValue" value="1"/>
<property name="net.sf.jasperreports.customizer.class.2" value="net.sf.jasperreports.customizers.marker.RangeIntervalMarkerCustomizer"/>
<property name="net.sf.jasperreports.customizer.class.3" value="net.sf.jasperreports.customizers.marker.RangeIntervalMarkerCustomizer"/>
<property name="net.sf.jasperreports.customizer.class.4" value="net.sf.jasperreports.customizers.marker.RangeValueMarkerCustomizer"/>
<propertyExpression name="net.sf.jasperreports.customizer.2.startValue"><![CDATA[$F{Field_23}.toString()]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.2.endValue"><![CDATA[$F{Field_23}.toString()]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.3.startValue"><![CDATA[$F{Field_20}.toString()]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.3.endValue"><![CDATA[$F{Field_20}.toString()]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.4.startValue"><![CDATA[]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.4.endValue"><![CDATA[]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.4.value"><![CDATA[]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.5.category"><![CDATA[$F{Field_20}.toString()]]></propertyExpression>
<propertyExpression name="net.sf.jasperreports.customizer.4.label"><![CDATA[]]></propertyExpression>
</reportElement>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<multiAxisPlot>
<plot/>
<axis>
<xyLineChart>
<chart evaluationTime="Report">
<reportElement x="0" y="0" width="0" height="0" backcolor="#FFFFFF" uuid="8de9a2db-c4c4-4a3b-b509-136aee938911"/>
<chartTitle color="#000000"/>
<chartSubtitle color="#000000"/>
<chartLegend textColor="#000000" backgroundColor="#FFFFFF"/>
</chart>
<xyDataset>
<dataset>
<datasetRun subDataset="TheLeveyJenningDataset" uuid="252d3968-f6d8-4125-a56f-10c690ca157b"/>
</dataset>
<xySeries autoSort="true">
<seriesExpression><![CDATA["SERIES 1"]]></seriesExpression>
<xValueExpression><![CDATA[$F{Field_19}]]></xValueExpression>
<yValueExpression><![CDATA[$F{Field_23}]]></yValueExpression>
</xySeries>
</xyDataset>
<linePlot>
<plot/>
<categoryAxisFormat>
<axisFormat/>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat/>
</valueAxisFormat>
</linePlot>
</xyLineChart>
</axis>
<axis position="rightOrBottom">
<xyLineChart>
<chart evaluationTime="Report">
<reportElement x="0" y="0" width="0" height="0" backcolor="#FFFFFF" uuid="5eaf9def-384a-4af6-9eb7-71de124857c0"/>
<chartTitle color="#000000"/>
<chartSubtitle color="#000000"/>
<chartLegend textColor="#000000" backgroundColor="#FFFFFF"/>
</chart>
<xyDataset>
<dataset>
<datasetRun subDataset="TheLeveyJenningDataset" uuid="1d77eee3-894e-4973-8060-70d2a302a9ab"/>
</dataset>
<xySeries autoSort="true">
<seriesExpression><![CDATA["SERIES 1"]]></seriesExpression>
<xValueExpression><![CDATA[0]]></xValueExpression>
<yValueExpression><![CDATA[0]]></yValueExpression>
</xySeries>
</xyDataset>
<linePlot isShowLines="true">
<plot/>
<categoryAxisFormat>
<axisFormat/>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat/>
</valueAxisFormat>
<rangeAxisMinValueExpression><![CDATA[-3]]></rangeAxisMinValueExpression>
<rangeAxisMaxValueExpression><![CDATA[3]]></rangeAxisMaxValueExpression>
</linePlot>
</xyLineChart>
</axis>
</multiAxisPlot>
</multiAxisChart>
我想要的是它将其他水平线添加到其他 SD 的图表中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.