1

I need a label on each last Item of all Series in Jfreechart's TimeSeriesChart.

The data I used is generated from a Database, so there's a way to get each last position of a Series.

Before:

https://i.stack.imgur.com/SYOMc.png

After: https://i.stack.imgur.com/SVpMM.png

Jubin Patel
  • 1,959
  • 19
  • 38
Tobias S
  • 13
  • 2
  • Welcome to stackoverflow! Is it a question? Please state clearly if you need help with anything (is your "After" example a present state, or a desired solution?). – Elist Jun 25 '13 at 08:48
  • Hi Elist, it's a question of course. The "after" example is my desired solution. The question is, how to get there. I only get labels for all items, but not for specific the last one's of each series. – Tobias S Jun 25 '13 at 09:05

1 Answers1

1

You should be able to use a custom XYItemLabelGenerator, as shown here. Return null for each item in the series except the last.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045