SymbolicAxis for XYPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Ted
Posts: 4
Joined: Mon Mar 29, 2004 2:12 pm

SymbolicAxis for XYPlot

Post by Ted » Mon Mar 29, 2004 6:17 pm

I am trying to do something which is presumably very simple. But I remain successful in failing :?

I have extended AbstractSeriesDataset to represent my own data and implemented both the XYDataset and YisSymbolic. The plot itself is fine, but I fail to get the Y-axis labels like I need them. What I want is to have symbolic (String) axis labels on the Y axis. However, I continue to get the number values from getYValue(), never the String from getYSymbolicValue() - how do I activate the symbolic Y axis ?

I have found the SymbolicAxis class, but the constructor wants a String[] pre-filled with the labels, and I don't have these at that point in time.

What would solve my problem, is a AxisRenderer that knows about the datasets - does such a beast exist?

Thanks for your help,
Ted

Sajjan

using Symbolic on X-Axis

Post by Sajjan » Tue Sep 21, 2004 6:24 pm

Has anybody got an idea how to stop data on Symbolic axis to be used to calculate the distance between two points on X-Axis.

Locked