User (Legacy) 2 Posted February 20, 2003 Report Share Posted February 20, 2003 Hi I am charting some data that requires a log base 10 Y Axis. My problem is that when generating the chart I only want to show the horizontal grid lines at the values shown on the Y axis i.e. 10 , 100 , 1000 etc and NOT at the other major steps as you get a clustering of horizontal grid lines. Ive enclosed a picture of what im currently getting to help. How can I do this? Thanks Chris Quote Link to post Share on other sites
Software FX 0 Posted February 20, 2003 Report Share Posted February 20, 2003 I'm afraid this is not possible using gridlines. You can achieve this by creating constant lines at the desired locations. -- FP Software FX, Inc. Quote Link to post Share on other sites
User (Legacy) 2 Posted February 20, 2003 Author Report Share Posted February 20, 2003 Is there a way to set a contant line to the background so it does not overlap the chart objects? at the moment i am drawing a ling on top of a bar chart which looks quite crude. Chris "SoftwareFX Support" <support@softwarefx.com> wrote in message news:hD2UopP2CHA.1316@webserver1.softwarefx.com... > I'm afraid this is not possible using gridlines. You can achieve this by > creating constant lines at the desired locations. > > -- > FP > Software FX, Inc. > > Quote Link to post Share on other sites
Software FX 0 Posted February 20, 2003 Report Share Posted February 20, 2003 Yes. The constant line style has a flag called CC_BACKONLY. To turn it ON you can do something like: ChartFX1.ConstantLine(0).Style = ChartFX1.ConstantLine(0).Style Or CC_BACKONLY Make sure you include the appropriate include files (.inc) if you are using ASP otherwise CC_BACKONLY will not be defined. -- FP Software FX, Inc. Quote Link to post Share on other sites
User (Legacy) 2 Posted February 21, 2003 Author Report Share Posted February 21, 2003 But this wont work unless you are using a 3d-chart ? Im trying it on a 2d-chart , is there a way to get it to work with that. chris "SoftwareFX Support" <support@softwarefx.com> wrote in message news:lhFydMQ2CHA.2852@webserver1.softwarefx.com... > Yes. The constant line style has a flag called CC_BACKONLY. To turn it ON > you can do something like: > > ChartFX1.ConstantLine(0).Style = ChartFX1.ConstantLine(0).Style Or > CC_BACKONLY > > Make sure you include the appropriate include files (.inc) if you are using > ASP otherwise CC_BACKONLY will not be defined. > > -- > FP > Software FX, Inc. > > Quote Link to post Share on other sites
Software FX 0 Posted February 21, 2003 Report Share Posted February 21, 2003 This works for both 3D and 2D charts. -- FP Software FX, Inc. Quote Link to post Share on other sites
User (Legacy) 2 Posted February 21, 2003 Author Report Share Posted February 21, 2003 I cant seem to get this to work , here is a code sample. The constant lines still over write the charts. Any tips? Thanks Chris ---------------------------------------------------------------------------- ----- <%@ Language=VBScript %> <% Option Explicit %> <!-- #include virtual="/Include/CfxIE.inc" --> <% Const CC_BACKONLY = 128 'Create the chart object Dim oChart Set oChart = Server.CreateObject("ChartFX.WebServer") oChart.Chart3D = false oChart.OpenDataEX COD_CONSTANTS,2,0 oChart.ConstantLine(0).Value = 10 oChart.ConstantLine(0).LineColor = RGB(139,137,137) oChart.ConstantLine(0).Axis = AXIS_Y oChart.ConstantLine(0).Label = "Line 1" oChart.ConstantLine(0).LineWidth = 1 oChart.ConstantLine(1).Value = 50 oChart.ConstantLine(1).LineColor = RGB(139,137,137) oChart.ConstantLine(1).Axis = AXIS_Y oChart.ConstantLine(1).Label = "Line 2" oChart.ConstantLine(1).LineWidth = 1 oChart.ConstantLine(0).Style = CC_BACKONLY oChart.ConstantLine(1).Style = CC_BACKONLY oChart.CloseData COD_CONSTANTS %> <%= oChart.GetHtmlTag("500","350","Image") %> Quote Link to post Share on other sites
Software FX 0 Posted February 21, 2003 Report Share Posted February 21, 2003 CC_BACKONLY is not defined unless you include: <!-- #include virtual="/Include/CfxIEExtra.inc" --> -- FP Software FX, Inc. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.