CategoryPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jaypee
Posts: 32
Joined: Fri Mar 24, 2006 2:35 am

CategoryPlot

Post by jaypee » Mon May 08, 2006 10:49 am

Hi all,

I have a chart which uses DefaultCategoryDataset for the DatasetProducer and CategoryPlot for my ChartPostProcessor. I'm also using CategoryPlot for my renderer.

My prob is how to put CategoryTextAnnotation on specific plots.

I tried using this:

Code: Select all

plot.addAnnotation(new CategoryTextAnnotation("This is a test annotation","Line",0.184));
but it did not place the annotation exactly on the point. How do i set it to display on the exact point? like an x y coordinate?????

Please help. I'm really stumped..

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue May 09, 2006 10:08 am

Can you try to ask your question once only?

http://www.jfree.org/phpBB2/viewtopic.php?t=17234
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

jaypee
Posts: 32
Joined: Fri Mar 24, 2006 2:35 am

Post by jaypee » Tue May 09, 2006 10:25 am

Oh sorry bout that...

I'll try it out using the item labels. I'll have to figure out how to show only the labels that exceed the limits i placed.

Locked