Hi,
I am rendering a DefaultCategoryDataset using a a BarRenderer
and would only like to display the very first and very last Category Label (i.e. the label for an actual Bar). Is it possible to use a specific Axis class to do this or is the only way to leave the values out of the dataset to begin with.
Cheers,
nick
selectively display DomainAxis values
Re: selectively display DomainAxis values
This may not be the sole solution, but certainly the easiest.pelski wrote: or is the only way to leave the values out of the dataset to begin with.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The key for each category is an instance of Comparable and the toString() method is used to create the displayed label. So one way to get a category with no label is to write a small class that implements Comparable and has a toString() method that returns the empty string. But bear in mind that your users will see some data with no explanatory label...
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

