User (Legacy) Posted February 24, 2005 Report Share Posted February 24, 2005 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 Quote Link to comment Share on other sites More sharing options...
Software FX Posted February 27, 2005 Report Share Posted February 27, 2005 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 Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted February 28, 2005 Author Report Share Posted February 28, 2005 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 > Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.