From: Nathaniel G. A. <nat...@ya...> - 2003-08-08 02:01:45
|
sure. use the PreAxisValueRenderListener interface to implement your own Paint assignment on each Bar. As in the following which Paints each Bar in a different Paint. Set this implementation onto the BarChartProperties Object. public class MultiPaintRenderer implements PreAxisValueRenderListener { /********************************************************************************* * * @param axisValueRenderEvent *********************************************************************************/ public void preRender( AxisValueRenderEvent axisValueRenderEvent ) { axisValueRenderEvent.getGraphics2D().setPaint( TestDataGenerator.getRandomPaint() ); } } --- ME Adrian <ya_...@ya...> wrote: > Hi, > Thanks for the solution for the question posted by me > earlier on. > I got another new question. For the bar chart, can i > display different color for different data member? > That is a normal bar chart(not a clustered one) will > actually have different color for different data. > > Thank You! > > __________________________________________________ > Do You Yahoo!? > Send free SMS from your PC! > http://sg.sms.yahoo.com > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |