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

Add data point on click event

1 Answer 23 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Bárbara
Top achievements
Rank 1
Bárbara asked on 18 Nov 2015, 05:53 PM

Hi all,

When the user clicks somewhere on the chart area I need to be able to add a data point there. 

I didn't find anything like that on the documentation but I was wondering if there is at least a work around for this, this is really important for my application.

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 19 Nov 2015, 08:26 AM
Hello Bárbara,

You can use the conversion api of the chart, namely the ConvertPointToData method to find out the horizontal and vertical axes where the user has clicked. Then you can simply create your business item and add it to your items source.

Regards,
Petar Marchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Bárbara
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or