OXIESEC PANEL
- Current Dir:
/
/
home
/
cubot
/
docroot
/
showcase
/
js
/
jqplot
/
plugins
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2022 11:05:15 AM
rwxr-xr-x
📄
jqplot.barRenderer.min.js
14.25 KB
08/14/2022 11:05:13 AM
rw-r--r--
📄
jqplot.bubbleRenderer.js
30.35 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.canvasAxisLabelRenderer.min.js
3.77 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.canvasAxisTickRenderer.min.js
4.16 KB
08/14/2022 11:05:13 AM
rw-r--r--
📄
jqplot.canvasTextRenderer.min.js
16.58 KB
08/14/2022 11:05:13 AM
rw-r--r--
📄
jqplot.categoryAxisRenderer.min.js
10.16 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.donutRenderer.min.js
13.9 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.enhancedLegendRenderer.min.js
4.24 KB
08/14/2022 11:05:14 AM
rw-r--r--
📄
jqplot.funnelRenderer.min.js
38.89 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.highlighter.min.js
22.22 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.meterGaugeRenderer.min.js
41.87 KB
08/14/2022 11:05:15 AM
rw-r--r--
📄
jqplot.pieRenderer.min.js
14.21 KB
08/14/2022 11:05:13 AM
rw-r--r--
📄
jqplot.pointLabels.min.js
5.16 KB
08/14/2022 11:05:14 AM
rw-r--r--
📄
jquery.jqplot.min.js
357.8 KB
08/14/2022 11:05:13 AM
rw-r--r--
📄
tableChart.js
3.13 KB
08/14/2022 11:05:15 AM
rw-r--r--
Editing: tableChart.js
Close
function getTotals(ReportData, ndims){ var totalArray=new Array(); var total=0; for(var i=ndims; i<ReportData[0].length; i++){ total=0; for(var j=1; j<ReportData.length; j++) total+=parseFloat(ReportData[j][i]); totalArray[i]=total; } return totalArray; } function drawTableChart(ReportData, divId, Title, Width, Height, ndims, nmeas, measFormats, dispObj, toolTip) { var watch= new stopWatch(); var TableId="T"+Math.random().toString().replace('.',''); var sortCol=0, ascDesc='asc', columnTitles=new Array(); var htmlstr='<div class=myChart style="height:'+Height+'px;width:'+Width+'px"><div style="width: 100%; text-align: center;" title="'+toolTip+'">'+Title+'</div>'; htmlstr+='<table cellpadding="0" cellspacing="0" border="0" class="display" id="'+TableId+'">'; htmlstr+='<thead><tr>'; for(i=0; i<ReportData[0].length; i++){ if(String(ReportData[0][i]).toUpperCase() == "YEAR"){ sortCol=i; ascDesc='desc'; } colName=String(ReportData[0][i]).toUpperCase(); columnTitles[i]={}; if( colName == 'MONTH'){ columnTitles[i]["sType"]="Month"; } else if(colName == 'WEEK'){ columnTitles[i]["sType"]="Week"; } else if(colName == 'DAY'){ columnTitles[i]["sType"]="Weekdays"; } else if(colName == 'FIN. MONTH'){ columnTitles[i]["sType"]="FMonth"; } /*columnTitles[i]["sTitle"]=ReportData[0][i]; if(i<ndims) columnTitles[i]["sClass"]="left"; else columnTitles[i]["sClass"]="right"; */ htmlstr+='<th align='+(i<ndims?"\'left\'":"\'right\'")+'>'+ReportData[0][i]+'</th>'; } htmlstr+='</tr></thead>'; var totalArray=getTotals(ReportData, ndims); htmlstr+='<tbody>'; var formats=new Array(), k=0; for(i=0; i<measFormats.length; i++) formats[i]=getFormat(measFormats[i]); for(i=0; i<ReportData.length-1; i++){ htmlstr+='<tr>'; for(j=0; j<ReportData[i].length; j++){ if(j<ndims){ lf="left"; val=ReportData[i+1][j]; k=0; } else{ lf="right"; if(typeof measFormats[k] == "undefined") measFormats[k]="cup2"; //val=formatMoney(ReportData[i+1][j], formats[k].prefix, formats[k].suffix, formats[k].prec,formats[k].dec,formats[k].Gsym); val=formatData(ReportData[i+1][j], measFormats[k],0); k++; } htmlstr+='<td align="'+lf+'">'+val+'</td>'; } htmlstr+='</tr>'; } htmlstr+='</tbody>'; htmlstr+='<tfoot><tr>'; htmlstr+='<th><b>Grand Total</b></th>'; for(j=1; j<ndims; j++) htmlstr+='<th></th>'; for ( j=ndims, k=0; j<totalArray.length; j++,k++){ //htmlstr+='<th align="right"><b>'+formatMoney(totalArray[j], formats[k].prefix, formats[k].suffix, formats[k].prec,formats[k].dec,formats[k].Gsym)+'</b></th>'; htmlstr+='<th align="right"><b>'+formatData(totalArray[j], measFormats[k],0)+'</b></th>'; } htmlstr+='</tr></tfoot>'; htmlstr+='</table></div>'; $('#'+divId).html(htmlstr); $('#'+TableId).dataTable({ //"aaData":ReportData.slice(1), "aoColumns":columnTitles, "bJQueryUI": true, "sPaginationType": "full_numbers", "aaSorting": [ [sortCol, ascDesc] ], "iDisplayLength":25 }); watch.stop(); writeLog(INFO, sessionid, new logContext("Charting", "TABLE", divId, "PERFORMANCE","HighCharts", '', watch.stTime, watch.endTime)); }