Hey,
Firstly can I say I am having great fun using fusion charts as part of an internal dashboard project, it has made my life so much easier and also impressed a few of the business - so thanks for that
I have searched but didn't find anything regarding what I am trying to achieve, apologies if it has been asked before.
I have 1 main linked chart which has 2 levels of drill down through a monthly, daily and then hourly view of data, I also have 2 sub charts which are showing different grouping of those levels of data.
I want to make the subcharts linked charts but I want the drill down level to change when I click the first chart only - is it possible to fire a Click event in code programatically?
At the moment I am doing it by capturing the linkitemopened event from the main chart and updating the datasource of the remote charts - but its a little hacky and would prefer to have 3 drillable charts and the first chart controls the drill down refresh.
$("#sChartMainDiv").insertFusionCharts({
swfUrl : "/assets/charts/Column2D.swf",
dataSource : "/index.php/dashboard/jsonGraphData/id/sChartMain",
dataFormat : "jsonurl",
width : "100%",
height : "300",
id : "sChartMain"
}).bind('fusionchartslinkeditemopened', function(eo, ao){
// Handle Chart changes
link = ao.item.args['dataSource'];
routeLink = link.replace("sChartMain", "sChartRoute");
stateLink = link.replace("sChartMain", "sChartState");
$("#sChartRouteDiv").updateFusionCharts({
dataSource : routeLink
});
$("#sChartStateDiv").updateFusionCharts({
dataSource : stateLink
});
})
Any help much appreciated
Thx
Dave