I am trying to add the error bars over the datapoints in a scatter plot using XYErrorRenderer. The dataset used is XYDataset. The code I have used for it is:
XYErrorRenderer rendererPoints = new XYErrorRenderer();
rendererPoints.setShapesVisible(true);
rendererPoints.setDrawXError(false);
rendererPoints.setDrawYError(true);
rendererPoints.setCapLength(new Double(0.2));
rendererPoints.setShapesFilled(true);
rendererPoints.setLinesVisible(false);
I want to add the error bars vertically, but it is not working for me. Please help.
Hey I have solved the query with the combination of StatasticalCatagoryDataset, StatisticalLineandShapeRenderer… as it provded me the deviation to be included in the datapoints..