|
From: Nathaniel G. A. <nat...@ya...> - 2003-04-30 13:13:24
|
<quote>
Hello,I downloaded jCharts-0.7.0 a few days ago.
<quote>
Good move! 0.7.2 is that latest release, which contains a couple of bug fixes since 0.7.0
<quote>
I am trying to display a Bar Chart from a servlet. In the sample code the xAxs Labels are
hardcoded as follows: String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", "2003",
"2004" }; I need to extract these x axis lebel values at runtime from a database and have been
passing the values as follows:String[] s = (String[] ) v.toArray ( new String[v.size()] ); where
v is a Vector containing string values. The string array s is then passed into the IAxisDataSeried
constructor as follows:IAxisDataSeries dataSeries = new DataSeries( s, xAxisTitle, yAxisTitle,
title ); This does not appear to work. Sometimes only the first and third x axis label are
printed. Is there a maximum length for these labels ?
<quote>
THe jCharts code will not allow the axis labels to overlap. Perhaps you could make the labels
vertical? Or you would have to increase the width of your chart image to allow for more space.
=====
http://nathaniel-auvil.blog-city.com/
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
|