yogesh Posted November 19, 2012 Report Share Posted November 19, 2012 Hi, I have created line chart and added 'click' event as you specified in demo. Here is the code sample: var chartDiv = document.getElementById('historyChartContainer'); chartDiv.addEventListener("click", gridDrillDown, false); and callback function is: function gridDrillDown(evt){ //alert(100); var iSeries = evt.series; //alert(event.hitType); var iPoint = evt.point; alert(evt.hitType); alert(iPoint); if (iSeries != undefined && iPoint != undefined) { alert(iSeries +" - " +iPoint); alert(assetForecastedGraph.getData().getItem(iSeries, iPoint)); alert(assetForecastedGraph.getAxisX().getLabels().getItem(iPoint)); //if(iPoint < 4){ //alert(iPoint); //window.goToIPList("/projectedRunout",iPoint+""); //} } } Its working correctly in Google Chrome, but not working in FireFox. I am getting right series index, but NaN as point. Please help me, if I am doing something wrong here. Thanks!! Quote Link to comment Share on other sites More sharing options...
Question
yogesh
Hi,
I have created line chart and added 'click' event as you specified in demo. Here is the code sample:
var chartDiv = document.getElementById('historyChartContainer');
chartDiv.addEventListener("click", gridDrillDown, false);
and callback function is:
function gridDrillDown(evt){
//alert(100);
var iSeries = evt.series;
//alert(event.hitType);
var iPoint = evt.point;
alert(evt.hitType);
alert(iPoint);
if (iSeries != undefined && iPoint != undefined) {
alert(iSeries +" - " +iPoint);
alert(assetForecastedGraph.getData().getItem(iSeries, iPoint));
alert(assetForecastedGraph.getAxisX().getLabels().getItem(iPoint));
//if(iPoint < 4){
//alert(iPoint);
//window.goToIPList("/projectedRunout",iPoint+"");
//}
}
}
Its working correctly in Google Chrome, but not working in FireFox. I am getting right series index, but NaN as point.
Please help me, if I am doing something wrong here.
Thanks!!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.