Cluster Bar Chart

"Rew, Robert L" <[email protected]> Mon, 17 Jul 2006 11:32:36 -0500
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <4F5CA8D7D1561B45A128D35DB86BA8F8093632EE@IOWAEVS03.iowa.uiowa.edu>
This is a multi-part message in MIME format.

--===============1065956741==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C6A9BE.9D2C053A"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C6A9BE.9D2C053A
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Are there any problems with moving to JDK 1.5 and Tomcat 5.5 using
jCharts?  =20

=20

I had a clustered bar chart working with jdk 1.4 and Tomcat 4.1.30.  As
soon as we upgraded to the above, no chart displays at all, yet there
are no errors indicated in my application log file nor the Tomcat log
files.

I had made no code modifications.

=20

I know the encoders indicate that you must have jdk 1.4, but I assumed
that meant at least jdk 1.4.

=20

My code looks as follows:

=20

String xAxisTitle =3D "Grades";

String yAxisTitle =3D "Percent";

String title =3D "Grade Distribution";

DataSeries dataSeries =3D new DataSeries( xAxisLabels, xAxisTitle,
yAxisTitle, title );

=20

String[] legendLabels =3D { "Section", "Course", "Department" };

Paint[] paints =3D new Paint[]{ Color.yellow, Color.green, Color.blue };

ClusteredBarChartProperties clusteredBarChartProperties =3D new
ClusteredBarChartProperties();

clusteredBarChartProperties.setWidthPercentage( 0.7f );

clusteredBarChartProperties.setShowOutlinesFlag(true);

=20

AxisChartDataSet axisChartDataSet =3D new AxisChartDataSet( data,
legendLabels, paints, ChartType.BAR_CLUSTERED,
clusteredBarChartProperties );

dataSeries.addIAxisPlotDataSet( axisChartDataSet );

=20

ChartProperties chartProperties =3D new ChartProperties();

AxisProperties axisProperties =3D new AxisProperties();

LegendProperties legendProperties =3D new LegendProperties();

AxisChart axisChart =3D new AxisChart( dataSeries, chartProperties,
axisProperties, legendProperties, 1000, 500  );

=20

AxisChart axisChart =3D
(AxisChart)request.getSession().getAttribute("gradeBarGraph");

JPEGEncoder.encode(axisChart, 1.0f, response.getOutputStream());

=20

=20

=20

Any suggestions?


------_=_NextPart_001_01C6A9BE.9D2C053A
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Are there any problems with moving to JDK 1.5 and =
Tomcat 5.5
using jCharts?&nbsp; &nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I had a clustered bar chart working with jdk 1.4 and =
Tomcat
4.1.30.&nbsp; As soon as we upgraded to the above, no chart displays at =
all,
yet there are no errors indicated in my application log file nor the =
Tomcat log
files.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I had made no code modifications.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I know the encoders indicate that you must have jdk =
1.4, but
I assumed that meant at least jdk 1.4.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>My code looks as follows:</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>String xAxisTitle =3D =
&quot;Grades&quot;;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>String yAxisTitle =3D =
&quot;Percent&quot;;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>String title =3D &quot;Grade =
Distribution&quot;;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>DataSeries dataSeries =3D new DataSeries( =
xAxisLabels,
xAxisTitle, yAxisTitle, title );</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>String[] legendLabels =3D { &quot;Section&quot;,
&quot;Course&quot;, &quot;Department&quot; };</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Paint[] paints =3D new Paint[]{ Color.yellow, =
Color.green,
Color.blue };</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>ClusteredBarChartProperties =
clusteredBarChartProperties =3D
new ClusteredBarChartProperties();</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>clusteredBarChartProperties.setWidthPercentage( 0.7f =
);</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>clusteredBarChartProperties.setShowOutlinesFlag(true);=
</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>AxisChartDataSet axisChartDataSet =3D new =
AxisChartDataSet(
data, legendLabels, paints, ChartType.BAR_CLUSTERED,
clusteredBarChartProperties );</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>dataSeries.addIAxisPlotDataSet( axisChartDataSet =
);</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>ChartProperties chartProperties =3D new =
ChartProperties();</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>AxisProperties axisProperties =3D new =
AxisProperties();</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>LegendProperties legendProperties =3D new =
LegendProperties();</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>AxisChart axisChart =3D new AxisChart( dataSeries,
chartProperties, axisProperties, legendProperties, 1000, 500&nbsp; =
);</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>AxisChart axisChart =3D
(AxisChart)request.getSession().getAttribute(&quot;gradeBarGraph&quot;);<=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>JPEGEncoder.encode(axisChart, 1.0f,
response.getOutputStream());</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Any suggestions?</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C6A9BE.9D2C053A--


--===============1065956741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

--===============1065956741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
jCharts-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jcharts-users

--===============1065956741==--