A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
potterd64
- Posts: 13
- Joined: Fri Aug 18, 2006 7:54 pm
Post
by potterd64 » Fri Aug 18, 2006 8:01 pm
Hi, I'm trying to crete an XYSeries chart that has disconnected points as well as connected points. I thought I might do this by making a XYSeriesCollection and then adding as many XYSeries to it as I needed. That way I could have a bunch of disconnected lines but have them still belong to one piece of data. I thought this might be a problem though because the legend at the bottom would list each series that I added to the whole collection, when I would really just want it to list one name to represent all of the series. Is there a way to either add a disconnected point to an XYSeries, or to not display an XYSeries title in the legend?
-
potterd64
- Posts: 13
- Joined: Fri Aug 18, 2006 7:54 pm
Post
by potterd64 » Mon Aug 21, 2006 5:49 pm
figured it out if anyone is interested. It's an easy solution, just had to look over the API a little more carefully. You can add gaps in your xy line charts by just adding a point with a null y value where you want your gap to be.
-
seimen
- Posts: 3
- Joined: Mon Jul 24, 2006 12:29 pm
Post
by seimen » Tue Aug 22, 2006 9:49 am
thanks a lot. i was just trying to make something like in YIntervalDemo, but this way it is a LOT easier than writing my own IntervalDataset, because i can use a series which is more easy to update if datachanges happen.