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

TrackBallInfo link to mouse Y

1 Answer 45 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 11 Feb 2015, 09:25 PM
Hello,

I am using the trackBallInfo template to show data very similar to the example in the Demo.
I would like the position of the Databox inside the chart to follow the Y of the mouse.  The reason is because, if my data goes into the high range they the trackballinfo covers the line and you cannot see the chart.

Is there a way to do this?

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 16 Feb 2015, 02:34 PM
Hello Kevin,

You can achieve your requirement customizing the approach demonstrated in our Smooth Scrolling online demo. Basically you can subscribe to the TrackInfoUpdated event of the ChartTrackBallBehavior and inside the handler you can programmatically extract the needed information and update any visual elements.

Also in the same event handler you can take the position of the mouse and update the position of any other element(s).

Please give this approach a try and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ChartView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or