var singlePrefix = "SP", multiPrefix = "MP", singleLength = 3, multiLength = 5; var barHeight = 15; /* var pieChartLegend = "Pie Chart :: "; barChartLegend = "Bar Chart :: "; */ var pieChartId = "piechart", barChartId = "barchart"; var weaponNamesMap = {}; var rangeWarningFlag = false, rangeWarningText = "WARNING! There are values returned outside " + "the expected range and they are not shown on the graph." + " If you think that there are missing values please " + "Contact Tools"; var commasFixed2 = function(d) {return d3.format(",")(d.toFixed(2)); }; var currentStat = (getUrlVars()["stat"]) ? getUrlVars()["stat"] : 0; var currentFilename = config.currentFilename + "?stat=" + currentStat; var marginLeft = 135; //var queryAsyncUrl = config.restHost + config.profileStatPath + config.queryAsyncPath; // Object used for local storage of the user selections //var pageData = { // availableChart: 0, //} function initPage() { // function from generic.js, variable from config file initHeaderAndFilters(headerAndFilters); $("#content") .append( $("
") .attr("id", "friendlier-names-field") .append( $("") .attr("id", "friendlier-names") .attr("type", "checkbox") .attr("disabled", true) ) .append( $("