I have implemented my own scrolling barchart quite successfully. I have an external Data class that 'serves' subsections of its data to another class that displays this data. When an adjustment is detected on the scrollbar a new subsection is requested and displayed. This works quite well but I don't know how to set the numbers below the bars (Category Labels) to reflect the number of the bar with respect to the entire data set rather than the number of the bar in the current view/subsection. Can anybody help me please.
Obviously I know the range of the current view but just don't know how to set an 'offset' in the category labels.
offset numbers at bottom of BarChart
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The category labels come from the column keys in the dataset, so you should look at what your custom dataset is returning from the getColumnKey(int) method.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

