Course Total with Calculated Weight Calculator & Guide
:root {
–primary-color: #004a99;
–success-color: #28a745;
–background-color: #f8f9fa;
–text-color: #333;
–border-color: #ddd;
–shadow-color: rgba(0, 0, 0, 0.1);
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(–text-color);
background-color: var(–background-color);
margin: 0;
padding: 0;
}
.container {
max-width: 960px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 15px var(–shadow-color);
display: flex;
flex-direction: column;
}
h1, h2, h3 {
color: var(–primary-color);
text-align: center;
margin-bottom: 1.5em;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 1.8em;
margin-top: 1.5em;
}
h3 {
font-size: 1.4em;
margin-top: 1.2em;
}
.calculator-section {
margin-bottom: 40px;
padding: 30px;
border: 1px solid var(–border-color);
border-radius: 8px;
background-color: #fdfdfd;
}
.calculator-section h2 {
text-align: left;
margin-bottom: 20px;
}
.loan-calc-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.input-group {
margin-bottom: 15px;
}
.input-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: var(–primary-color);
}
.input-group input[type="number"],
.input-group select {
width: calc(100% – 16px);
padding: 10px;
border: 1px solid var(–border-color);
border-radius: 5px;
font-size: 1em;
box-sizing: border-box;
}
.input-group input[type="number"]:focus,
.input-group select:focus {
outline: none;
border-color: var(–primary-color);
box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.2);
}
.input-group small {
display: block;
margin-top: 5px;
font-size: 0.85em;
color: #666;
}
.error-message {
color: red;
font-size: 0.8em;
margin-top: 5px;
display: none; /* Hidden by default */
}
.error-message.visible {
display: block;
}
.button-group {
display: flex;
justify-content: space-between;
gap: 10px;
margin-top: 25px;
}
.btn {
padding: 12px 20px;
border: none;
border-radius: 5px;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
flex: 1;
text-align: center;
}
.btn-primary {
background-color: var(–primary-color);
color: white;
}
.btn-primary:hover {
background-color: #003a7a;
transform: translateY(-2px);
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #5a6268;
transform: translateY(-2px);
}
.btn-reset {
background-color: #ffc107;
color: #212529;
}
.btn-reset:hover {
background-color: #e0a800;
transform: translateY(-2px);
}
.results-container {
margin-top: 30px;
padding: 25px;
border: 1px solid var(–border-color);
border-radius: 8px;
background-color: var(–background-color);
}
.results-container h3 {
text-align: left;
margin-top: 0;
margin-bottom: 20px;
color: var(–primary-color);
}
.main-result {
font-size: 2.5em;
font-weight: bold;
color: var(–success-color);
background-color: #e9ecef;
padding: 15px 20px;
border-radius: 5px;
margin-bottom: 15px;
text-align: center;
}
.intermediate-results div {
margin-bottom: 10px;
font-size: 1.1em;
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px dashed #eee;
}
.intermediate-results div:last-child {
border-bottom: none;
}
.intermediate-results span:first-child {
font-weight: bold;
color: var(–primary-color);
}
.formula-explanation {
font-size: 0.9em;
color: #555;
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #ccc;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 25px;
}
th, td {
padding: 12px;
text-align: left;
border: 1px solid var(–border-color);
}
th {
background-color: var(–primary-color);
color: white;
font-weight: bold;
}
td {
background-color: #f8f9fa;
}
tr:nth-child(even) td {
background-color: #e9ecef;
}
caption {
font-size: 1.1em;
font-weight: bold;
color: var(–primary-color);
margin-bottom: 10px;
caption-side: top;
text-align: left;
}
.chart-container {
margin-top: 30px;
padding: 25px;
border: 1px solid var(–border-color);
border-radius: 8px;
background-color: #fff;
text-align: center;
}
.chart-container canvas {
max-width: 100%;
height: auto;
display: inline-block;
}
.chart-container h3 {
text-align: left;
margin-top: 0;
margin-bottom: 20px;
color: var(–primary-color);
}
.article-content {
margin-top: 40px;
padding: 30px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px var(–shadow-color);
}
.article-content h2 {
text-align: left;
border-bottom: 2px solid var(–primary-color);
padding-bottom: 5px;
margin-top: 2em;
}
.article-content h3 {
text-align: left;
margin-top: 1.5em;
color: #0056b3;
}
.article-content p, .article-content ul, .article-content ol {
margin-bottom: 1em;
}
.article-content ul, .article-content ol {
padding-left: 25px;
}
.article-content li {
margin-bottom: 0.5em;
}
.faq-item {
margin-bottom: 15px;
}
.faq-item h3 {
margin-bottom: 5px;
font-size: 1.1em;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
color: var(–primary-color);
background-color: #f0f0f0;
padding: 10px;
border-radius: 5px;
}
.faq-item h3::after {
content: '+';
font-size: 1.3em;
color: var(–primary-color);
}
.faq-item h3.active::after {
content: '-';
}
.faq-answer {
display: none;
padding: 10px;
border: 1px solid #eee;
border-top: none;
border-radius: 0 0 5px 5px;
background-color: #fafafa;
}
.internal-links {
margin-top: 30px;
padding: 25px;
border: 1px solid var(–border-color);
border-radius: 8px;
background-color: #fdfdfd;
}
.internal-links h3 {
text-align: left;
margin-top: 0;
margin-bottom: 20px;
color: var(–primary-color);
}
.internal-links ul {
list-style: none;
padding: 0;
}
.internal-links li {
margin-bottom: 15px;
}
.internal-links a {
color: var(–primary-color);
text-decoration: none;
font-weight: bold;
}
.internal-links a:hover {
text-decoration: underline;
}
.internal-links p {
font-size: 0.9em;
color: #555;
margin-top: 5px;
}
footer {
text-align: center;
margin-top: 40px;
padding: 20px;
font-size: 0.9em;
color: #777;
}
.copy-button {
background-color: #17a2b8;
color: white;
margin-left: 10px;
}
.copy-button:hover {
background-color: #138496;
transform: translateY(-2px);
}
.copied-message {
color: var(–success-color);
font-weight: bold;
margin-left: 10px;
display: none;
}
Calculation Results
—
Formula: The weighted total is calculated by summing the product of each assignment's score and its weight, then dividing by the total weight of all assignments.
Weighted Total = Σ (Scoreᵢ * Weightᵢ) / Σ (Weightᵢ)
Assignment Contribution Breakdown
Visualizing how each assignment contributes to your overall course score.
Assignment Details Table
Assignment Data
| Assignment |
Score |
Weight (%) |
Contribution (%) |
{primary_keyword}
{primary_keyword} refers to the final calculated grade or score in an academic course, where each graded component (like assignments, exams, projects) contributes to the overall total based on a predefined percentage or weight. It's a fundamental concept in education that ensures fairness by acknowledging that not all academic tasks carry the same level of importance. Understanding {primary_keyword} is crucial for students to accurately track their progress, identify areas needing improvement, and strategize for achieving their desired final mark. This method is ubiquitous across high schools, colleges, and universities worldwide, forming the backbone of academic assessment.
Who Should Use It: Any student enrolled in a course with a structured grading system can benefit from understanding {primary_keyword}. This includes students at all levels of education, from K-12 to postgraduate studies. Educators also use this concept to design their syllabi and communicate grading expectations clearly.
Common Misconceptions:
- Misconception 1: All assignments are equal. In a weighted system, a small quiz might be worth 5% while a final exam is worth 40%, so they are not equal in their impact on the final grade.
- Misconception 2: A high score on one assignment guarantees a high final grade. The overall {primary_keyword} depends on performance across *all* weighted components.
- Misconception 3: The total weight must always be 100%. While common, some grading schemes might use weights that don't explicitly sum to 100%, especially if extra credit is involved or if only a subset of assignments counts towards the final mark. Our calculator assumes weights are percentages that should ideally sum to 100 for a standard calculation.
The core of calculating a {primary_keyword} involves a weighted average. Each assignment's score is multiplied by its corresponding weight, and these products are summed up. This sum is then divided by the total weight of all assignments considered to normalize the result.
Step-by-step derivation:
- Identify all graded components: List all assignments, exams, projects, and any other graded elements within the course.
- Determine the score for each component: Note down the score achieved for each item (e.g., 85/100, 45/50).
- Determine the weight of each component: Find out the percentage each component contributes to the final grade as stated in the course syllabus.
- Convert scores to a consistent scale (if necessary): Ensure all scores are on a comparable scale, typically 0-100. If an assignment is graded out of 50, and the maximum is 50, a score of 45 would be (45/50) * 100 = 90%.
- Calculate the weighted score for each component: Multiply the (normalized) score of each component by its weight. For example, if an exam score is 90% and its weight is 30%, the weighted score is 0.90 * 30% = 27.
- Sum the weighted scores: Add up the weighted scores calculated in the previous step for all components. This gives the numerator of our weighted average formula.
- Sum the weights: Add up the weights of all the components that are being considered for the final grade. This gives the denominator.
- Calculate the final weighted total: Divide the sum of the weighted scores (Step 6) by the sum of the weights (Step 7). The result is your {primary_keyword}.
Formula:
Weighted Total = [ (Score₁ × Weight₁) + (Score₂ × Weight₂) + … + (Scoren × Weightn) ] / (Weight₁ + Weight₂ + … + Weightn)
Where:
- Scoreᵢ = The score achieved in assignment i (typically normalized to a 0-100 scale).
- Weightᵢ = The percentage weight assigned to assignment i.
Variables Table
Variable Definitions for Weighted Average
| Variable |
Meaning |
Unit |
Typical Range |
| Scorei |
Score achieved in the i-th assignment |
Percentage (0-100) |
0 – 100 |
| Weighti |
Percentage weight of the i-th assignment |
Percentage (0-100) |
1 – 100 (can be adjusted based on course design) |
| Weighted Total |
The final calculated course grade |
Percentage (0-100) |
0 – 100 |
| Total Weight Applied |
Sum of the weights of all assignments included in the calculation |
Percentage (0-100) |
Typically close to 100, but can vary |
Practical Examples (Real-World Use Cases)
Let's illustrate with practical examples how {primary_keyword} works:
Example 1: Standard Course Structure
Consider a course with three components:
- Midterm Exam: Score = 88/100, Weight = 30%
- Final Project: Score = 95/100, Weight = 40%
- Homework Assignments: Score = 75/100, Weight = 30%
Calculation:
- Midterm Weighted Score: 88 * 0.30 = 26.4
- Final Project Weighted Score: 95 * 0.40 = 38.0
- Homework Weighted Score: 75 * 0.30 = 22.5
Sum of Weighted Scores: 26.4 + 38.0 + 22.5 = 86.9
Sum of Weights: 30% + 40% + 30% = 100%
{primary_keyword}: 86.9 / 100 = 86.9%
Interpretation: The student achieves a final course grade of 86.9%. This demonstrates a solid performance, largely driven by a strong score on the final project.
Example 2: Course with Incomplete Components
Suppose a student missed one assignment:
- Assignment A: Score = 90/100, Weight = 40%
- Assignment B: Score = 70/100, Weight = 40%
- Assignment C: Score = 0/100 (missed), Weight = 20%
Calculation:
- Assignment A Weighted Score: 90 * 0.40 = 36.0
- Assignment B Weighted Score: 70 * 0.40 = 28.0
- Assignment C Weighted Score: 0 * 0.20 = 0.0
Sum of Weighted Scores: 36.0 + 28.0 + 0.0 = 64.0
Sum of Weights: 40% + 40% + 20% = 100%
{primary_keyword}: 64.0 / 100 = 64.0%
Interpretation: Missing even one assignment with a significant weight can drastically lower the {primary_keyword}. This example highlights the importance of completing all graded tasks.
Example 3: Adjusting for Dropped Assignment
A course allows the lowest homework score to be dropped:
- Exam 1: Score = 85/100, Weight = 40%
- Homework 1: Score = 90/100, Weight = 20%
- Homework 2: Score = 70/100, Weight = 20%
- Homework 3: Score = 95/100, Weight = 20%
The lowest homework score (70) is dropped. The weights for the remaining homeworks are re-distributed.
Recalculated Weights: The total homework weight (60%) is now split between Homework 1 and Homework 3. Each now effectively counts for 30% (60% / 2).
Calculation:
- Exam 1 Weighted Score: 85 * 0.40 = 34.0
- Homework 1 Weighted Score: 90 * 0.30 = 27.0
- Homework 3 Weighted Score: 95 * 0.30 = 28.5
Sum of Weighted Scores: 34.0 + 27.0 + 28.5 = 89.5
Sum of Weights: 40% + 30% + 30% = 100%
{primary_keyword}: 89.5 / 100 = 89.5%
Interpretation: Dropping the lowest score significantly boosted the student's {primary_keyword} from what it would have been if all homeworks were included, showing the benefit of this grading policy.
How to Use This {primary_keyword} Calculator
Our {primary_keyword} calculator is designed for simplicity and accuracy. Follow these steps to get your calculated grade:
- Input Assignment Names: Enter descriptive names for each assignment (e.g., "Chapter Quiz," "Lab Report," "Presentation"). This helps in organizing your results.
- Enter Scores: For each assignment, input the score you received. If your assignment was graded out of a different total (e.g., 45 out of 50), enter your score as is. The calculator will normalize it if needed (though for simplicity, it expects scores typically on a 0-100 scale or equivalent relative to max points). Ensure you are using the score you achieved.
- Input Weights: Enter the percentage weight each assignment carries towards your final course grade. This information is usually found in your course syllabus. Ensure these are entered as percentages (e.g., 30 for 30%).
- Add More Assignments (if needed): While the calculator is pre-set for three assignments, you can conceptually add more by adjusting the weights in your mind or by modifying the code if you have advanced needs.
- Calculate: Click the "Calculate Total" button.
- View Results: The calculator will display your main {primary_keyword} prominently, along with intermediate values like the total weight applied and the total score contribution. A breakdown table and a chart will also update to provide a visual representation.
- Interpret Results: Use the {primary_keyword} to understand your current standing in the course. Check the intermediate values to see how the weights are affecting your score.
- Reset Values: If you need to start over or test different scenarios, click the "Reset Values" button to return the fields to sensible defaults.
- Copy Results: Use the "Copy Results" button to easily transfer your calculated grade and key figures to a document or note.
Decision-Making Guidance: Use the calculated {primary_keyword} to gauge your performance. If the result is lower than expected, identify which weighted components need more attention. If you are close to a desired grade boundary, focus your efforts on assignments with higher weights.
Key Factors That Affect {primary_keyword} Results
Several factors can significantly influence your {primary_keyword}. Understanding these can help you strategize and manage your academic performance more effectively:
-
Assignment Weights: This is the most direct factor. Assignments with higher percentage weights have a greater impact on your final grade. A small slip on a 40% weighted final exam will hurt more than a missed 5% quiz. Prioritize tasks according to their weight.
-
Individual Assignment Scores: Naturally, the scores you achieve on each assignment are paramount. Higher scores contribute more positively to the weighted sum. Consistent good performance across all high-weight tasks is key to a high {primary_keyword}.
-
Course Structure and Policies: The syllabus dictates the grading scheme. Policies like dropping the lowest score, curving grades, or offering extra credit can alter your {primary_keyword}. Always read and understand your syllabus thoroughly.
-
Normalization of Scores: If assignments are graded out of different maximum points (e.g., 80/100 vs. 45/50), scores must be normalized to a common scale (usually percentage) before applying weights. Failure to normalize correctly will lead to an inaccurate {primary_keyword}. Our calculator assumes inputs are either percentages or easily convertible.
-
Completion of All Components: Failing to submit assignments, especially those with substantial weights, will result in a score of zero for that component, drastically lowering your {primary_keyword}. This is especially true if there are no policies to drop low scores.
-
Instructor's Grading Scale: While the {primary_keyword} calculates a numerical score, the final letter grade (A, B, C, etc.) often depends on the instructor's specific grading scale (e.g., 90-100 is A, 80-89 is B). Your calculated score is the basis for this conversion.
-
Potential for Extra Credit: Some courses offer extra credit opportunities. These points are typically added on top of the calculated {primary_keyword} or used to slightly boost a component's score, potentially improving your final standing.
Frequently Asked Questions (FAQ)
What is the difference between a simple average and a weighted average?
A simple average treats all items equally. A weighted average assigns different levels of importance (weights) to different items, meaning some items have a greater impact on the final result than others. {primary_keyword} uses a weighted average.
How do I find the weights for each assignment?
The weights for each assignment are typically detailed in the course syllabus provided by your instructor at the beginning of the semester.
What if the weights in my syllabus don't add up to 100%?
This can happen if the instructor intends to drop certain scores or if there are bonus opportunities. If the total weight is less than 100%, the calculated grade will be out of that lower total. If it's more than 100%, it might indicate extra credit opportunities are already factored in. Our calculator computes based on the sum of weights provided. For a standard calculation, ensure weights sum to 100%.
Can I use this calculator if my course has more than 3 assignments?
This specific calculator is set up for three assignments. For courses with more components, you would need to extend the input fields and calculation logic, or use a spreadsheet program like Excel or Google Sheets where you can easily add more rows.
What does 'Contribution (%)' mean in the table?
The 'Contribution (%)' column shows how much percentage points a specific assignment added to your final course total. It's calculated as (Score * Weight) / Total Possible Weight. For example, an assignment worth 30% weighted score contributing 25 percentage points means it added 25 points towards the final 100% total.
How does the calculator handle scores not out of 100?
For simplicity, this calculator expects scores and weights directly. If your score is, for example, 45 out of 50, you should first convert it to a percentage (45/50 = 90%) and input 90 for the score. The weight should be entered as its percentage value (e.g., 30 for 30%).
What is the best strategy to maximize my {primary_keyword}?
Focus on assignments with the highest weights. Aim for consistent performance across all graded components. Understand the grading rubric for major assignments and seek clarification from your instructor if needed. Don't neglect smaller assignments, as they can still add up.
Can this calculator predict my final grade if I haven't completed all assignments?
Yes, you can use it to predict potential final grades. Enter your current scores and weights for completed assignments, and for future assignments, you can input your target scores (e.g., 90%) to see what your final grade would be if you achieve them. This helps in setting realistic goals.
var assignments = []; // Array to store assignment data
function validateInput(id, errorId, minValue, maxValue) {
var input = document.getElementById(id);
var errorElement = document.getElementById(errorId);
var value = input.value.trim();
var valid = true;
errorElement.textContent = ";
errorElement.classList.remove('visible');
input.style.borderColor = '#ddd';
if (value === ") {
errorElement.textContent = 'This field cannot be empty.';
errorElement.classList.add('visible');
input.style.borderColor = 'red';
return false;
}
var numValue = parseFloat(value);
if (isNaN(numValue)) {
errorElement.textContent = 'Please enter a valid number.';
errorElement.classList.add('visible');
input.style.borderColor = 'red';
return false;
}
if (minValue !== undefined && numValue maxValue) {
errorElement.textContent = 'Value cannot exceed ' + maxValue + '.';
input.style.borderColor = 'red';
errorElement.classList.add('visible');
return false;
}
return true;
}
function calculateWeightedTotal() {
assignments = [];
var isValid = true;
// Assignment 1
isValid &= validateInput('assignment1Score', 'assignment1ScoreError', 0);
isValid &= validateInput('assignment1Weight', 'assignment1WeightError', 0, 100);
var name1 = document.getElementById('assignment1Name').value.trim() || 'Assignment 1';
if (isValid) {
assignments.push({
name: name1,
score: parseFloat(document.getElementById('assignment1Score').value),
weight: parseFloat(document.getElementById('assignment1Weight').value)
});
}
// Assignment 2
isValid &= validateInput('assignment2Score', 'assignment2ScoreError', 0);
isValid &= validateInput('assignment2Weight', 'assignment2WeightError', 0, 100);
var name2 = document.getElementById('assignment2Name').value.trim() || 'Assignment 2';
if (isValid) {
assignments.push({
name: name2,
score: parseFloat(document.getElementById('assignment2Score').value),
weight: parseFloat(document.getElementById('assignment2Weight').value)
});
}
// Assignment 3
isValid &= validateInput('assignment3Score', 'assignment3ScoreError', 0);
isValid &= validateInput('assignment3Weight', 'assignment3WeightError', 0, 100);
var name3 = document.getElementById('assignment3Name').value.trim() || 'Assignment 3';
if (isValid) {
assignments.push({
name: name3,
score: parseFloat(document.getElementById('assignment3Score').value),
weight: parseFloat(document.getElementById('assignment3Weight').value)
});
}
// Clear previous errors for names if they were empty but now have content
['assignment1Name', 'assignment2Name', 'assignment3Name'].forEach(function(id) {
var nameInput = document.getElementById(id);
if (nameInput.value.trim() !== ") {
document.getElementById(id.replace('Name', 'NameError')).textContent = ";
document.getElementById(id.replace('Name', 'NameError')).classList.remove('visible');
nameInput.style.borderColor = '#ddd';
}
});
if (!isValid) {
document.getElementById('resultsContainer').style.display = 'none';
return;
}
var totalWeightedScore = 0;
var totalWeight = 0;
var assignmentTableBody = document.getElementById('assignmentTableBody');
assignmentTableBody.innerHTML = "; // Clear previous rows
for (var i = 0; i 0) ? (scoreContribution / (totalPossibleWeight / 100)) : 0;
dataPoints.push(contributionToFinal);
weights.push(weightPercent);
});
// Add final grade as a reference line
if (finalGrade !== undefined && !isNaN(finalGrade)) {
// Add a dummy data point for the final grade line if needed, or use options
// For simplicity, let's just use it in options if possible, or add as a separate series if chart type allows
}
window.myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: labels,
datasets: [{
label: 'Contribution to Final Grade (%)',
data: dataPoints,
backgroundColor: 'rgba(0, 74, 153, 0.6)', // Primary color
borderColor: 'rgba(0, 74, 153, 1)',
borderWidth: 1
},
{
label: 'Assignment Weight (%)',
data: weights,
backgroundColor: 'rgba(40, 167, 69, 0.5)', // Success color variant
borderColor: 'rgba(40, 167, 69, 0.8)',
borderWidth: 1,
type: 'line', // Display weight as a line overlay
fill: false,
tension: 0.1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
max: 100,
title: {
display: true,
text: 'Percentage (%)'
}
},
x: {
title: {
display: true,
text: 'Assignments'
}
}
},
plugins: {
tooltip: {
callbacks: {
label: function(context) {
var label = context.dataset.label || ";
if (label) {
label += ': ';
}
if (context.parsed.y !== null) {
label += context.parsed.y.toFixed(2) + '%';
}
return label;
}
}
},
legend: {
position: 'top',
}
}
}
});
}
// Initial setup for chart
var initialData = [];
updateChart(initialData, 0);
function toggleFaq(element) {
var answer = element.nextElementSibling;
element.classList.toggle('active');
if (answer.style.display === "block") {
answer.style.display = "none";
} else {
answer.style.display = "block";
}
}
// Load initial defaults
window.onload = function() {
resetCalculator(); // Call reset to populate default values
// Ensure chart is rendered on load with default/empty data
var canvas = document.getElementById('contributionChart');
if (canvas) {
var ctx = canvas.getContext('2d');
// Initialize chart with empty data to reserve space and show axes
window.myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: [],
datasets: [{
label: 'Contribution to Final Grade (%)',
data: [],
backgroundColor: 'rgba(0, 74, 153, 0.6)',
borderColor: 'rgba(0, 74, 153, 1)',
borderWidth: 1
},
{
label: 'Assignment Weight (%)',
data: [],
backgroundColor: 'rgba(40, 167, 69, 0.5)',
borderColor: 'rgba(40, 167, 69, 0.8)',
borderWidth: 1,
type: 'line',
fill: false,
tension: 0.1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true,
max: 100,
title: {
display: true,
text: 'Percentage (%)'
}
},
x: {
title: {
display: true,
text: 'Assignments'
}
}
},
plugins: {
legend: {
position: 'top',
}
}
}
});
}
};