• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

JSP + Jfreechart

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am using Jfreechart to draw a barChart. I am able to get the chart.
Now in my bar i have show the values in multiple colors.

JFreeChart chartope = ChartFactory

.createBarChart("Budget/Actual $(In 1000's)", "",
" ", datasetope,
PlotOrientation.VERTICAL, true, false, false);
CategoryPlot plotrev1 = (CategoryPlot) chartope.getPlot();
BarRenderer rendererope = (BarRenderer) plotrev1.getRenderer();

rendererope.setItemLabelPaint(new Color(0,0,255));

this should change each bar wise

how we can do this one.


I'm doing laundry! Look how clean this tiny ad is:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!