Skip to content

Commit

Permalink
historic instructed course distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseibel committed Dec 23, 2024
1 parent 83ca196 commit 721da35
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions coursedashboards/static/coursedashboards/js/course.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ var showCourseData = function (label) {

renderStudentProfile('repeat', section.current_repeating, section.current_enrollment);

renderGPADisribution('current-cumulative-median-gpa', section.current_median, section.gpas);

renderCoursePercentage1('current-declared-majors-chart', section.current_student_majors, 'major_name', 'percent_students');
renderCoursePercentage1('current-concurrent-courses-chart', section.concurrent_courses, 'course_ref', 'percent_students');
} else {
Expand All @@ -90,6 +92,11 @@ var showCourseData = function (label) {
section_count: 1,
gpa_distribution_time: 'past'
}));

chart_container = $('.current-section #historic-median-cumulative-gpa');
if (chart_container.length) {
renderGPADisribution(chart_container, section.current_median, section.gpas);
}
}

$('.course-title span').html(section.course_title);
Expand All @@ -101,10 +108,6 @@ var showCourseData = function (label) {
// update term labels
$('span.displayed-quarter').html(firstLetterUppercase(section.quarter) + " " + section.year);

if (current_course_panel) {
renderGPADisribution('current-cumulative-median-gpa', section.current_median, section.gpas);
}

setup_exposures($("#current-course-target"));

$('#current-course-target [data-toggle="popover"]').popover();
Expand Down

0 comments on commit 721da35

Please sign in to comment.