Jump to content
Software FX Community

Log Scale Grid Problem


Recommended Posts

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

Link to post
Share on other sites

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.

>

>

post-2107-13922394617087_thumb.jpg

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

>

>

Link to post
Share on other sites

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") %>

Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...