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

Adding point to a chart clicking on the chart

2 Answers 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 22 Oct 2009, 02:40 PM
Hi,

Suppose I have an chart like the one in the chart/FirstLook demo. With several points over the X and Y axis. 
The behavior that I need is to be able to click on the chart to add another point.For example imagine that we have year 2010 over the X axis, so for that year the user can click on the chart  over the Y axis to automatically select an Y value and the chart gets automatically updated.  
Is this kind of behavior possible? Can we click on the chart in order to dynamically add a point to the chart?

One more question, we can define for a data serie the point mark shape, but can we define for one individual point of the data serie the point mark shape, so that we can have several different point mark shapes within the same data serie?

Thanks in advance, regards,
Ivo

2 Answers, 1 is accepted

Sort by
0
Ivo
Top achievements
Rank 1
answered on 23 Oct 2009, 10:04 AM
Hi,

I was able to change the pointmark for individual point using styles and some binding(I binded the Path.Data property of the PointMark).But I encounter a big problem, that I think as to due probably by the way that the pointmarks were implemented.
Imagine that we have point A and B, if I choose a circle for point A and a square for point B, what is going to happen is that a circle appears on point A, but on point B a square appears in top of a circle(This circle is exactly like the shape in point A).I made a sample application, I took some print screens that way you can see what is happening.
In my example values bellow 50 get a balloon and above get a cross.


Is there any possible way to workaround this? If the point marks have the same shape I bet that this also happening but we can't see this happening because the shape is in front of the other and since they are equal we only see one.


  
 
0
Dwight
Telerik team
answered on 28 Oct 2009, 06:55 AM
Hello Ivo,

Currently the chart does not provide API for handling clicks on the ChartArea. Such functionality will be provided some time next year.

On the topic with point marks: can you, please, provide the sample application so that we are able to analyze it?

Kind regards,
Evtim
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
Ivo
Top achievements
Rank 1
Answers by
Ivo
Top achievements
Rank 1
Dwight
Telerik team
Share this question
or