heh, I haven't run those things in so long I just took a look and figured
out why I couldn't use the RefreshDataFromURL param.  The applet includes
the CF Server Debugging if you have it on so it was blowing it up.  So if
you use the code below, your monitor.cfm would look something like....

<cfparam name="Industry" default="Tech,Agriculture">
<cfparam name="Percent" default="90,10">
<cfscript>
APPLETTEST = QueryNew("Industry,Percent");

if(IsDefined("Industry")) {
 for(i = 1; i LTE listlen(Industry); i = i + 1) {
  QueryAddRow(APPLETTEST);
  QuerySetCell(APPLETTEST, "Industry", listgetat(industry,i));
  QuerySetCell(APPLETTEST, "Percent",  listgetat(Percent,i));
 }
}
</cfscript>

 Columns:Items,Values

<Cfoutput query="APPLETTEST">
#Industry#,#Percent#
</CFOUTPUT>
----- Original Message -----
From: "Sean Renet" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 3:06 AM
Subject: Re: pie chart


> Well depending on your set up you need to add
> C:\Inetpub\wwwroot\classes\CFGraphs  to your CLASSPATH enviroment variable
> then just set up an applet like normal
>
> <cfparam name="Industry" default="Tech,Agriculture">
> <cfparam name="Percent" default="50,50">
>
> <APPLET CODE="PieChart"  CODEBASE="/classes/CFGraphs/" WIDTH="300"
> HEIGHT="300" >
> <PARAM NAME="ChartData.Columns" VALUE="Items,Values">
> <cfoutput>
> <PARAM NAME="ChartData.Items" VALUE="#Industry#">
> <PARAM NAME="ChartData.Values"  VALUE="#Percent#">
> </cfoutput>
> <PARAM NAME="BackgroundColor"  VALUE="0080C0">
> <PARAM NAME="LegendFontName"  VALUE="Verdana">
> <PARAM NAME="FontColor"  VALUE="FFFFFF">
> <PARAM NAME="Title"  VALUE="Sean's Test CF Java Applet Pie Chart">
> <PARAM NAME="TitleFontName"  VALUE="Times Roman">
> <PARAM NAME="TitleFontHeight"  VALUE="16">
> <PARAM NAME="LegendFontHeight"  VALUE="14">
> <PARAM NAME="ShowDateTime"  VALUE="no">
> <PARAM NAME="RefreshTime" VALUE="10">
> <PARAM NAME="RefreshDataFromURL"
> VALUE="http://www.development.ws/testfolder/monitor.cfm">
> </APPLET>
>
> NOTE: Java is CASE SENSITIVE so PieChart must be capital "P"  Capital "C".
>
>
> I don't think I ever got that RefreshDataFromURL parameter to work which
is
> why I went with cfxgraphicserver
> ----- Original Message -----
> From: "Nick Betts" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, February 28, 2001 2:09 AM
> Subject: RE: pie chart
>
>
> > How would one use these classes to display charts?
> > nik
> >
> > -----Original Message-----
> > From: Sean Renet [mailto:[EMAIL PROTECTED]]
> > Sent: 28 February 2001 10:19
> > To: CF-Talk
> > Subject: Re: pie chart
> >
> >
> > its in C:\Inetpub\wwwroot\classes\CFGraphs  if your inetpub is on your c
> > drive.
> > ----- Original Message -----
> > From: "Mak Wing Lok" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 28, 2001 1:41 AM
> > Subject: Re: pie chart
> >
> >
> > > that's version 3.1, I'm using 4.5, i can't seems to find the Java
> classes
> > in
> > > the CF directory
> > >
> > > mak wl
> > >
> > > ----- Original Message -----
> > > From: "David Shadovitz" <[EMAIL PROTECTED]>
> > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, February 28, 2001 2:57 PM
> > > Subject: RE: pie chart
> > >
> > >
> > > > CF comes with a pie chart Java applet.  Check out the CF 3.1
> > documentation
> > > on
> > > > the bar and pie chart "graphlets" at
> > > > http://telecom.fit.edu/cfdocs/user/ug20.htm.  (Thanks to Al Musella
> for
> > > tipping
> > > > me off to this.)
> > > >
> > > > -David
> > > >
> > > > On Tuesday, February 27, 2001 Sean Renet
> > [SMTP:[EMAIL PROTECTED]]
> > > > wrote:
> > > > > www.cfxgraphicsserver.com
> > > >
> > > > > ----- Original Message -----
> > > > > From: "Mak Wing Lok" <[EMAIL PROTECTED]>
> > > > > To: "CF-Talk" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, February 27, 2001 4:38 PM
> > > > > Subject: pie chart
> > > > > >
> > > > > > anyone knows any nice and cool pie chart custom tags?
> > > >
> > > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to