String values in X axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Post by RichardWest » Wed Jun 18, 2008 4:59 pm

RedSoxFan620 wrote:where do the Strings go?
The catergory label and the series key are the second and third arguments to addValue(double, Comparable, Comparable). String implements the Comparable interface. Of course, Double, Integre, etc. also implement the Comparable interface which would allow people to use numbers for categories as well.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

Locked