I am trying to get the chart to work in a way I need.
Lets say I have the following chat
As you can see I have the series click event hooked up. If I click on the series I can see
I have clicked on the 6th column within the graph to get the above result.
Can I get access to the graph's name that has been clicked on? I am building a page that could have many graphs on it so I am wanting to build a reusable function.
Ideally somehow I would like to get the name of the graph that's been clicked on.
Thank you
Lets say I have the following chat
@(Html.Kendo().Chart() .Name("chart") .Title("Number 1") .Legend(legend => legend .Position(ChartLegendPosition.Bottom) ) .Series(series => { // series.Column(new double[] { 15.7, 16.7, 20, 23.5, 26.6 }).Name("World"); series.Column(new double[] { 67.96, 68.93, 75, 74, 78,77,12,19,99,79 }).Name("Rating"); }) .CategoryAxis(axis => axis .Categories("1", "2", "3", "4", "5","6","7","8","9","10") ) .ValueAxis(axis => axis .Numeric().Labels(labels => labels.Format("{0}")) ) .Tooltip(tooltip => tooltip .Visible(true) .Format("{0}") ).Events(events => events .SeriesClick("onSeriesClick") ) )As you can see I have the series click event hooked up. If I click on the series I can see
Objectcategory: "6"dataItem: 77element: jQuery.fn.jQuery.init[1]isDefaultPrevented: function (){return g}preventDefault: function (){g=!0}sender: n.extend.initseries: Objectvalue: 77__proto__: ObjectCan I get access to the graph's name that has been clicked on? I am building a page that could have many graphs on it so I am wanting to build a reusable function.
Ideally somehow I would like to get the name of the graph that's been clicked on.
Thank you