ChartView Tooltip Binding

4 posts, 0 answers
  1. Sven
    Sven avatar
    1 posts
    Member since:
    Apr 2013

    Posted 08 Apr 2013 Link to this post

    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
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 11 Apr 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Niall
    Niall avatar
    1 posts
    Member since:
    Nov 2014

    Posted 23 Feb in reply to Petar Kirov Link to this post

    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

  5. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 26 Feb Link to this post

    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
Back to Top