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

Value indicator on both axis

2 Answers 110 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 11 Apr 2014, 01:43 PM
Hi there,

Is there a way to create an indicator, like a small triangle, that points to the actual value of a point in a ChartView? For example, if I have a point in (5, 10), I want to display an indicator in the x axis over the tick that corresponds to the 5 value, and also another indicator over the 10 value in the y axis as well.

Thanks in advance.

(I am attaching an image of a chart that I'm trying to replicate in my RadChartView. There you'll see two small blue triangles over the x and y axis, that's what I want to achieve)

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 15 Apr 2014, 02:31 PM
Hi Jorge,

You can achieve your requirement with a custom implementation. Basically, you can create a Canvas element with your triangles in it and then on mouse move in the chart you can calculate and change their position. You can see this approach in the attached project. 

Please keep in mind  that both of the axes of the chart in the attached project are linear. If you use a categorical axis there will be differences in the implementation.

In addition you can take a look at the TrackBall behavior of the Cartesian chart and see if it won't be suitable for your scenario. 

Regards,
Martin
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.

 
0
Jorge
Top achievements
Rank 1
answered on 15 Apr 2014, 05:37 PM
Thanks very much Martin, your approach is very similar to what I'm lookin for.

I will work on an implementation of this in my project.

Have a nice day.
Tags
ChartView
Asked by
Jorge
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jorge
Top achievements
Rank 1
Share this question
or