In scientific applications one often needs to generate a line plot or a scatter plot with error bars. I am looking for information on how to do this using JFreeChart. Eventually, I'd like to invoke the functionality using the Cewolf taglib.
Here is an example:
x: 1, 2, 3, 4, 5
y: 3, 1, 2, 5, 4
errors: 0.5, 0.2, 0.3, 0.1, 0.4
Wanted: a scatter plot that draws a symbol (usually a circle) at the (x, y) position, and then for each point a little vertical bar centered on the point. The length of the bar is twice the indicated error.
I expect the functionality to exist in both JFreeChart and Cewolf, but I have searched in vain so far. A pointer to the spot in the documentation would be welcome. An example for a data set producer, or better a JSP would be even more welcome.
Thanks a lot.