bfollek Posted January 21, 2008 Report Share Posted January 21, 2008 I'm using JDBCDataProvider and setDataSource() to create a bar chart in a servlet. I want to change the colors of the bars to red. Do I have to loop through all the points and setPoint() each point with an appropriate PointAttributes object, or is there some better way to do this? TIA Quote Link to comment Share on other sites More sharing options...
GabrielA Posted January 21, 2008 Report Share Posted January 21, 2008 You can set the color to the series: chart1.getSeries().getItem(0).setColor(java.awt.Color.BLACK); Quote Link to comment Share on other sites More sharing options...
bfollek Posted January 21, 2008 Author Report Share Posted January 21, 2008 Thanks. Exactly what I was looking for. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.