Hi,
I have tried to follow the example on how to add drill-down to a chart by linking it to a SharePoint list http://www.spchart.com/documentation/link-chart-to-list
Could you please advise if there are errors in the code? I want to filter on “Issue Status”. The code has been copied in Dashboard → Advanced tab. Please see code below:
[code]var handlers = {};
handlers.preRender = function (config, logger) {
logger.debug('Configuration: ', config);
var filtrationApplied = false;
config.plotAreaClick = function (e) {
if (!filtrationApplied) {
window.location.hash = '';
}
filtrationApplied = false;
}
config.seriesClick = function (e) {
if (ctx && ctx.clvp) {
var filter =
'FilterField1=IssueStatus-FilterValue1=' + e.dataItem.IssueStatus + '-'+
window.location.hash = 'InplviewHash' +
ctx.clvp.wpid + '=' + encodeURIComponent(filter);
filtrationApplied = true;
}
}
return true;
}[/code]
Thanks, in anticipation,
Vegard