// set true for disabled filter var headerAndFilters = { headerType: "header-sc", // social club filtering header disabledFields: // disables header fields [ false, // platforms false, // locations false, // age false, // gamers false, // game-types false, // dates+builds ], }; /* var chartOptions = { name: "Cutscenes :: ", restEndpoint: config.cutscenesStats, restEndpointAsync: config.cutscenesStatsAsync, title: "Overall Duration", averageTitle: "Average Skip Time", valueText: "Overall Duration : ", percentText: "Percentage of Times Watched : ", avereageText: "Average Skip Time : ", jsonName: function(d) {return d.CutsceneViews[0].CutsceneName;}, jsonDuration: function(d) {return d.CutsceneViews[0].CutsceneDuration;}, jsonAverage: function(d) { return (d.CutsceneViews[0].AverageTimeWatched > d.CutsceneViews[0].CutsceneDuration) ? d.CutsceneViews[0].CutsceneDuration : d.CutsceneViews[0].AverageTimeWatched }, jsonPercent: function(d) {return ((d.CutsceneViews[0].Ended/d.CutsceneViews[0].Started) * 100).toFixed(2) + "%";}, colour: config.chartColour1, averageColour: config.chartColour2, units: " secs", chartLeftMargin: 185, controls: false, }; */ var reportOptions = { //name: "Cutscenes :: ", restEndpoint: config.cutscenesStats, restEndpointAsync: config.cutscenesStatsAsync, processFunction: ungroupCutscenes, //hasFilterInput: true, hasFriendlierNames: true, description: "For each cutscene there is an orange bar - displaying the entire length of the cutscene - and a blue bar" + " - displaying the average length of the cutscene that was watched before it was skipped. " + "Hovering the cursor over either bar will display both these piece of information, as well " + " as the percentage of times the cutscene was watched in full.", /* chartGroups: { getGroups: function(d) {return d}, // Data are returned grouped getGroupName: function(d) {return "Mission : " + d.MissionName}, getGroupValues: function(d) {return d.CutsceneViews}, }, */ chartGroups: { getGroups: function(d) {return [d]}, // one group getGroupName: function(d) {return ""}, getGroupValues: function(d) {return d}, }, bars: [ { title: "Average Skip Time", colour: config.chartColour2, getName: function(d) { return ($("#friendlier-names").is(":checked") && d.CutsceneFriendlyName) ? d.CutsceneFriendlyName : d.CutsceneName; }, getValue: function(d) {return d.AverageTimeWatched }, getObject: function(d) {return d}, }, { title: "Overall Duration", colour: config.chartColour1, getName: function(d) { return ($("#friendlier-names").is(":checked") && d.CutsceneFriendlyName) ? d.CutsceneFriendlyName : d.CutsceneName; }, getValue: function(d) {return d.CutsceneDuration }, getObject: function(d) {return d}, }, ], tooltipContent: function(key, x, y, e, graph) { var html = "
| Overall Duration: | " + formatSecs(e.point.Object.CutsceneDuration) + " (" + commasFixed2(e.point.Object.CutsceneDuration) + " secs)" + " |
| Average Skip Time: | " + formatSecs(e.point.Object.AverageTimeWatched) + " (" + commasFixed2(e.point.Object.AverageTimeWatched) + " secs)" + " |
| Percentage of times entire cutscene was watched: | " + commasFixed2((e.point.Object.Ended/e.point.Object.Started) * 100) + "%" + " |
| Has Branches: | " + e.point.Object.CutsceneHasBranches + " |