|
From: <kar...@bt...> - 2004-06-16 09:57:19
|
I get a blank image , similar to one when you have the wrong image
path......
I have checked the code a few times but cant seem to figure out why....
Also I am using a BEA weblogic 8 portal server, don't think that should
make any difference though.....
-----Original Message-----
From: jch...@li...
[mailto:jch...@li...] On Behalf Of
Nathaniel G. Auvil
Sent: 15 June 2004 21:38
To: jch...@li...
Cc: jch...@li...
Subject: Re: [jCharts-developers] 3D pie chart in a JSP
this is not the proper forum for this. Please discuss this in the Users
Forum.
what is happening? An Exception?
--- kar...@bt... wrote:
> Hi,
> I was trying to create a 3d Pie chart via a JSP but it doesn't seem to
> work... Any ideas , do you know what I am doing wrong ????
>=20
> See code below.....
>=20
>=20
> Thanks
> Karan
>=20
>=20
>=20
>=20
> <%@ page=20
> =
import=3D"java.awt.*,org.krysalis.jcharts.*,org.krysalis.jcharts.chartDa
> ta
> ..*,
>
org.krysalis.jcharts.properties.*,org.krysalis.jcharts.types.ChartType,o
> rg.krysalis.jcharts.axisChart.*,
>
org.krysalis.jcharts.test.TestDataGenerator,org.krysalis.jcharts.encoder
> s.JPEGEncoder13,
>
org.krysalis.jcharts.properties.util.ChartFont,org.krysalis.jcharts.enco
> ders.ServletEncoderHelper"%>
> <%@ page import=3D"org.krysalis.jcharts.nonAxisChart.PieChart2D"%>
> <%@ page import=3D"org.krysalis.jcharts.nonAxisChart.PieChart3D"%>
> <%
> try
> {
> int width =3D 30;
> int height =3D 50;
> =09
> PieChart2DProperties properties =3D new
PieChart2DProperties();
> LegendProperties legendProperties =3D new
> LegendProperties();
> legendProperties.setNumColumns( 2 );
> legendProperties.setPlacement( LegendProperties.RIGHT );
> ChartProperties chartProperties =3D new ChartProperties();
> =20
> double[] data=3D { 81d, 55d, 39d, 20.6d };
> String[] labels=3D { "BMW M5", "BMW M3", "Viper GTS-R",=20
> "Corvette Z06" };
> Paint[] paints=3D { Color.lightGray, Color.green, Color.blue,=20
> Color.red };
>=20
> PieChart3DProperties pieChart3DProperties=3D new=20
> PieChart3DProperties();
> PieChartDataSet pieChartDataSet=3D new PieChartDataSet( "Cars=20
> That Own",
> data,
> labels,
> paints,
> =20
> pieChart3DProperties );
>=20
> PieChart3D pieChart3D=3D new PieChart3D( pieChartDataSet,
> new LegendProperties(),
> new ChartProperties(),
> 400, 350 );
>=20
> =20
> //PieChart3D pieChart3D=3D new PieChart3D( pieChartDataSet,new =
> LegendProperties(),new ChartProperties(),400, 350 );
> ServletEncoderHelper.encodeJPEG13( pieChart3D, 1.0f, response
);
> }
> catch(Exception e)
> {
> System.out.println(e);
> }
> %>
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference=20
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer=20
> Conference, June 28 - July 1 at the Moscone Center in San Francisco,=20
> CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code=20
> NWMGYKND _______________________________________________
> jCharts-developers mailing list=20
> jCh...@li...
> https://lists.sourceforge.net/lists/listinfo/jcharts-developers
>=20
=09
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn
from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
jCharts-developers mailing list jCh...@li...
https://lists.sourceforge.net/lists/listinfo/jcharts-developers
|