Annotation on subcategories in stackedbarchart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
molson
Posts: 2
Joined: Wed Oct 26, 2005 9:06 pm

Annotation on subcategories in stackedbarchart

Post by molson » Wed Oct 26, 2005 9:10 pm

How would I place an annotation on subcategories? Say I have 2 categories, and each of those has 3 subcategories. I can only see how to annotate a category, not a subcategory.

Also, is there any way to have a label that displays text instead of the actual value?

I have subcategories which have stacked values. I'd like each division in each stack to have text inside that says what the stack is, i.e say the stack divisions were days of the week, each stack division would say the day inside, i.e. mon, tues, wed. etc.

Thanks!
Mike

rcdjbp
Posts: 6
Joined: Thu Jul 26, 2007 4:43 pm

Annotate Stacked BarChart

Post by rcdjbp » Tue Aug 14, 2007 1:16 pm

Hi Mike,

Did you figure this out? I have been trying to do this, but no success so far.

Thanks, Jabe
rcdjbp@yahoo.com

jwenting
Posts: 157
Joined: Sat Jul 15, 2006 7:46 am

Post by jwenting » Tue Aug 14, 2007 2:30 pm

I seriously doubt he'll ever be back to read your question. His second and last post was in mid december 2005 :)

rcdjbp
Posts: 6
Joined: Thu Jul 26, 2007 4:43 pm

Thanks

Post by rcdjbp » Tue Aug 14, 2007 4:04 pm

Thanks, I will try a new post.
Thanks, Jabe
rcdjbp@yahoo.com

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 » Wed Aug 15, 2007 11:23 am

The category annotations can't be positioned at a subcategory, unfortunately. But you might be able to do what you want using a custom item label generator in the renderer.
David Gilbert
JFreeChart Project Leader

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

Locked