I'd like to pass multiple parameters to the seriesClick event handler, but unsure how to handle the default parameters
The following works
however, when I need to pass in the additional parameter fails as it doesn't recognize e
The following works
...
seriesClick: onSeriesClick
function
onSeriesClick(e) {
var
currentDate =
new
Date(2012, 0, 1);
currentDate.setMonth(currentDate.getMonth() + e.category - 1);
...
seriesClick: onSeriesClick(e, contentItem),
function
onSeriesClick(e, contentItem) {
var
currentDate =
new
Date(2012, 0, 1);
currentDate.setMonth(currentDate.getMonth() + e.category - 1);