Search code examples
javajfreechart

JFreechart set String value and/or Symbol to Xaxis


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:

image


Solution

  • Depending on the desired effect,