// reportOptions variable comes from respective config file // Array that stores objects for each element returned via rest var chartsData; var map; var NVGraphs = new NVD3CustomGraphs(); var mainDOMId = "piechart"; var breakdownDOMId = "breakdown"; var lastSliceClicked = null; var csvExportButton; function initPage() { // function from generic.js, variable from config file initHeaderAndFilters(headerAndFilters); $("#content-body") .append( $("
").attr("id", mainDOMId) //.addClass((reportOptions.isClickable) ? "clickable" : "") ) .append( $("
").attr("id", breakdownDOMId) ); initSvg(mainDOMId); if (reportOptions.hasFriendlierNames) { $("#content") .append( $("
") .attr("id", "friendlier-names-field") .append( $("") .attr("id", "friendlier-names") .attr("type", "checkbox") .attr("disabled", false) .prop("checked", true) ) .append( $("