This is a migrated thread and some comments may be shown as answers.

WPF MVVM Chart View Tooltips

1 Answer 86 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 30 Mar 2015, 02:04 PM
I'm working on a demo for our IT dept to see if the Telerik Chart View will meet our needs before we jump on board and purchase.  So I'm currentl working with a trial version.

The attached project has a chart with Year bound to the XAxis and Coverage bound to the YAxis.  I need a tooltip to display the Coverage amount, and the Policy Number, which is another property of the model (along with Coverage and Year).  I can only get tooltips to display values that are bound to the XAxis and YAxis.  When I specify PolicyNumber in the tooltip, the tooltip shows nothing for that property.  I did something in the older RadChart quite easily. 

Any help in how to solve this would be appreciated.  Thanks

FYI, This thread wasn't allowing be t attached a zip file, so I renamed the extension to a jpg.  Hopefully yu can renamed is back to a zip and look at it.

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 31 Mar 2015, 08:35 AM
Hi Todd,

You are unable to attach a zip because this is a public forum, where you can only attach images. Zip files can be attached in support tickets only.

In order to show a tooltip, you must plug in a tooltip behavior. As described in the help article, the data context in the tool tip template is data point. In order for you to reach the actual business item, you need to use the DataItem property, so you need to update your bindings similar to this:
{Binding Path=DataItem.Profit}. 

You can also check out our tooltip sdk sample here. Let us know how it goes.

Regards,
Petar Marchev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ChartView
Asked by
Todd
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or