- Hall Of Fame
+ Hall Of Fame
@@ -179,7 +271,7 @@ small {
Top 5 Contributor overtime
@@ -240,11 +332,32 @@ small {
var datatableTop;
var datatableFame;
- var optionDatatable = {
+
+ var optionsLineChart = {
+ series: {
+ shadowSize: 0 ,
+ lines: {
+ fill: true,
+ fillColor: {
+ colors: [ { opacity: 1 }, { opacity: 0.1 } ]
+ }
+ }
+ },
+ points: { show: true },
+ lines: { show: true, fill: true },
+ grid: {
+ tickColor: "#dddddd",
+ borderWidth: 0
+ },
+ legend: {
+ show: true,
+ position: "nw"
+ }
+ };
+ var optionDatatable_light = {
responsive: true,
searching: false,
ordering: false,
- order: [[0, "asc"]],
scrollY: '50vh',
scrollCollapse: true,
paging: false,
@@ -259,10 +372,50 @@ small {
{ className: "centerCell", "targets": [ 0 ] }
]
};
+ var optionDatatable_light2 = {
+ responsive: true,
+ searching: false,
+ ordering: false,
+ scrollY: '50vh',
+ scrollCollapse: true,
+ paging: false,
+ "language": {
+ "lengthMenu": "",
+ "info": "",
+ "infoFiltered": "",
+ "infoEmpty": "",
+ },
+ "info": false,
+ "columnDefs": [
+ { className: "centerCellPic", "targets": [ 0 ] }
+ ]
+ };
+
+ var optionDatatable_Categ = {
+ ajax: {
+ url: "{{ url_for('getCategPerContrib') }}",
+ dataSrc: ''
+ },
+ responsive: true,
+ searching: false,
+ scrollY: '50vh',
+ scrollCollapse: true,
+ paging: false,
+ "info": false,
+ "columnDefs": [
+ { className: "centerCell", "targets": [ 0 ] }
+ ]
+ };
+
+ $.getJSON( "{{ url_for('getCategPerContrib') }}", function( data ) {
+ console.log(data);
+ });
$(document).ready(function() {
- datatableTop = $('#topContribTable').DataTable(optionDatatable);
- datatableFame = $('#fameTable').DataTable(optionDatatable);
+ datatableTop = $('#topContribTable').DataTable(optionDatatable_light);
+ datatableFame = $('#fameTable').DataTable(optionDatatable_light);
+ datatableCateg = $('#categTable').DataTable(optionDatatable_Categ);
+ datatableProgress = $('#topProgressTable').DataTable(optionDatatable_light2);
// top contributors
$.getJSON( "{{ url_for('getTopContributor') }}", function( data ) {
for (i in data) {
@@ -300,27 +453,6 @@ small {
});
});
- var optionsLineChart = {
- series: {
- shadowSize: 0 ,
- lines: {
- fill: true,
- fillColor: {
- colors: [ { opacity: 1 }, { opacity: 0.1 } ]
- }
- }
- },
- points: { show: true },
- lines: { show: true, fill: true },
- grid: {
- tickColor: "#dddddd",
- borderWidth: 0
- },
- legend: {
- show: true,
- position: "nw"
- }
- };