// 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 true, // game-types false, // character false, // dates+builds ], }; var reportOptions = { name: "Missions :: ", // Not used in clickable pie chart version - subheader removed restEndpoint: config.missionsStats, restEndpointAsync: config.missionsStatsAsync, processFunction: groupMissions, isClickable: true, enablePNGExport: "content-description", enableCSVExport: "content-description", // This is a piechart main: { legend: true, pieLabelsOutside: true, labelSunbeamLayout: false, donut: true, donutLabelsOutside: true, sortByValueDesc: true, getPieLabel: function(d) { return this.title; }, getValuesArray: function(d) {return d.values; }, getMetadata: function(d) {return d.metadata; }, title: "Total Time", getName: function(d) { return (d.FriendlyName) ? d.FriendlyName : d.MissionType; }, getValue: function(d) { return d.TotalTime/config.anHourInSecs; }, unit: " hours", lrMargin: 40, }, // This is the breakdown piechart breakdown: { legend: false, pieLabelsOutside: true, labelSunbeamLayout: true, donut: true, donutLabelsOutside: false, sortByValueDesc: true, getPieLabel: function(d) {return d.label}, getValuesArray: function(d) {return d.Variants; }, // this is the values array inside the returned object getMetadata: function(d) {return d.metadata; }, // function to get the name from the rest data getName: function(d) { return ($("#friendlier-names").is(":checked") && d.FriendlyName) ? d.FriendlyName : d.MissionName; }, getValue: function(d) { return d.TotalTime/config.anHourInSecs; }, unit: " hours", lrMargin: 40, // Pass the breakdown object (need to include label/values/metadata) getObjects: function(d) { return [d]; }, }, }; /* var radioButtonsPrefix = "missions-radio"; function addMetrics() { $("#content-description") .empty() .append( $("
") .attr("id", "content-description-radiometrics") .css("float", "left") .append( $("") .attr("type", "radio") .attr("name", radioButtonsPrefix) .attr("id", radioButtonsPrefix + "-1") .val("TotalTime|hours") .attr("checked", true) ) .append( $("