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

Add TrackBall to RadCartesianChart.SeriesProvider

1 Answer 22 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 16 Nov 2018, 02:42 PM

Hi,

I want to show the values and the pen names at the cursor location for all my lines on the RadCartesianChart.

I'm using this xaml to display my data as individual lines & I can hide & add/remove items from the bound data "PlotInfos" and it is reflected on the chart:

<telerik:RadCartesianChart.SeriesProvider>
    <telerik:ChartSeriesProvider Source="{Binding FilteredSeriesInfos}">
        <telerik:ChartSeriesProvider.SeriesDescriptors>
            <telerik:CategoricalSeriesDescriptor ItemsSourcePath="PlotInfos"
                                                 CategoryPath="XCat"
                                                 ValuePath="YVal">
                <telerik:CategoricalSeriesDescriptor.Style>
                    <Style TargetType="telerik:LineSeries">
                        <Setter Property="Stroke" Value="{Binding PenBrush}"/>
                    </Style>
                </telerik:CategoricalSeriesDescriptor.Style>
            </telerik:CategoricalSeriesDescriptor>
        </telerik:ChartSeriesProvider.SeriesDescriptors>
    </telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>

 

The charted data is selectable by the user. I can't find any example of TrackBall info being displayed for SeriesProvider charts using bound data. Does anyone have an example?

More xaml here : https://pastebin.com/J32Qd9gi

Thanks in advance, Steve

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 21 Nov 2018, 08:51 AM
Hello Steve,

This post seems to be a duplicate of one of your tickets. I have already answered your questions in the other thread. I am copying the answer also here.

Thank you for the provided code snippet. Looking at the code snippet, a custom style is set to the TrackBallInfoStyle and the Template property is overridden by an empty ControlTemplate. I am assuming that this could be the reason behind why the TrackBall does not appear. I have also double check this in a sample project. I am attaching this project so you can check if I am missing something from your implementation.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
Steve
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or