Jump to content
We've recently updated our Privacy Statement, available here ×

Time Series Chart displays a chart per row returned instead of ONE chart


Maine
Go to solution Solved by rajesh.sirsikar,

Recommended Posts

PLEASE help! I've been struggling with this problem now for 5 hours! 

I have a query that returns x change rates on x days between 2 date parameters $P{datum1} and $P{datum2}.

Let's say that $P{datum1} = 01-Jul-2014 and $P{datum2} = 05-Jul-2014. Then I will get 5 charts: all containing only one dot and the X-axis going from 23:59 till 00:00

What I want ismy X-axis to show the date period between 01-Jul-2014 and 05-Jul-2014 and the dots all connected by a fluent graph.

Can someone please help?? :(

The relevant part (I guess) of my XML looks like this:

<timeSeriesChart>
<chart renderType="image">
<reportElement isPrintRepeatedValues="false" x="173" y="0" width="391" height="212"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend position="Bottom"/>
</chart>
<timeSeriesDataset timePeriod="Week">
<dataset resetType="None"/>
<timeSeries>
<seriesExpression><![CDATA[$F{datum}]]></seriesExpression>
<timePeriodExpression><![CDATA[$F{datum}]]></timePeriodExpression>
<valueExpression><![CDATA[$F{rate}]]></valueExpression>
<labelExpression><![CDATA["test"]]></labelExpression>
</timeSeries>
</timeSeriesDataset>
<timeSeriesPlot isShowShapes="true">
<plot/>
<timeAxisFormat>
<axisFormat>
<labelFont/>
<tickLabelFont/>
</axisFormat>
</timeAxisFormat>
<valueAxisFormat>
<axisFormat>
<labelFont/>
<tickLabelFont/>
</axisFormat>
</valueAxisFormat>
</timeSeriesPlot>
</timeSeriesChart>

 

 
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Hi Maine,

 

As per your description, I created the scenario for my testing and got it confirmed that the problem for your issue is that you have placed your Chart in the Detail section of the report.

 

Charts Must be kept either in the Title Bar or in the Summary Bar. In your case place it in teh Summary Bar and you will see the issue getting resolved in seconds.

 

Thanks,

Rajesh S

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...