minor changes

This commit is contained in:
10001shh
2018-07-07 01:46:41 -05:00
parent e49c2d1f31
commit 5a9966b1ed
2 changed files with 10 additions and 4 deletions

View File

@@ -73,8 +73,8 @@ function getDistribution(){
openDialog(department,coursename,"aggregate",profname,res); openDialog(department,coursename,"aggregate",profname,res);
} }
function openDialog(dep,cls,sem,professor,data){ function openDialog(dep,cls,sem,professor,res){
data = data.values[0]; var data = res.values[0];
var modal = document.getElementById('myModal'); var modal = document.getElementById('myModal');
var span = document.getElementsByClassName("close")[0]; var span = document.getElementsByClassName("close")[0];
modal.style.display = "block"; modal.style.display = "block";
@@ -83,6 +83,7 @@ function openDialog(dep,cls,sem,professor,data){
var name; var name;
if(profname == ""){ if(profname == ""){
name = "Undecided Professor "; name = "Undecided Professor ";
console.log(res.values);
} }
else{ else{
name = profname.substring(0,1)+profname.substring(1).toLowerCase(); name = profname.substring(0,1)+profname.substring(1).toLowerCase();
@@ -154,6 +155,11 @@ function openDialog(dep,cls,sem,professor,data){
bar: { bar: {
pointPadding: 0.2, pointPadding: 0.2,
borderWidth: 0 borderWidth: 0
},
series: {
animation: {
duration: 700
}
} }
}, },
series: [{ series: [{

View File

@@ -38,7 +38,7 @@
} }
.description { .description {
padding: 5px; padding: 5px;
font-size: 14px; font-size: 15px;
font-weight: normal; font-weight: normal;
} }