2

I'm new to Jfreechart and swing and was trying to create a single graph showing both mean (as line chart) and standard deviation (as whiskers), but failed so far.

I'm trying to make the graph look similar to that:

image

I've tried using graph with multiple datasets but failed to make the renderer (xyrenderer) display the whiskers for the standard deviation.

Is there a better way to do this? perhaps some other free package?

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
giladke
  • 43
  • 1
  • 4

1 Answers1

2

You may be looking for the XYBoxAndWhiskerRenderer, which uses a BoxAndWhiskerXYDataset; the related BoxAndWhiskerRenderer is illustrated here.

image

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • Thanks for your response. However, we are looking for a way of getting just the whiskers without the boxplots. in the class metnioned here they are integrated, is there a way to seperate them? In addition, I'm looking for a way to add an additional layer to the whiskers, that is a continuous line, representing average. How can this be done? – giladke Jan 26 '13 at 11:25
  • You might want to look at `XYErrorRenderer` and also review the `Statistical Charts` in the JWS demo. – trashgod Jan 26 '13 at 11:40