I create a chart with cewolf (to embed in jsp), an overlaidchart with a step plot. the lines are drawn without shapes. i tried to force shapes in the postprocessor:
Code: Select all
private final void preventLineOverlap(final XYPlot plot) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(">>> ENTER");
}
for (int i = 0; i < plot.getDatasetCount(); i++) {
TimeSeriesCollection tsCollection =
(TimeSeriesCollection) plot.getDataset(i);
// iterate over all timeseries
for (int j = 0; j < tsCollection.getSeriesCount(); j++) {
TimeSeries series = (TimeSeries) tsCollection.getSeries(j);
plot.getRenderer(i).setSeriesShape(j,new Rectangle(20,20));
}
}
...
Thanks...
Ivo