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

ChartView Tooltip Binding

3 Answers 52 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Sven
Top achievements
Rank 1
Sven asked on 08 Apr 2013, 11:36 PM
Hello Telerik team,

I am using a RadCartesianChart to display several series of data. These series are BarSeries created and added in code-behind, which have their ItemsSource set to a ChartDataSource. The ChartDataSources are created programmatically for each BarSeries. The ItemsSource of these ChartDataSources are set to Business objects.

My problem is now that the tooltip, which is defined in XAML, is no longer able to show information that was bound inside the ToolTipTemplate using <TextBlock Text={Binding DataItem.value} />. This was only possible when I assigned each BarSeries a Business object as ItemsSource, instead of using a ChartDataSource (which is necessary for sampling the data).

Can you give me the possibly super-easy solution? Is it only the Binding path that needs to be fixed?

Thanks,
Sven

3 Answers, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 11 Apr 2013, 08:47 AM
Hi Sven,

Currently the ChartDataSource does not provide a way to get the data items that formed the data point (as a result of sampling) out-of-the-box. We are planning to introduce an API for that with our Q2 2013 release.

I have attached a sample project demonstrating how you can currently achieve this. The project is in Silverlight, however since the API of the control is exactly the same between WPF and Silverlight you can copy-paste it in your WPF project.

I hope this helps.
 
Regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Niall
Top achievements
Rank 1
answered on 23 Feb 2016, 12:48 PM

Hi,

Was the API added to allow access to the underlying data items? I can't find any information about this feature in the documentation.

 

Regards

Niall

0
Martin Ivanov
Telerik team
answered on 26 Feb 2016, 12:27 PM
Hi Niall,

The chart still doesn't allow access to the business items that form a DataPoint in a sampling scenario (using ChartDataSource). However, we have a feature request logged in our feedback portal where you can track its status and vote for its implementation.

Regards,
Martin
Telerik
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
Tags
ChartView
Asked by
Sven
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Niall
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or