From: Parul G. <par...@st...> - 2003-12-05 04:30:08
|
Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul |
From: Parul G. <par...@st...> - 2003-12-05 04:37:51
|
Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul |
From: Christian P. <chr...@ip...> - 2003-12-05 10:12:04
|
The following code snippet will do the trick: ValueLabelRenderer valueLabelRenderer=3Dnew ValueLabelRenderer(false,false,true, -1 ); valueLabelRenderer.setValueChartFont(chFont); //ChartFont chFont valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP); valueLabelRenderer.setPixelValuePadding(paddingHeight); valueLabelRenderer.useVerticalLabels(true); clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer= ); Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 5. december 2003 05:37 To: jCh...@li... Subject: [jCharts-users] How to show Value labels, with clustered Bar = charts Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Parul G. <par...@st...> - 2003-12-06 07:47:41
|
Hello, Thanks for the code snippet.=20 I tried it, but it gives wrong labels. In fact it looks like all the = labels in one cluster are being overwritten on top of each other, instead of = being shown seperately, on each bar.=20 Please suggest whats wrong. Thank you -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Christian Petersen Sent: Friday, December 05, 2003 3:08 PM To: jch...@li... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts The following code snippet will do the trick: ValueLabelRenderer valueLabelRenderer=3Dnew ValueLabelRenderer(false,false,true, -1 ); valueLabelRenderer.setValueChartFont(chFont); //ChartFont chFont valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP); valueLabelRenderer.setPixelValuePadding(paddingHeight); valueLabelRenderer.useVerticalLabels(true); clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer= ); Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 5. december 2003 05:37 To: jCh...@li... Subject: [jCharts-users] How to show Value labels, with clustered Bar = charts Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Christian P. <chr...@ip...> - 2003-12-06 08:27:50
|
I see your problem, and in fact I have had it as well. It seems to me = that there is a minor bug which causes the values to be rendered on top of = the last one but only when the value is 0.0. I have fixed this by changing = the source to only render values larger than 0.0. (Very easy - I just moved = one line inside an already present if). If you want I can email you either = the altered source file, or the recompiled jchart jar.=20 Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 6. december 2003 08:47 To: jch...@li... Cc: chr...@ip... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts Hello, Thanks for the code snippet.=20 I tried it, but it gives wrong labels. In fact it looks like all the = labels in one cluster are being overwritten on top of each other, instead of = being shown seperately, on each bar.=20 Please suggest whats wrong. Thank you -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Christian Petersen Sent: Friday, December 05, 2003 3:08 PM To: jch...@li... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts The following code snippet will do the trick: ValueLabelRenderer valueLabelRenderer=3Dnew ValueLabelRenderer(false,false,true, -1 ); valueLabelRenderer.setValueChartFont(chFont); //ChartFont chFont valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP); valueLabelRenderer.setPixelValuePadding(paddingHeight); valueLabelRenderer.useVerticalLabels(true); clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer= ); Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 5. december 2003 05:37 To: jCh...@li... Subject: [jCharts-users] How to show Value labels, with clustered Bar = charts Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Parul G. <par...@st...> - 2003-12-06 08:49:18
|
Hi Christian, It would be great if you could send both the the altered source file and = the recompiled jar. Thanks Parul -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Christian Petersen Sent: Saturday, December 06, 2003 1:58 PM To: jch...@li... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts I see your problem, and in fact I have had it as well. It seems to me = that there is a minor bug which causes the values to be rendered on top of = the last one but only when the value is 0.0. I have fixed this by changing = the source to only render values larger than 0.0. (Very easy - I just moved = one line inside an already present if). If you want I can email you either = the altered source file, or the recompiled jchart jar.=20 Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 6. december 2003 08:47 To: jch...@li... Cc: chr...@ip... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts Hello, Thanks for the code snippet.=20 I tried it, but it gives wrong labels. In fact it looks like all the = labels in one cluster are being overwritten on top of each other, instead of = being shown seperately, on each bar.=20 Please suggest whats wrong. Thank you -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Christian Petersen Sent: Friday, December 05, 2003 3:08 PM To: jch...@li... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts The following code snippet will do the trick: ValueLabelRenderer valueLabelRenderer=3Dnew ValueLabelRenderer(false,false,true, -1 ); valueLabelRenderer.setValueChartFont(chFont); //ChartFont chFont valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP); valueLabelRenderer.setPixelValuePadding(paddingHeight); valueLabelRenderer.useVerticalLabels(true); clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer= ); Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 5. december 2003 05:37 To: jCh...@li... Subject: [jCharts-users] How to show Value labels, with clustered Bar = charts Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Parul G. <par...@st...> - 2003-12-06 09:58:31
|
Please send me the altered source file thanks parul -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Christian Petersen Sent: Saturday, December 06, 2003 1:58 PM To: jch...@li... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts I see your problem, and in fact I have had it as well. It seems to me = that there is a minor bug which causes the values to be rendered on top of = the last one but only when the value is 0.0. I have fixed this by changing = the source to only render values larger than 0.0. (Very easy - I just moved = one line inside an already present if). If you want I can email you either = the altered source file, or the recompiled jchart jar.=20 Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 6. december 2003 08:47 To: jch...@li... Cc: chr...@ip... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts Hello, Thanks for the code snippet.=20 I tried it, but it gives wrong labels. In fact it looks like all the = labels in one cluster are being overwritten on top of each other, instead of = being shown seperately, on each bar.=20 Please suggest whats wrong. Thank you -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Christian Petersen Sent: Friday, December 05, 2003 3:08 PM To: jch...@li... Subject: RE: [jCharts-users] How to show Value labels, with clustered = Bar charts The following code snippet will do the trick: ValueLabelRenderer valueLabelRenderer=3Dnew ValueLabelRenderer(false,false,true, -1 ); valueLabelRenderer.setValueChartFont(chFont); //ChartFont chFont valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP); valueLabelRenderer.setPixelValuePadding(paddingHeight); valueLabelRenderer.useVerticalLabels(true); clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer= ); Regards Christian Petersen -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of Parul = GOYAL Sent: 5. december 2003 05:37 To: jCh...@li... Subject: [jCharts-users] How to show Value labels, with clustered Bar = charts Hi, I have made a clustered bar chart using JCharts. Now I want Value Labels = to appear at the top of EACH bar of every cluster.=20 If I use the sample code(for Value Labels), that is given in examples, = it works fine with simple Bar chart, but doesn't work with Clustered bar = chart. Can somebody help, please ? Thanks Parul ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's Free Linux Tutorials. Learn everything from the bash shell to sys = admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2003-12-06 15:41:23
|
Wow. Yes this is a bug; good find. Can you post your fix, and I will include it in the source? --- Christian Petersen <chr...@ip...> wrote: > I see your problem, and in fact I have had it as well. It seems to me that > there is a minor bug which causes the values to be rendered on top of the > last one but only when the value is 0.0. I have fixed this by changing the > source to only render values larger than 0.0. (Very easy - I just moved one > line inside an already present if). If you want I can email you either the > altered source file, or the recompiled jchart jar. > > Regards > Christian Petersen > > -----Original Message----- > From: jch...@li... > [mailto:jch...@li...] On Behalf Of Parul GOYAL > Sent: 6. december 2003 08:47 > To: jch...@li... > Cc: chr...@ip... > Subject: RE: [jCharts-users] How to show Value labels, with clustered Bar > charts > > Hello, > > Thanks for the code snippet. > I tried it, but it gives wrong labels. In fact it looks like all the labels > in one cluster are being overwritten on top of each other, instead of being > shown seperately, on each bar. > > Please suggest whats wrong. > > Thank you > > -----Original Message----- > From: jch...@li... > [mailto:jch...@li...] On Behalf Of Christian > Petersen > Sent: Friday, December 05, 2003 3:08 PM > To: jch...@li... > Subject: RE: [jCharts-users] How to show Value labels, with clustered Bar > charts > > > The following code snippet will do the trick: > > ValueLabelRenderer valueLabelRenderer=new > ValueLabelRenderer(false,false,true, -1 ); > valueLabelRenderer.setValueChartFont(chFont); //ChartFont chFont > valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP); > valueLabelRenderer.setPixelValuePadding(paddingHeight); > valueLabelRenderer.useVerticalLabels(true); > clusteredBarChartProperties.addPostRenderEventListener(valueLabelRenderer); > > > Regards > Christian Petersen > > -----Original Message----- > From: jch...@li... > [mailto:jch...@li...] On Behalf Of Parul GOYAL > Sent: 5. december 2003 05:37 > To: jCh...@li... > Subject: [jCharts-users] How to show Value labels, with clustered Bar charts > > Hi, > > I have made a clustered bar chart using JCharts. Now I want Value Labels to > appear at the top of EACH bar of every cluster. > If I use the sample code(for Value Labels), that is given in examples, it > works fine with simple Bar chart, but doesn't work with Clustered bar chart. > > Can somebody help, please ? > > Thanks > Parul > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=ick > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=ick > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=ick > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |
From: Christian P. <chr...@ip...> - 2003-12-07 10:46:56
|
Here goes - let me know if you would prefer the entire file (I just thought I would spare the rest of the list :-) ). Source file: ClusteredBarChart.java Line 377: barChartProperties.firePostRender( axisValueRenderEvent ); I just moved this line up and inside the nearest closing bracket. Last but not least - great product. Really Great. Keep up the good work - and please let me know if you need help. Regards Christian Petersen Copenhagen, Denmark |
From: Nathaniel G. A. <nat...@ya...> - 2003-12-07 14:18:02
|
No, this was good. I checked it into the current tree and am in the process of updating the site. Thanks. --- Christian Petersen <chr...@ip...> wrote: > Here goes - let me know if you would prefer the entire file (I just thought > I would spare the rest of the list :-) ). > > Source file: ClusteredBarChart.java > > Line 377: barChartProperties.firePostRender( axisValueRenderEvent ); > > I just moved this line up and inside the nearest closing bracket. > > Last but not least - great product. Really Great. Keep up the good work - > and please let me know if you need help. > > > Regards > Christian Petersen > Copenhagen, Denmark > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ |