Software FX Posted January 19, 2000 Report Share Posted January 19, 2000 This code will give you a chart with hardcoded data, you will probably replace the code between OpenDataEx and CloseData with code that loops through a query and pass the points to a chart. <CFOBJECT ACTION="Create" NAME="Chart1" CLASS="ChartFX.WebServer"> <CFSET Chart1.UserAgent=#HTTP_USER_AGENT#> <CFSET Chart1.ChartType=2> <CFSET Chart1.SetArrayProp("Legend",0,"A")> <CFSET Chart1.SetArrayProp("Legend",1,"B")> <CFSET Chart1.SetArrayProp("Legend",2,"C")> <CFSET Chart1.OpenDataEx(1,2,3)> <CFSET Chart1.SetArrayProp("Value",0,10.2)> <CFSET Chart1.SetArrayProp("Value",1,12)> <CFSET Chart1.SetArrayProp("Value",2,7)> <CFSET Chart1.ThisSerie = 1> <CFSET Chart1.SetArrayProp("Value",0,8)> <CFSET Chart1.SetArrayProp("Value",1,16)> <CFSET Chart1.SetArrayProp("Value",2,18)> <CFSET Chart1.CloseData(1)> <CFOUTPUT> #Chart1.GetHtmlTag(300,350,"Auto","Chart1","")# </CFOUTPUT><BR> Regards, Juan Cegarra Software FX, Inc. http://support.softwarefx.com -----Original Message----- From: Chris Denslow [ mailto:shadow@owt.com] Posted At: Monday, January 17, 2000 5:10 PM Posted To: Server Conversation: Cold Fusion Examples Wanted Subject: Cold Fusion Examples Wanted I am trying to use ChartFx 2000 with Cold Fusion without a great deal of success. I just can't seem to get any data into the chart. After getting a littany of meaningless error messages, I am looking for a little help here. Does anyone have any examples of passing data to a chart usinging code? I am trying to put together some scatter plots without much luck. Chris Denslow shadow@owt.com Link to comment Share on other sites More sharing options...
Software FX Posted January 19, 2000 Author Report Share Posted January 19, 2000 This code will give you a chart with hardcoded data, you will probably replace the code between OpenDataEx and CloseData with code that loops through a query and pass the points to a chart. <CFOBJECT ACTION="Create" NAME="Chart1" CLASS="ChartFX.WebServer"> <CFSET Chart1.UserAgent=#HTTP_USER_AGENT#> <CFSET Chart1.ChartType=2> <CFSET Chart1.SetArrayProp("Legend",0,"A")> <CFSET Chart1.SetArrayProp("Legend",1,"B")> <CFSET Chart1.SetArrayProp("Legend",2,"C")> <CFSET Chart1.OpenDataEx(1,2,3)> <CFSET Chart1.SetArrayProp("Value",0,10.2)> <CFSET Chart1.SetArrayProp("Value",1,12)> <CFSET Chart1.SetArrayProp("Value",2,7)> <CFSET Chart1.ThisSerie = 1> <CFSET Chart1.SetArrayProp("Value",0,8)> <CFSET Chart1.SetArrayProp("Value",1,16)> <CFSET Chart1.SetArrayProp("Value",2,18)> <CFSET Chart1.CloseData(1)> <CFOUTPUT> #Chart1.GetHtmlTag(300,350,"Auto","Chart1","")# </CFOUTPUT><BR> Regards, Juan Cegarra Software FX, Inc. http://support.softwarefx.com -----Original Message----- From: Chris Denslow [ mailto:shadow@owt.com] Posted At: Monday, January 17, 2000 5:10 PM Posted To: Server Conversation: Cold Fusion Examples Wanted Subject: Cold Fusion Examples Wanted I am trying to use ChartFx 2000 with Cold Fusion without a great deal of success. I just can't seem to get any data into the chart. After getting a littany of meaningless error messages, I am looking for a little help here. Does anyone have any examples of passing data to a chart usinging code? I am trying to put together some scatter plots without much luck. Chris Denslow shadow@owt.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.