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

"click" Event for HtmlChart - Array

2 Answers 76 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Binh
Top achievements
Rank 1
Binh asked on 23 Jul 2015, 03:56 AM

Hi there,

I have use

http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/bindtoarray/defaultcs.aspx

I have chart with year and 

End now, I want to click circle on chart and it will show month in year. 

For example: 

year: 2010, 2011, 2013 and I click I shown 1,2,3,4,...12 in 2010 chart

I have attach file for example

Thanks

2 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 27 Jul 2015, 01:37 PM
Hi Binh,

What I can suggest is the following:
    - Handle the SeriesClick event of the chart, where you can get the clicked value and perform an AJAX request by passing this value on the server-side.
    - After that on the server-side you can data-bind the chart to a new data source, or recreate it programmatically based on the clicked value.

You can find such an example with ColumnSeries here (http://demos.telerik.com/aspnet-ajax/htmlchart/examples/drilldownchart/defaultcs.aspx), but you can also apply the same approach for other series as well.

Regards,
Danail Vasilev
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
0
Binh
Top achievements
Rank 1
answered on 05 Aug 2015, 10:30 AM
Thanks very much !!!!! 
Tags
Chart (HTML5)
Asked by
Binh
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Binh
Top achievements
Rank 1
Share this question
or