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
195
How to bind chart tooltip with legend?
posted

I am using a DataTemplate for LegendItemTemplate which shows some text and tooltip using a converter and it is working fine.

I also show ToolTip on chart using following code:

 <igCA:Series DataPointColor="Different" Focusable="False" DataSource="{Binding Source={StaticResource DsMembershipData}, Mode=OneWay}" DataMapping="Label=SUBSCRIPTIONTYPE; Value=NOS; ToolTip=SUBSCRIPTIONTYPE" ChartType="Pie">

The ToolTip on the chart is not properly formatted as it is just binding to a value and I need a properly formatted ToolTip as shown in the Legend. Is it possible to bind the ToolTip on chart with Legend?

Thanks.

Parents
No Data
Reply
  • 9836
    posted

    In order to  format the tooltips you can set the ToolTip for each datapoint using String.Format or better use this approach to create a custom template and then set the StringFormat in the TextBlock's definition.

    Let me know if you have any questions.

     

Children
No Data