|
From: <kar...@bt...> - 2004-11-18 11:45:42
|
Hi Nathaniel ,
Thanks for your reply
Did you mean adding multiple dimensions like this....
double[][] lineData =3D {d1,d2,d3};
....blah blah
axisChartDataSet =3D new AxisChartDataSet(lineData, lineLegendLabels,
linePaints, ChartType.LINE, lineChartProperties);
dataSeries.addIAxisPlotDataSet(axisChartDataSet);
but the problem here is=20
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=20
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 =09
2. 2004-11-15 23:15:42.047 44
3. 2004-11-15 23:17:03.250 14=09
4. 2004-11-15 23:45:00.360 44 55
5. 2004-11-15 23:45:43.267 19=09
6. 2004-11-15 23:47:05.377 =09
7. 2004-11-16 00:15:00.343 55=09
8. 2004-11-16 00:15:43.563 22
9. 2004-11-16 00:17:06.077 22=09
10. 2004-11-16 00:45:00.360 66 11
Karan Oberai =20
BT Westside | Apsley | Hemel Hempstead
Tel: +44 20 7322 4877
-----Original Message-----
From: jch...@li...
[mailto:jch...@li...] On Behalf Of
jch...@li...
Sent: 18 November 2004 04:16
To: jch...@li...
Subject: jCharts-users digest, Vol 1 #279 - 2 msgs
Send jCharts-users mailing list submissions to
jch...@li...
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
jch...@li...
You can reach the person managing the list at
jch...@li...
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" <nat...@ya...>
Subject: Re: [jCharts-users] X Axis Label Question
To: jch...@li...
Reply-To: jch...@li...
no. You could jsut pass empty Strings for the other labels
--- Saminathan Palanivel <sa...@no...> wrote:
> Hi,
> String[] xAxisLabels =3D {"1995",=20
> "1996", "1997", "1998", "1999",=20
> "2000", "2001", "2002", "2003", "2004"};
>=20
> double[][] data =3D new double[][]{{1500, 6880, 4510, 2600,=20
> 1200, 1580, 8000, 4555, 4000, 6120}};
>=20
> 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?
>=20
> Thank you very much.
>=20
>=20
=09
__________________________________=20
Do you Yahoo!?=20
The all-new My Yahoo! - Get yours free!=20
http://my.yahoo.com=20
=20
--__--__--
Message: 2
Date: Wed, 17 Nov 2004 17:39:25 -0800 (PST)
From: "Nathaniel G. Auvil" <nat...@ya...>
Subject: Re: [jCharts-users] FW: Jcharts issue with multiple series in
line charts
To: jch...@li...
Reply-To: jch...@li...
just add multiple dimesntions to the line data in the AxisChartDataSet
--- kar...@bt... wrote:
> Hello All,
>=20
> Please may I have you assistance with creating multiple series on the=20
> same Line chart?
>=20
> I am returning data from a db with the following columns
>=20
> Starttime(x axis) ,transaction Name , transaction id , elapsed time(y
> axis)
>=20
> 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
>=20
>=20
> 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=20
> starttime and the y axis is the elapsed time.
>=20
> 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=20
>=20
> Any ideas how I can get round this?
> I need to able to display multiple lines on the time x axis and your=20
> help would be greatly appreciated
>=20
>=20
> Thanks
>=20
>=20
>=20
>=20
> Karan Oberai
> BT Westside | Apsley | Hemel Hempstead
> Tel: +44 20 7322 4877
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines=20
> robust object and relational technologies, making it a perfect match=20
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8=20
> _______________________________________________
> jCharts-users mailing list jCh...@li...
> https://lists.sourceforge.net/lists/listinfo/jcharts-users
>=20
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
--__--__--
_______________________________________________
jCharts-users mailing list
jCh...@li...
https://lists.sourceforge.net/lists/listinfo/jcharts-users
End of jCharts-users Digest
|