Display text instead of numbers in XYPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ben Kim

Display text instead of numbers in XYPlot

Post by Ben Kim » Mon Jul 22, 2002 9:58 pm

DG,

Is it possible to display text instead of numbers for the X coordinate in a XY Scatter plot? I love the features of this chart but I also need labels for each X value.

Thanks in advance and thanks for such a nice charting package.
Ben

David Gilbert

Re: Display text instead of numbers in XYPlot

Post by David Gilbert » Thu Jul 25, 2002 3:30 pm

There's two possibilities...use the HorizontalSymbolicAxis (I think it should work, but I haven't tried it), or switch to a CategoryPlot and set a new LineAndShapeRenderer that only displays shapes.

Regards,

DG.

Locked