Jump to content
Software FX Community

Tooltips and Constantlines


User (Legacy)

Recommended Posts

I have implemented Tooltips on a combined scatter and Lines series, that has

three constant lines overlaid, and is downloading the Image chart type. I

have implemented Tooltips for points using the following code:

chart.ImgMap = ImgMap.TitleTip;

chart.TipMask= "%L";

chart.Point[0,i].Tag = "..."; where series 0 is the scatter series

The problem I have is that hovering over any point on, or near, one of the

constant lines, displays the text for the constant line. How can I turn the

tooltips off for the constant line, giving precedence to the series points?

Link to comment
Share on other sites

Since the constant lines are on top of the series, they take precedence for 

the tooltips.

You can put the constant lines on the back of the series by doing:

constantLine.Flags |= ConstantFlag.BackOnly;

There is no property that will allow you to turn tooltips of only for

constant lines.

--

Francisco Padron

www.chartfx.com

"Chuck Mink" <charles.h.mink@exxonmobil.com> wrote in message

news:OzFVd66bGHA.3508@webserver3.softwarefx.com...

>I have implemented Tooltips on a combined scatter and Lines series, that

>has

> three constant lines overlaid, and is downloading the Image chart type. I

> have implemented Tooltips for points using the following code:

>

> chart.ImgMap = ImgMap.TitleTip;

> chart.TipMask= "%L";

> chart.Point[0,i].Tag = "..."; where series 0 is the scatter series

>

> The problem I have is that hovering over any point on, or near, one of the

> constant lines, displays the text for the constant line. How can I turn

> the

> tooltips off for the constant line, giving precedence to the series

> points?

>

>

Link to comment
Share on other sites

  • 2 weeks later...

This did not appear to make a difference.  The documentation states that

this flag is for 3D charts, which is not my chart type.

"Software FX Support" <noreply@softwarefx.com> wrote in message

news:zTClkXqcGHA.1540@webserver3.softwarefx.com...

> Since the constant lines are on top of the series, they take precedence

for

> the tooltips.

>

> You can put the constant lines on the back of the series by doing:

>

> constantLine.Flags |= ConstantFlag.BackOnly;

>

> There is no property that will allow you to turn tooltips of only for

> constant lines.

>

> --

> Francisco Padron

> www.chartfx.com

>

>

> "Chuck Mink" <charles.h.mink@exxonmobil.com> wrote in message

> news:OzFVd66bGHA.3508@webserver3.softwarefx.com...

> >I have implemented Tooltips on a combined scatter and Lines series, that

> >has

> > three constant lines overlaid, and is downloading the Image chart type.

I

> > have implemented Tooltips for points using the following code:

> >

> > chart.ImgMap = ImgMap.TitleTip;

> > chart.TipMask= "%L";

> > chart.Point[0,i].Tag = "..."; where series 0 is the scatter series

> >

> > The problem I have is that hovering over any point on, or near, one of

the

> > constant lines, displays the text for the constant line. How can I turn

> > the

> > tooltips off for the constant line, giving precedence to the series

> > points?

> >

> >

>

>

Link to comment
Share on other sites

Works for me. I added the following code to the Page_Load event of a form 

with a DEFAULT chart in it:

Chart1.ConstantLines[0].Value = 50;

Chart1.ConstantLines[0].Flags |= ConstantFlag.BackOnly;

Chart1.ConstantLines[0].Text = "Line 1";

Chart1.ImgMap |= ImgMap.TitleTip;

I get the constant line BEHIND the bars and the tooltip behaves accordingly.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

On further testing I found that I needed to create the constant lines after

plotting my scatter points, then this worked.

An addition problem ... I find that resting the mouse pointer in the general

proximity of a constant line causes its tooltip to be displayed, while for a

data point it must be exactly in the center of the point. This couses a

problem when the point is close to the constant line, as the constant lines

tooltip will generally appear before the points tooltip, unless the mouse

point is exactly centered on the point marker.

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

news:u%23KO$CTeGHA.3992@webserver3.softwarefx.com...

> Works for me. I added the following code to the Page_Load event of a form

> with a DEFAULT chart in it:

>

> Chart1.ConstantLines[0].Value = 50;

>

> Chart1.ConstantLines[0].Flags |= ConstantFlag.BackOnly;

>

> Chart1.ConstantLines[0].Text = "Line 1";

>

> Chart1.ImgMap |= ImgMap.TitleTip;

>

> I get the constant line BEHIND the bars and the tooltip behaves

accordingly.

>

>

> --

> Francisco Padron

> www.chartfx.com

>

>

Link to comment
Share on other sites

However, this appears to be what is implemented for a point marker,

something close to a single pixel hot spot. A line is much easier to hit

that a point marker. I would think the point marker should take precedence

in this case.

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

news:g3pBnApeGHA.3992@webserver3.softwarefx.com...

> This is by design. Since the line is just a line it would be too hard to

hit

> if the image map was created of just one pixel.

>

> --

> Francisco Padron

> www.chartfx.com

>

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...