From: Anthony H. <har...@ho...> - 2003-04-29 17:30:51
|
<html><div style='background-color:'><DIV>Hello,</DIV> <DIV>I downloaded jCharts-0.7.0 a few days ago. I am trying to display a Bar Chart from a servlet. In the sample code the xAxs Labels are hardcoded as follows: </DIV> <DIV><STRONG>String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", "2003", "2004" };</STRONG></DIV> <DIV> </DIV> <DIV>I need to extract these x axis lebel values at runtime from a database and have been passing the values as follows:</DIV> <DIV><STRONG><FONT size=2>String[] s = (String[] ) v.toArray ( </FONT><FONT color=#7f0055 size=2>new</FONT></STRONG><FONT size=2><STRONG> String[v.size()] ); </STRONG>where v is a Vector containing string values. The string array <STRONG>s </STRONG>is then passed into the IAxisDataSeried constructor as follows:</FONT></DIV> <DIV><STRONG><FONT size=2><FONT size=2>IAxisDataSeries dataSeries = </FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> DataSeries( s, xAxisTitle, yAxisTitle, title );</FONT></FONT></STRONG></DIV> <DIV><STRONG><FONT size=2><FONT size=2></FONT></FONT></STRONG> </DIV> <DIV><FONT size=2><FONT size=2>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 ? Or is there a problem with passing in a Strting array in this fashion ?</FONT></FONT></DIV> <DIV><FONT size=2><FONT size=2>Any help would be appreciated.</FONT></FONT></DIV> <DIV><FONT size=2><FONT size=2>Regards,</FONT></FONT></DIV> <DIV><FONT size=2><FONT size=2>Anthony Harrington.</DIV></FONT></FONT><BR></div><br clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMZEN/2743">ELIMINATE E-MAIL VIRUSES. </a> Get 2 months FREE*.</html> |