Apr 23, 2015, 2:37 PM
[CLOSED] Unable to get Chart Mouse events working
Hi
I'm plotting some data using a LineSeries and I want to enable the user to click on a point in the series using an event such as ItemClick.
This is the relevant part of my code:
Presumably it's something simple I'm missing?
Thanks
I'm plotting some data using a LineSeries and I want to enable the user to click on a point in the series using an event such as ItemClick.
This is the relevant part of my code:
Html.X().LineSeries()
.Listeners(lst => lst.ItemClick.Handler = "testClick")
.Title("Demand History")
.XField("Date")
.YField("Volume")
.Marker(Html.X().CircleSprite().Radius(4))
.Tooltip(
Html.X().ChartTip()
.TrackMouse(true)
.Renderer(r => r.Handler = "this.setTitle(storeItem.get('Date') + ' : ' + storeItem.get('Volume'));"))
)
This is my script:var testClick = function(a,b,c){
debugger
var test = a;
}
But however I click on or near the line series the event doesn't appear to be activated, it doesn't activate testClick.Presumably it's something simple I'm missing?
Thanks
Last edited by Daniil; Apr 29, 2015 at 12:25 PM.
Reason: [CLOSED]