How to force labels? Maybe custom renderer?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
joelwyland
Posts: 15
Joined: Wed Jun 02, 2004 10:26 pm

How to force labels? Maybe custom renderer?

Post by joelwyland » Fri Jun 04, 2004 11:48 pm

Hi all,

I've got a dataset of words and some values about those words. I want to make a scatter plot that puts a point on the XYPlot based on the (x,y) values I put in the dataset, but I'd like the word to appear as a label for that point. Does that make sense?

For example, I have a word, it's frequency within a document and it's "importance" to the document. I want to plot a point at (frequency,importance) and have the word next to the point. So you can look at the graph and immediately see which words are represented by the points.

I think in all of my digging through the docs, I found that an XYPlot won't let you put labels on the values because they don't think it's "good." Tooltips are only partially useful because you have to go hover, so I'd like to use labels.

Any help on this is appreciated.

Kenny

Locked