Jump to content
Software FX Community

Re: Axis Formating Not Working


User (Legacy)

Recommended Posts

Since I am on a 30-Day trial, I can't download the service pack.  I'll try 

defining the value and see if it works. Thanks. What about my Axis

formatting problem?

Chris Denslow

"Juan Cegarra" <JuanC@softwarefx.com> wrote in message

news:DE0379D14694D211B4CE00609770710D048968@sftfx-221.wamnet.net...

> The correct line is

>

> <CFSET Chart1.SetArrayProp("Value",4,CHART_HIDDEN)>

>

> But this will only work if CHART_HIDDEN is defined correctly, please

> note that the latest service pack includes an updated version of the

> Include files for ColdFusion (We provide them with a CFI extension).

>

> The definition for CHART_HIDDEN is 1.0e+308 so you may want to try

> hardcoding the value.

>

> Regards,

>

> Juan Cegarra

> Software FX, Inc.

> http://support.softwarefx.com

>

>

> -----Original Message-----

> From: Chris Denslow [ mailto:shadow@owt.com]

> Posted At: Monday, January 24, 2000 11:36 PM

> Posted To: Server

> Conversation: Axis Formating Not Working

> Subject: Oh, and BTW CHART_HIDDEN does not work either

>

>

> Just ran into another problem, the CHART_HIDDEN constant does not seem

> to

> work. Example code is attached below. I have 2 line series. On has

> more

> points than the other. I need to hide the last point of the second

> series

> so the trend line does not nosedive into the x axis. I have tried

> several

> permutations of the setting below, without success:

>

> <CFSET Chart1.SetArrayProp("Value",4,'CHART_HIDDEN')>

>

> I have tried no quotes, single and double quotes around the CHART_HIDDEN

> constant. Nothing seems to get it to recognize it.

>

>

>

> <HTML>

> <HEAD>

> </HEAD>

> <BODY>

> <CFOBJECT ACTION="Create" NAME="Chart1" CLASS="ChartFX.WebServer">

> <CFSET Chart1.UserAgent = #HTTP_USER_AGENT#>

> <cfinclude template="includes/CfxIECF.inc">

>

> <!-- General Settings -->

> <CFSET Chart1.TypeMask = 109576193>

> <CFSET Chart1.MarkerShape = 0>

>

> <!--Data-->

>

> <cfset Chart1.OpenDataEx(COD_XVALUES,2,5)>

> <CFSET Chart1.OpenDataEx(COD_VALUES,2,5)>

>

> <CFSET Chart1.SetArrayProp("XValue",0,1990)>

> <CFSET Chart1.SetArrayProp("XValue",1,1992)>

> <CFSET Chart1.SetArrayProp("XValue",2,1994)>

> <CFSET Chart1.SetArrayProp("XValue",3,1996)>

> <CFSET Chart1.SetArrayProp("XValue",4,1998)>

> <CFSET Chart1.SetArrayProp("Value",0,0)>

> <CFSET Chart1.SetArrayProp("Value",1,100)>

> <CFSET Chart1.SetArrayProp("Value",2,200)>

> <CFSET Chart1.SetArrayProp("Value",3,300)>

> <CFSET Chart1.SetArrayProp("Value",4,1000)>

>

> <CFSET Chart1.ThisSerie = 1>

> <CFSET Chart1.SetArrayProp("XValue",0,1990)>

> <CFSET Chart1.SetArrayProp("XValue",1,1992)>

> <CFSET Chart1.SetArrayProp("XValue",2,1994)>

> <CFSET Chart1.SetArrayProp("XValue",3,1996)>

> <CFSET Chart1.SetArrayProp("XValue",4,1998)>

> <CFSET Chart1.SetArrayProp("Value",0,0)>

> <CFSET Chart1.SetArrayProp("Value",1,200)>

> <CFSET Chart1.SetArrayProp("Value",2,400)>

> <CFSET Chart1.SetArrayProp("Value",3,600)>

> <CFSET Chart1.SetArrayProp("Value",4,'CHART_HIDDEN')>

>

>

> <CFSET Chart1.CloseData(COD_VALUES)>

> <CFSET Chart1.CloseData(COD_XVALUES)>

>

>

>

> <!-- Other Settings -->

> <CFSET Chart1.Border = 6553608>

> <CFOUTPUT> # Chart1.GetHtmlTag(589,300,"Auto","Chart1") # </CFOUTPUT>

> </BODY>

> </HTML>

>

>

> Chris Denslow

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...