Reputation: 23
I have a chart whose data are obtained from the database and the client now needs to be symbols printed below the X axis in the curve peaks.
I tried something like NumberAxis.createIntegerTickUnits()
method, but to no avail.
How do I replace the values of the X axis by the symbols?
The needed chart is this:
Upvotes: 2
Views: 1734
Reputation: 205865
Depending on the desired effect,
Consider using a SymbolAxis
, illustrated here on the range axis.
Consider using an XYItemLabelGenerator
, illustrated here.
Upvotes: 3