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 |