Skip to content

Commit

Permalink
Merge branch 'main' into toggle-view
Browse files Browse the repository at this point in the history
  • Loading branch information
mfstabile committed Aug 29, 2023
2 parents 8844674 + 9b89dcf commit 8d37e1a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend/app/dashboard/static/dashboard-progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ function updateHandsontable(data, columns_list) {
data_h[0]['z'] = zvals;
Plotly.redraw('chart');

ret = generateMatrix(data, columns_list)
zvals = ret[1]
data_h[0]['x'] = columns_list.slice(1);
data_h[0]['z'] = zvals;
Plotly.redraw('chart');

let dataSchema = getDataSchema(columns_list);
hot.updateSettings({
data: data,
Expand Down Expand Up @@ -211,8 +217,12 @@ document.addEventListener("DOMContentLoaded", function () {

createHandsontable(tableData, columns);

<<<<<<< HEAD
data = filterStudentsInClass(tableData);
ret = generateMatrix(data, columns)
=======
ret = generateMatrix(tableData, columns)
>>>>>>> main
usernames = ret[0]
zvals = ret[1]
data_h = [
Expand Down Expand Up @@ -240,7 +250,11 @@ document.addEventListener("DOMContentLoaded", function () {
},
xaxis: {showticklabels: false, ticks: "", side:"top"},
showlegend: false,
<<<<<<< HEAD
height: Math.max(400, usernames.length * 25),
=======
height: usernames.length * 20,
>>>>>>> main
autosize: true
};

Expand Down

0 comments on commit 8d37e1a

Please sign in to comment.