Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1185
Create Label tooltips distinct from data tooltips
posted

I have a bar chart where the label text can be very long. Word wrapping this not satisfactory as a previous post indicated, so I have to clip the text. I'd like tooltips for the labels to show the complete label text, while keeping the tooltips on the bars  showing the actual data value.

My reading here suggests that the chart control itself can't do multiple tooltip values??

Can I use the UltraWinToolTip control for this? This means I need a method which will identify the chart primitive under the mouse at any time (say within a mouseMove event) - how do I do this?

Parents
  • 26458
    Offline posted

    You can use chart's DataItemOver and DataItemOut events for this.
    In DataItemOver, e.Primitive is the primitive under the mouse. You can display its value in the tooltip control. In DataItemOut, clear the tooltip control's tooltip.

Reply Children