Steped Chart with cewolf - no shapes and no tooltips?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ivo.hechmann
Posts: 3
Joined: Mon Sep 17, 2007 12:52 pm

Steped Chart with cewolf - no shapes and no tooltips?

Post by ivo.hechmann » Tue Sep 18, 2007 2:47 pm

Hello;

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));
			}
		}
 ... 
but ... nothing happens. Also there are no tooltips (are tooltips only active on shapes? Can i have tooltips on the whole line?). Can shapes be added to a stepped chart or is this not supported?

Thanks...

Ivo

Locked