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

Trackball hiding series

3 Answers 192 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 08 Apr 2012, 05:00 AM
On a lot of charts that I build, the default trackball bubble can end up obscuring a lot of the data at the top of the chart. Is there a way to move the trackball to the bottom of the chart or set it's opacity so that the series can partially bleed through?

Thanks,
Mike

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Apr 2012, 12:51 PM
Hi Mike,

You can hide the trackball control and display only the trackball line over your items. The information that goes into the trackball can be presented somewhere outside the control. Here is some code:

<telerik:RadCartesianChart>
    <telerik:RadCartesianChart.Resources>
        <Style TargetType="telerik:TrackBallInfoControl">
            <Setter Property="Template" Value="{x:Null}" />
        </Style>
    </telerik:RadCartesianChart.Resources>
    <telerik:RadCartesianChart.Behaviors>
        <telerik:ChartTrackBallBehavior TrackInfoUpdated="ChartTrackBallBehavior_TrackInfoUpdated" />
    </telerik:RadCartesianChart.Behaviors>
   ...

Hope this helps! Greetings,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Remco
Top achievements
Rank 1
answered on 18 Apr 2012, 10:53 AM
I use the TrackInfoUpdated event to append the info to the items in my chart legend. It would be good if the TrackInfoUpdated event could also be raised when the track ball line is hidden when the user moves the mouse out of the chart indicating that the track ball line is now hidden so that I can hide the info from the chart legend. Currently the chart legend will continue to show the values from the last time the TrackInfoUpdated event was raised.

cheers

Remco
0
Yavor
Telerik team
answered on 23 Apr 2012, 09:48 AM
Hello Remco,

Indeed, this behavior seems strange. I have logged it in our bug tracking system here. You can expect a fix for the Q2 release.

Greetings,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ChartView
Asked by
Mike
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Remco
Top achievements
Rank 1
Share this question
or