Disconnected Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
keth
Posts: 2
Joined: Mon Oct 26, 2009 7:33 am
antibot: No, of course not.

Disconnected Chart

Post by keth » Mon Oct 26, 2009 11:25 am

Hi ,

I am new to this and i am using Jasper reports to create some charts. Jasper uses Jfreechart to render charts.
Hope you could help me on This.

I have two Category Series.

Code: Select all


"Staff"                                        "Client"
--------------------                       ---------------------------------------
"2009-10-01", "5"                      "2009-10-01", "8"
"2009-10-15", "8"                      "2009-10-15", "3"
"2009-10-20", "3"                      
                                      "2009-10-25", "5"
"2009-10-30", "9"                     "2009-10-30", "1"


please notice the Category Axis (X - axis) is not equal for two serieses. So the Chart breaks on "2009-10-20", "3" on Series Staff and "2009-10-15", "3" on "Client". But i want to join this charts without disconnecting

Image

Do you guys have any idea how to fix this problem, Appreciate your help

Thanks,
Keth

Code: Select all

[code]
[/code]

mkivinie
Posts: 51
Joined: Wed Jul 06, 2005 8:35 am

Re: Disconnected Chart

Post by mkivinie » Tue Oct 27, 2009 7:46 am

If you were to use XYLine chart (and of course XYSeries for the data), then the lines would have no gaps.
Mind here that I have absolutely no knowledge of Category charts nor Jasper reports, so maybe someone has a solution for a Category chart.

Locked