I've added some XYseries in a XYSeriesCollection on a XYLineChart.
Zoom doesn't display lines if there aren't points of the XYseries inside the zoom area, even if a line (between two point outside the area) intersect the Zoom Area.
Zoom doesn't display lines if no points inside zoom area
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Zoom doesn't display lines if no points inside zoom area
Can you reproduce this with any of the demo programs in JFreeChart 1.0.13 (e.g. using the web start demo on the JFreeChart home page)? I couldn't. Is there a specific renderer you are using? Can you post a small self-contained demo?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Zoom doesn't display lines if no points inside zoom area
In my code I've used this renderer:
renderer = (XYLineAndShapeRenderer) plot.getRenderer(0);
renderer.setDrawSeriesLineAsPath(true);
plotDataset.addSeries(serieDati);
renderer.setSeriesShapesVisible(nserie, false);
renderer.setSeriesPaint(nserie, Color.BLACK);
renderer.setSeriesStroke(nserie, new BasicStroke(0.01f));
It seems that in the WebStart examples which use this renderer
ther's not this problem but, I presume, I don't make anythig strange
in my code.
renderer = (XYLineAndShapeRenderer) plot.getRenderer(0);
renderer.setDrawSeriesLineAsPath(true);
plotDataset.addSeries(serieDati);
renderer.setSeriesShapesVisible(nserie, false);
renderer.setSeriesPaint(nserie, Color.BLACK);
renderer.setSeriesStroke(nserie, new BasicStroke(0.01f));
It seems that in the WebStart examples which use this renderer
ther's not this problem but, I presume, I don't make anythig strange
in my code.
Re: Zoom doesn't display lines if no points inside zoom area
Could it be that your JFreeChart is version 1.0.10 or older?
See http://www.jfree.org/phpBB2/viewtopic.p ... 510#p73510
If the answer is yes, either update your JFreeChart libraries or alternatively do this
See http://www.jfree.org/phpBB2/viewtopic.p ... 510#p73510
If the answer is yes, either update your JFreeChart libraries or alternatively do this
Code: Select all
renderer.setDrawSeriesLineAsPath(false);
Re: Zoom doesn't display lines if no points inside zoom area
I'm using jfreechart-1.0.13, the problem persists even if I put the setDrawSeriesLineAsPath to false