Jump to content
Software FX Community

How to get rid of constant line?


User (Legacy)

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

Archived

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

×
×
  • Create New...