You should be able to use a custom XYItemLabelGenerator
, as shown here. Return null
for each item in the series except the last.
Jfreechart TimeSeriesChart Label on Last Item
-
01-06-2022 - |
Question
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:
After:
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow