Jump to content
Software FX Community

How to use the %v<n> format property for Tooltips


Recommended Posts

Hi All,

I am trying to use this tooltip format: %v<n>

According to documentation %v<n> is "v <n> For types that require more than one series, these are
replaced by the value of each one. (n represents an index)."

I have two series rendered on  a statistical chart, 'avg.value' & 'slota.value' . I have set the Tooltip format for the chart as

Chart.TooltipFormat = "%v0 - %v1";

I was hoping to get the value for both the series at a given data point in the tooltip, but I am getting the consecutive value of the same series.

Please see the screen shot, I have the obtained results in red, the expected results are marked in green.


Can anybody please explain with an example how this formatter works.

Any help would be great.









Link to comment
Share on other sites

 That format is used in galleries like bubble and OHLC, where each plot takes more than one series. In your chart, each curve is one series, not multiple.

Try changing the text on the tooltip on the GetTip event, something like this:

void chart1_GetTip(object sender, GetTipEventArgs e)   {   if (e.Point >= 0)   {   e.Text = chart1.Data[0, e.Point].ToString() + " - " + chart1.Data[1, e.Point].ToString();   }   }

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...