[#12961] - It shows one wrong line when I use the timeSeriesChart

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

When I generate the timeSeriesChart in pdf file, there is always one wrong line on the timeSeriesChart. I am sure that my data source is correct. But the line is wrong. Because when I set the isShowLines="false" isShowShapes="true", It shows correctly. When I set isShowLines="true" isShowShapes="false", the line is wrong.
I have marked the wrong part as red in the attached screenshot.

Detail code:
<timeSeriesChart>
<chart isShowLegend="false" evaluationTime="Report">
<reportElement uuid="216d7a19-3cf6-4ec5-b90b-ee326681218d" positionType="Float" mode="Transparent" x="22" y="21" width="510" height="299"/>
<chartTitle>
<font isBold="true" pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="true"/>
<titleExpression><![CDATA["集群作业分析"]]></titleExpression>
</chartTitle>
<chartSubtitle/>
<chartLegend/>
</chart>
<timeSeriesDataset timePeriod="Second">
<dataset>
<datasetRun subDataset="timeseries" uuid="9d622da9-0533-4b23-88c4-f99b4ad83f74">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{timeseriesDS})]]></dataSourceExpression>
</datasetRun>
</dataset>
<timeSeries>
<seriesExpression><![CDATA[$F{series}]]></seriesExpression>
<timePeriodExpression><![CDATA[$F{time}]]></timePeriodExpression>
<valueExpression><![CDATA[new Double($F{value})]]></valueExpression>
</timeSeries>
</timeSeriesDataset>
<timeSeriesPlot isShowShapes="false">
<plot>
<seriesColor seriesOrder="0" color="#8FD200"/>
<seriesColor seriesOrder="1" color="#0060F0"/>
<seriesColor seriesOrder="2" color="#823CAC"/>
<seriesColor seriesOrder="3" color="#F85467"/>
<seriesColor seriesOrder="4" color="#04AFFE"/>
<seriesColor seriesOrder="5" color="#FF9933"/>
<seriesColor seriesOrder="6" color="#9B3200"/>
<seriesColor seriesOrder="7" color="#009D5A"/>
<seriesColor seriesOrder="8" color="#99ADB7"/>
<seriesColor seriesOrder="9" color="#2F444F"/>
<seriesColor seriesOrder="10" color="#64D9FF"/>
<seriesColor seriesOrder="11" color="#002F91"/>
<seriesColor seriesOrder="12" color="#8686FF"/>
<seriesColor seriesOrder="13" color="#FFBE9F"/>
<seriesColor seriesOrder="14" color="#587E94"/>
<seriesColor seriesOrder="15" color="#C80921"/>
<seriesColor seriesOrder="16" color="#CC9900"/>
<seriesColor seriesOrder="17" color="#D8DFE2"/>
<seriesColor seriesOrder="18" color="#006666"/>
<seriesColor seriesOrder="19" color="#666633"/>
</plot>
<timeAxisLabelExpression><![CDATA[]]></timeAxisLabelExpression>

<timeAxisFormat>
<axisFormat tickLabelMask="yyyy-MM-dd HH:mm" verticalTickLabels="true">
<labelFont/>
<tickLabelFont/>
</axisFormat>
</timeAxisFormat>
<valueAxisLabelExpression><![CDATA[value]]></valueAxisLabelExpression>

<valueAxisFormat>
<axisFormat>
<labelFont/>
<tickLabelFont/>
</axisFormat>
</valueAxisFormat>

<domainAxisMinValueExpression><![CDATA[$P{startTime}]]></domainAxisMinValueExpression>
<domainAxisMaxValueExpression><![CDATA[$P{endTime}]]></domainAxisMaxValueExpression>
</timeSeriesPlot>
</timeSeriesChart>

AttachmentSize
Image icon wrong_line_and_correct_shape.png144.56 KB
v6.5.1
Charts
1020120986's picture
Joined: Aug 1 2020 - 3:50am
Last seen: 20 hours 51 min ago

1 Comment:

#1
Feedback