Jump to content
We've recently updated our Privacy Statement, available here ×

drill down in highCharts with visualize.js


vibhu.ranjan
Go to solution Solved by ernestoo,

Recommended Posts

I am trying to render the report with highChart in visualize.js but getting the error.

Please find below code and the error:

code:

var reportResource = "/CTIF_Folder/testreport/TestRegion";
 
visualize({
auth : {
name : "superuser",
password : "superuser"
}
}, function(v) {
v("#main").report({
resource : reportResource,
linkOptions : {
beforeRender : function(linkToElemPairs) {
linkToElemPairs.forEach(showCursor);
},
events : {
"click" : function(ev, link) {
if (link.type == "ReportExecution") {
v("#drill-down").report({
resource : link.parameters._report
});
}
console.log(link);
}
}
},
error : function(err) {
alert(err.message);
}
});
function showCursor(pair) {
var el = pair.element;
el.style.cursor = "pointer";
}
});
 
error:
Uncaught TypeError: Cannot read property 'style' of undefined 
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...