Only draw lines between currently visible XYSeries points?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Commander Salamander
Posts: 21
Joined: Sat Jan 05, 2008 2:14 am

Only draw lines between currently visible XYSeries points?

Post by Commander Salamander » Tue Dec 16, 2008 10:28 pm

I'm curious if anyone could recommend an efficient way to accomplish this. I have a graph with a very large range on the x-axis that can be viewed by zooming in and scanning along the axis.

I'd like to prevent the connection of lines between points in my XYSeries if they are separated by a large distance on the x-axis. Or, perhaps more simply, I'd like to prevent the connection of lines between an two XY points if one of them is not currently visible.

Any advice would be appreciated.

Thanks!

Locked