Search found 9 matches

by keyboarder
Thu May 08, 2008 1:43 pm
Forum: JFreeChart
Topic: how do i customize bars colors in Bar chart..
Replies: 8
Views: 9405

hi sreehari.ojili

You need to override the method getItemPaint in the BarRenderer class...

Example:

Code: Select all

plot.setRenderer(new BarRenderer(){
     public Paint getItemPaint(int row, int item) {
          if (item == 0) return Color.RED;
     }
}); 
I hope that help you...


hug,
Keyboarder
by keyboarder
Wed May 07, 2008 12:29 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

thank you Richard


You really have help me a lot...


hug,
Keyboarder
by keyboarder
Tue May 06, 2008 3:50 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

one more question Richard:

Could I use XYLineAnnotation Class to draw lines between the series or not?


Thanks!!


Hug,
Keyboarder
by keyboarder
Tue May 06, 2008 1:22 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

thank you RichardWest once again... But I still have a question: To draw polygons I can use the Polygon Class??? I Try to use this class, but I have some difficulties because I need to use the panel coordinates to draw the lines of the polygon and not the values in my dataset... I'm sorry my poor En...
by keyboarder
Wed Apr 30, 2008 1:46 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

Now, I need to make this graphic using XYDifferenceRenderer but I don't know how to do this because I can't use three series in the XYDifferenceRenderer... Using the XYDifferenceRenderer was a hack. What you really need to do is create a custom renderer. You could probably extend the XYLineAndShape...
by keyboarder
Tue Apr 29, 2008 12:33 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

Hi friends... I've a new problem: Now, I need to make this graphic using XYDifferenceRenderer but I don't know how to do this because I can't use three series in the XYDifferenceRenderer... http://img108.imageshack.us/img108/8284/normalpreenchidokb1qx3.jpg How can I make this? thanks, Keyboarder
by keyboarder
Thu Apr 24, 2008 12:55 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

Re: How make a normal distribution using JFreeChart?

I already made the dataset that show the distribution curve but I don't know how to create a new dataset and to fill the area. DatasetUtilities.sampleFunction2D returns an XYDataset, but really the returned object is an XYSeriesCollection . Therefore, you can typecast the returned object to an XYSe...
by keyboarder
Wed Apr 23, 2008 3:46 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

Re: How make a normal distribution using JFreeChart?

I need to make a Normal Distribution but I don't know how... Create a NormalDistributionFunction2D using the mean and standard deviation you desire. The use DatasetUtilities.sampleFunction2D() to create an XYDataset for that Gaussian. You can then plot this dataset to show the distribution curve. F...
by keyboarder
Thu Apr 17, 2008 2:49 pm
Forum: JFreeChart
Topic: How make a normal distribution using JFreeChart?
Replies: 17
Views: 19744

How make a normal distribution using JFreeChart?

Hi friends,


I need to make a Normal Distribution but I don't know how...


I have this graphic:

img149.imageshack.us/img149/5900/normalbo1.png


and I need to make this:


img301.imageshack.us/img301/2382/normalpreenchidokb1.png



if somebody can help me.... :D


hugs![/img]