//set true for disabled filter
var headerAndFilters = {
headerType: "header-sc-dategrouping", // capture stats filtering header
disabledFields: // disables header fields
[
false, // platforms
false, // locations
false, // age
false, // gamers
false, // game-types
false, // date-grouping
false, // character
[false, false, false], // dates+builds
],
};
var items = [
{
metric: "Concurrent Players" ,
val: function(d) {return d.Value;},
}
];
var reportOptions = {
restEndpoint: config.concurrentUsers,
restEndpointAsync: config.concurrentUsersAsync,
multipleRequests: generateEndpoints,
processFunction: convertToDict,
enablePNGExport: "content-description",
enableCSVExport: "content-description",
//graphTitle: "Total Players",
elementId: "line-area-chart",
//backgroundColour: "#ffffff",
backgroundColour: "transparent",
lineColour: config.chartColour1,
textColour: "#000000",
gridColour: "#333333",
name: function(d) { return d.name; },
truncatedNameChars: 35,
fullName: function(d, extra) { return ((extra) ? this.name(d) + "
(" + extra + ")" : this.name(d)); },
value: function(d) { return d.value; },
label: function(d) {return ((d.label) ? d.label : this.name(d)); },
orientation: "horizontal",
margin: {top: 10, right: 10, bottom: 10, left: 120},
//orientation: "vertical",
//margin: {top: 10, right: 10, bottom: 10, left: 200},
legend: {height: 30, width: 200, rectWidth: 18},
legendDataConst : [],
legendDataVar: {label : "", colour: config.chartColour1, hasBrackets: true}, // keep this colour in sync with lineColour
valueTooltipContent: function(d, b) {
var content = "
| " + item.metric + ": | " + commasFixed2(item.val(d.values)) + " |
| Unique Players: | " + commasFixed2(d.values.UniqueGamers) + " |