Hi david,
I recently faced the same problem what pankaj faced.
I have a scatterplot and i want non-numeric values for the x-axis.
I cant use category plot as i have to use XYLineAndShapeRenderer.
Whereas using SymbolAxis makes most of my values disappear.
How to use SymbolAxis for XYPlot correctly?
Thanks in advance.
-kash
Thread continued ....
--------------------
Hi Friends
I am new to the JFreeChart environment.
I am trying to plot a Line chart having 3 series.
If I use numeric values for X axis values, I am good.
eg
XYSeries series1 = new XYSeries("Actual");
series1.add(4.0, 5.0);
The problem arises when I want to use String values for X co-ordinates.
Can anyone help me out on this ?
Thanks in advance Very Happy
Regards
PostPosted: Fri Sep 22, 2006 9:18 am
Post subject: Reply with quote
You have two options:
(1) Use the CategoryPlot class - this is designed for non-numeric x-values;
(2) Keep using XYPlot, but replace the x-axis with a SymbolAxis, and code your dataset accordingly (x values as integer index values).
_________________
Regards,
Dave Gilbert
JFreeChart Project Leader