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/ |