RE:Jcharts issue with multiple series in line charts

<[email protected]> Thu, 18 Nov 2004 11:46:37 -0000
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <FF34095A2C21BE419D050B61DBDCED1E17EAB76C@i2km05-ukbr.domain1.systemhost.net>
Hi Nathaniel ,

Thanks for your reply

Did you mean adding multiple dimensions like this....
double[][] lineData = {d1,d2,d3};
....blah blah
axisChartDataSet = new AxisChartDataSet(lineData, lineLegendLabels,
linePaints, ChartType.LINE, lineChartProperties);
dataSeries.addIAxisPlotDataSet(axisChartDataSet);

but the problem here is 
1. The length  of dataseries d2 and d3 may not be same
2. also they may represent diff times on the x axis , This is because
they r transactions which occur sequentially And I don't want to insert
a NAN value for all the missing values because that would put gaps in
the lines of the line chart 
Eg.. there is no value for point 4 on the x axis for D3 but there is one
for point 5 which is just after 43 seconds . So they fit into the
overchart but are a subset of the same

		X axis 		Y axis
		Time			D1	D2	D3
1.  2004-11-15 23:15:00.343	33		
2.  2004-11-15 23:15:42.047		44
3.  2004-11-15 23:17:03.250   		14	
4.  2004-11-15 23:45:00.360	44	55
5.  2004-11-15 23:45:43.267			19	
6.  2004-11-15 23:47:05.377		
7.  2004-11-16 00:15:00.343	55	
8.  2004-11-16 00:15:43.563		22
9.  2004-11-16 00:17:06.077			22	
10. 2004-11-16 00:45:00.360	66	11



Karan Oberai  
BT Westside | Apsley | Hemel Hempstead
Tel: +44 20 7322 4877



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: 18 November 2004 04:16
To: [email protected]
Subject: jCharts-users digest, Vol 1 #279 - 2 msgs


Send jCharts-users mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/jcharts-users
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of jCharts-users digest..."


Today's Topics:

   1. Re: X Axis Label Question (Nathaniel G. Auvil)
   2. Re: FW: Jcharts issue with multiple series in line charts
(Nathaniel G. Auvil)

--__--__--

Message: 1
Date: Wed, 17 Nov 2004 17:37:18 -0800 (PST)
From: "Nathaniel G. Auvil" <[email protected]>
Subject: Re: [jCharts-users] X Axis Label Question
To: [email protected]
Reply-To: [email protected]


no.  You could jsut pass empty Strings for the other labels



--- Saminathan Palanivel <[email protected]> wrote:

> Hi,
>  String[] xAxisLabels = {"1995", 
> 		"1996", "1997", "1998", "1999", 
> 		"2000", "2001", "2002", "2003", "2004"};
> 
>  double[][] data = new double[][]{{1500, 6880, 4510, 2600, 
> 		1200, 1580, 8000, 4555, 4000, 6120}};
> 
> I can use  setNumItems method to limit the number labels in the Y-axis

> For example, I want to display only 1996 and 1997 in x-axis. How can I

> do that in X-axis?
> 
> Thank you very much.
> 
> 



		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 



--__--__--

Message: 2
Date: Wed, 17 Nov 2004 17:39:25 -0800 (PST)
From: "Nathaniel G. Auvil" <[email protected]>
Subject: Re: [jCharts-users] FW: Jcharts issue with multiple series in
line charts
To: [email protected]
Reply-To: [email protected]


just add multiple dimesntions to the line data in the AxisChartDataSet

--- [email protected] wrote:

> Hello All,
> 
> Please may I have you assistance with creating multiple series on the 
> same Line chart?
> 
> I am returning data from a db with the following columns
> 
> Starttime(x axis) ,transaction Name , transaction id , elapsed time(y
> axis)
> 
> 2004-11-15 23:15:00.343	OrderStage1			4
> 29.235000
> 2004-11-15 23:15:42.047	OrderStage2 (PPSR)	9
68.797000
> 2004-11-15 23:17:03.250	OrderStage3			3
> 25.265000
> 2004-11-15 23:45:00.360	OrderStage1			4
> 30.469000
> 2004-11-15 23:45:43.267	OrderStage2 (PPSR)	9
69.703000
> 2004-11-15 23:47:05.377	OrderStage3			3
> 28.500000
> 2004-11-16 00:15:00.343	OrderStage1			4
> 30.703000
> 2004-11-16 00:15:43.563	OrderStage2 (PPSR)	9
70.078000
> 2004-11-16 00:17:06.077	OrderStage3			3
> 30.875000
> 2004-11-16 00:45:00.360	OrderStage1			4
> 30.781000
> 2004-11-16 00:45:43.577	OrderStage2 (PPSR)	9
69.734000
> 2004-11-16 00:47:05.670	OrderStage3			3
> 28.391000
> 2004-11-16 01:15:00.343	OrderStage1			4
> 32.891000
> 
> 
> In this case I have three transaction id's 3, 4 and 9.
> For each of these I am creating a line series where the x axis is the 
> starttime and the y axis is the elapsed time.
> 
> The issue I have is each transaction id has a different data series
> Eg Trans Id 4 has 5 plots, Trans Id 3 has 4 plots
> Is there any way in Jcharts that I can plot multiple series in a line
> chart 
> 
> Any ideas how I can get round this?
> I need to able to display multiple lines on the time x axis and your 
> help would be greatly appreciated
> 
> 
> Thanks
> 
> 
> 
> 
> Karan Oberai
> BT Westside | Apsley | Hemel Hempstead
> Tel: +44 20 7322 4877
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines 
> robust object and relational technologies, making it a perfect match 
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 
> _______________________________________________
> jCharts-users mailing list [email protected]
> https://lists.sourceforge.net/lists/listinfo/jcharts-users
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



--__--__--

_______________________________________________
jCharts-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jcharts-users


End of jCharts-users Digest


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8