Jump to content
Software FX Community

6.2 Constant Lines


User (Legacy)

Recommended Posts

I'm using version 6.2 and have a few problems with constant lines.

1. Is there any way to have them not display their value in the tooltip. I

prefer to display the value in the constant line text as the meaningful

value may not necessarily be the chart value.

2. When the constant line is set to 0 on the Y axis, HitType will not return

the constant line. I'd guess this has to do with the line being displayed

at Y=0.

3. Is there anyway to remove the line being displayed at Y=0?

Thanks,

Craig

Link to comment
Share on other sites

Correction on the HitType method. It does return the constant line, but it

returns the one the chart displays automatically at Y=0.

"Craig Neblett" <craigneblett@hotmail.com> wrote in message

news:Wkd9pc9pDHA.1852@WEBSERVER1...

> I'm using version 6.2 and have a few problems with constant lines.

>

> 1. Is there any way to have them not display their value in the tooltip.

I

> prefer to display the value in the constant line text as the meaningful

> value may not necessarily be the chart value.

>

> 2. When the constant line is set to 0 on the Y axis, HitType will not

return

> the constant line. I'd guess this has to do with the line being displayed

> at Y=0.

>

> 3. Is there anyway to remove the line being displayed at Y=0?

>

> Thanks,

> Craig

>

>

Link to comment
Share on other sites

> 1. Is there any way to have them not display their value in the tooltip.

I

> prefer to display the value in the constant line text as the meaningful

> value may not necessarily be the chart value.

We added a flag to allow this in the Constant Line Flags property:

ConstantFlag.ShowValue to allow this possibility. This flag is OFF by

default now (like in Chart FX 6.0) so aster the next SP the behavior you

want will be the default behavior.

> 2. When the constant line is set to 0 on the Y axis, HitType will not

return

> the constant line. I'd guess this has to do with the line being displayed

> at Y=0.

> Correction on the HitType method. It does return the constant line, but it

> returns the one the chart displays automatically at Y=0.

I'm not sure I understand this one correctly. If you create a constant line

at Zero is the same as any other value. Zero is no special.

>3. Is there anyway to remove the line being displayed at Y=0?

If you don't want the line at Y=0, do:

chart.axisY.Style &= ~AxisStyle.BreakZero;

--

FP

Software FX, Inc.

Link to comment
Share on other sites

By default, the chart will display an axis line at y=0.  If I then add my

own constant line at Y=0 and query HitType in MouseDown, I will get a

reference to the default axis line, not my constant line.

Craig

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:cxuvuNJqDHA.1856@WEBSERVER1...

> > 1. Is there any way to have them not display their value in the tooltip.

> I

> > prefer to display the value in the constant line text as the meaningful

> > value may not necessarily be the chart value.

>

> We added a flag to allow this in the Constant Line Flags property:

> ConstantFlag.ShowValue to allow this possibility. This flag is OFF by

> default now (like in Chart FX 6.0) so aster the next SP the behavior you

> want will be the default behavior.

>

> > 2. When the constant line is set to 0 on the Y axis, HitType will not

> return

> > the constant line. I'd guess this has to do with the line being

displayed

> > at Y=0.

>

> > Correction on the HitType method. It does return the constant line, but

it

> > returns the one the chart displays automatically at Y=0.

>

> I'm not sure I understand this one correctly. If you create a constant

line

> at Zero is the same as any other value. Zero is no special.

>

> >3. Is there anyway to remove the line being displayed at Y=0?

>

> If you don't want the line at Y=0, do:

>

> chart.axisY.Style &= ~AxisStyle.BreakZero;

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

I don't have a ShowValue in my ConstantFlag enumeration.  Did you mean that

it will be added in the next SP or that you will change its default in the

next SP?

Craig

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:cxuvuNJqDHA.1856@WEBSERVER1...

> > 1. Is there any way to have them not display their value in the tooltip.

> I

> > prefer to display the value in the constant line text as the meaningful

> > value may not necessarily be the chart value.

>

> We added a flag to allow this in the Constant Line Flags property:

> ConstantFlag.ShowValue to allow this possibility. This flag is OFF by

> default now (like in Chart FX 6.0) so aster the next SP the behavior you

> want will be the default behavior.

>

> > 2. When the constant line is set to 0 on the Y axis, HitType will not

> return

> > the constant line. I'd guess this has to do with the line being

displayed

> > at Y=0.

>

> > Correction on the HitType method. It does return the constant line, but

it

> > returns the one the chart displays automatically at Y=0.

>

> I'm not sure I understand this one correctly. If you create a constant

line

> at Zero is the same as any other value. Zero is no special.

>

> >3. Is there anyway to remove the line being displayed at Y=0?

>

> If you don't want the line at Y=0, do:

>

> chart.axisY.Style &= ~AxisStyle.BreakZero;

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

I'm not sure what you mean by this. The Zero line is never returned in the

HitTest, it is not even a constant line. I think you may be talking about

some other constant line that you added. Remember the default value of a

Constant line sis Zero so if you happen to create one and leave it

uninitialized you will get this problem. For example:

chart1.ConstantLine[1].Value = 100;

Creates TWO constant lines : 0 and 1. ConstantLine[0] has a default value of

Zero (0).

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...