Jump to content
Software FX Community

How to get rid of constant line?


User (Legacy)
 Share

Recommended Posts

I display a constant line in some charts, but not in others.  But, I'm

having a problem with the constant line remaining in the chart when it is

redrawn with different data.

I've tried the following to force the constant line to be flushed, but it

doesn't seem to help:

' Flush the constant lines

cfxChart.OpenDataEx COD_CONSTANTS, 0, 0

cfxChart.CloseData COD_CONSTANTS

I've also tried setting the constant line .LineWidth = 0, but the line still

shows in the chart.

I've also tried searching through this newsgroup, and the Help file for

information on how to do this, but I've come up empty.

I'm sure there's some trick for accomplishing this, but I wish it was easier

to find :-( (the Help files need a lot more examples, and pictures of

charts illustrating the effects of changes in property values).

GG

Link to comment
Share on other sites

"Gary German" <garyg@NOSPAMXshastasoftware.com> wrote in message

news:kfn2bWMpEHA.2668@webserver3.softwarefx.com...

> I display a constant line in some charts, but not in others. But, I'm

> having a problem with the constant line remaining in the chart when it is

> redrawn with different data.

>

> I've tried the following to force the constant line to be flushed, but it

> doesn't seem to help:

>

> ' Flush the constant lines

> cfxChart.OpenDataEx COD_CONSTANTS, 0, 0

> cfxChart.CloseData COD_CONSTANTS

>

> I've also tried setting the constant line .LineWidth = 0, but the line

still

> shows in the chart.

>

> I've also tried searching through this newsgroup, and the Help file for

> information on how to do this, but I've come up empty.

>

> I'm sure there's some trick for accomplishing this, but I wish it was

easier

> to find :-( (the Help files need a lot more examples, and pictures of

> charts illustrating the effects of changes in property values).

>

> GG

Never mind...

I just discovered the ClearData method, which seems to work well for this.

Call cfxChart.ClearData(CD_ALLDATA)

GG

Link to comment
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.

 Share

×
×
  • Create New...