Switch ToolTip Template Based on Series Value

2 posts, 0 answers
  1. Srikiran
    Srikiran avatar
    1 posts
    Member since:
    Jun 2015

    Posted 18 Jun 2015 Link to this post

    Hi There,

    We are plotting different series on RadCartesianChart. We would like to switch ToolTemplate based on Series i.e Each series will  show different templates.

    We also want to show more properties(datafields) on Tooltip.Currently we can only show Xvalue and Yvalue.But we would like to show more information  for that specific point.Can we do this.?





  2. Martin Ivanov
    Martin Ivanov avatar
    1442 posts

    Posted 19 Jun 2015 Link to this post

    Hi Srikiran,

    The chart's series expose a ToolTipTemplate property which you can use to define a template for each series. This property works with the ChartTooltipBehavior. About the displaying additional properties, keep in mind that the data context passed in the tooltip template is an object of type DataPoint which contains a DataItem property. This property holds the business object behind the corresponding data point. You can use it to display additional information in the tooltip.

    Here is an example:
            <TextBlock Text="{Binding DataItem.MyProperty}" />

    Please let me know if  you have any further questions.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top