Jump to content
Software FX Community

Tooltips via legend


User (Legacy)

Recommended Posts

Hi,

I am having trouble getting tooltips to work via legend in a scatter plot.

I have 3 separate series and would like to have 3 separate legends to feed

the tooltips. The tooltips for each series should change with the datapoint

plotted.

This is the code I currently have for the 3 series:

j = 0

Do While Not RS1.EOF

ChartFX.Series(0).Yvalue(j) = RS1(mecpval)

ChartFX.Series(0).Xvalue(j)= RS1(optvar)

rs1.MoveNext

j=j+1

Loop

j = 0

Do While Not rsdist.EOF

ChartFX.Series(1).Yvalue(j) = rsdist(mecpval)

ChartFX.Series(1).Xvalue(j) = rsdist(optvar)

rsdist.MoveNext

j = j + 1

Loop

If Not rssch.EOF Then

ChartFX.Series(2).Yvalue(0) = rssch(mecpval)

ChartFX.Series(2).Xvalue(0) = rssch(optvar)

End If

I know I can do ChartFX.Series(0).Legend = "XXX"

ChartFX.Series(1).Legend = "YYY"

ChartFX.Series(2).Legend = "ZZZ"

but I dont want the same legend/tooltip to represent the whole series.

I tried ChartFX.Legend(j) = rs1("name") but since this applies for the

complete chart and not each series separately, it didnt work for me.

I want a tooltip for each datapoint. In other words, I am looking for

something like ChartFX.Series(0).Legend(j) = RS1("name").

Is there a way I can have the legend differ for each series as well as

datapoint? If this is not possible, can you please suggest a way to

accomplish this behavior without having to use the legend.

Thanks a lot!

AA

Link to comment
Share on other sites

What are asking for is not supported in Chart FX 5.

The possibility of assigning data to each separate point is supported in

ChartFX 6.0 and beyond.

The only way to achieve this in Chart FX 5.x is to provide you own tooltips

by capturing the GetTip event. This event is called right before the tooltip

shows and gives you the chance to change/set the text that is about to

appear.

--

FP

Software FX

Link to comment
Share on other sites

Thanks a lot for the information. I am using ChartFX 5.5. From your reply, I 

understand that I can use GetTip. But I was not able to find any samples of

using it. Can you please send me an example so that I get a better

understanding on how I can make use of the event.

Thank you.

AA

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

news:c1DWXCTHFHA.1924@webserver3.softwarefx.com...

> What are asking for is not supported in Chart FX 5.

>

> The possibility of assigning data to each separate point is supported in

> ChartFX 6.0 and beyond.

>

> The only way to achieve this in Chart FX 5.x is to provide you own

> tooltips by capturing the GetTip event. This event is called right before

> the tooltip shows and gives you the chance to change/set the text that is

> about to appear.

>

> --

> FP

> Software FX

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...