Вопрос

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:

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

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

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top