Csat Score Calculation

CSAT Score Calculation: Your Guide to Customer Satisfaction :root { –primary-color: #004a99; –success-color: #28a745; –background-color: #f8f9fa; –text-color: #333; –border-color: #ddd; –shadow-color: rgba(0, 0, 0, 0.1); –result-bg: #e9ecef; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(–background-color); color: var(–text-color); line-height: 1.6; margin: 0; padding: 0; } .container { max-width: 960px; margin: 20px auto; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px var(–shadow-color); display: flex; flex-direction: column; } header { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(–border-color); margin-bottom: 20px; } h1 { color: var(–primary-color); font-size: 2.5em; margin-bottom: 0.5em; } h2, h3 { color: var(–primary-color); margin-top: 1.5em; margin-bottom: 0.8em; } .calculator-section { margin-bottom: 30px; padding: 20px; border: 1px solid var(–border-color); border-radius: 8px; background-color: #fdfdfd; } .calculator-section h2 { text-align: center; margin-top: 0; margin-bottom: 20px; } .input-group { margin-bottom: 15px; width: 100%; } .input-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(–primary-color); } .input-group input[type="number"], .input-group select { width: calc(100% – 20px); padding: 10px; border: 1px solid var(–border-color); border-radius: 4px; box-sizing: border-box; font-size: 1em; } .input-group input[type="number"]:focus, .input-group select:focus { outline: none; border-color: var(–primary-color); box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.2); } .input-group .helper-text { font-size: 0.85em; color: #666; margin-top: 5px; display: block; } .error-message { color: red; font-size: 0.85em; margin-top: 5px; } .button-group { display: flex; justify-content: space-around; margin-top: 20px; gap: 10px; flex-wrap: wrap; } .button-group button { padding: 10px 20px; border: none; border-radius: 5px; font-size: 1em; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; flex-grow: 1; } .btn-calculate { background-color: var(–primary-color); color: white; } .btn-calculate:hover { background-color: #003975; transform: translateY(-1px); } .btn-reset { background-color: #adb5bd; color: white; } .btn-reset:hover { background-color: #9fa9b2; transform: translateY(-1px); } .btn-copy { background-color: var(–success-color); color: white; } .btn-copy:hover { background-color: #1f8d3a; transform: translateY(-1px); } .results-container { margin-top: 30px; padding: 20px; border: 1px solid var(–border-color); border-radius: 8px; background-color: var(–result-bg); } .results-container h2 { margin-top: 0; } .main-result { font-size: 2.5em; font-weight: bold; color: var(–primary-color); text-align: center; padding: 15px; border-radius: 5px; margin-bottom: 20px; background-color: rgba(0, 74, 153, 0.1); border: 2px solid var(–primary-color); } .intermediate-results, .formula-explanation { margin-top: 20px; padding: 15px; border-radius: 5px; background-color: #fff; border: 1px solid var(–border-color); } .intermediate-results ul { list-style: none; padding: 0; margin: 0; } .intermediate-results li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(–border-color); } .intermediate-results li:last-child { border-bottom: none; } .intermediate-results span:first-child { font-weight: bold; } .chart-container { margin-top: 30px; text-align: center; padding: 20px; border: 1px solid var(–border-color); border-radius: 8px; background-color: #fff; } .chart-container canvas { max-width: 100%; height: auto; } .table-container { margin-top: 30px; overflow-x: auto; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid var(–border-color); } th, td { padding: 10px 12px; text-align: left; border: 1px solid var(–border-color); } thead { background-color: var(–primary-color); color: white; } th { font-weight: bold; } tbody tr:nth-child(even) { background-color: #f2f2f2; } caption { font-size: 1.1em; font-weight: bold; color: var(–primary-color); margin-bottom: 10px; caption-side: top; text-align: left; } .article-content { margin-top: 30px; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px var(–shadow-color); } .article-content p { margin-bottom: 1em; } .article-content a { color: var(–primary-color); text-decoration: none; } .article-content a:hover { text-decoration: underline; } .faq-section { margin-top: 20px; border: 1px solid var(–border-color); border-radius: 8px; padding: 15px; background-color: #fdfdfd; } .faq-section h3 { margin-bottom: 10px; } .faq-item { margin-bottom: 15px; } .faq-question { font-weight: bold; color: var(–primary-color); cursor: pointer; margin-bottom: 5px; display: block; } .faq-answer { display: none; padding-left: 15px; border-left: 2px solid var(–primary-color); margin-top: 5px; color: #555; } .faq-item.active .faq-answer { display: block; } .related-links ul { list-style: none; padding: 0; } .related-links li { margin-bottom: 10px; } @media (max-width: 768px) { .container { margin: 10px; padding: 15px; } h1 { font-size: 1.8em; } .main-result { font-size: 2em; } .button-group { flex-direction: column; align-items: center; } .button-group button { width: 80%; margin-bottom: 10px; } }

CSAT Score Calculation & Calculator

Understand, measure, and improve customer satisfaction with our comprehensive CSAT score calculator and guide.

CSAT Score Calculator

Calculate your Customer Satisfaction (CSAT) score easily. Enter the number of satisfied customers and the total number of customers surveyed.

Customers who responded positively to your satisfaction question (e.g., "Satisfied" or "Very Satisfied").
The total number of customers who participated in the survey.

Calculation Results

–.–%

Key Values:

  • Satisfied Customers:
  • Total Customers Surveyed:
  • Unsatisfied Customers:

Formula Used:

CSAT Score = (Number of Satisfied Customers / Total Customers Surveyed) * 100

This formula calculates the percentage of customers who reported being satisfied with a product, service, or interaction.

Customer Satisfaction Breakdown

CSAT Score Interpretation
Score Range (%) Interpretation Action Indication
0 – 40% Poor Urgent improvements needed; high risk of churn.
41% – 60% Fair Needs significant improvement; address core issues.
61% – 80% Good Solid performance, but opportunities for enhancement exist.
81% – 100% Excellent Strong customer loyalty; maintain standards and seek feedback for growth.

What is CSAT Score Calculation?

CSAT score calculation is the process of quantifying customer satisfaction levels based on survey responses. It's a fundamental metric used by businesses across all industries to gauge how happy customers are with their products, services, or specific interactions. A CSAT score is typically expressed as a percentage, representing the proportion of customers who report a positive experience.

The core idea behind CSAT is simplicity and direct feedback. Unlike more complex metrics, CSAT questions are usually straightforward, asking customers to rate their satisfaction on a scale, often with options like "Very Unsatisfied," "Unsatisfied," "Neutral," "Satisfied," and "Very Satisfied." For the purpose of CSAT score calculation, responses categorized as "Satisfied" and "Very Satisfied" are generally counted as positive, forming the numerator of the calculation.

Who Should Use CSAT Score Calculation?

  • Customer Support Teams: To measure the effectiveness of their interactions.
  • Product Managers: To gauge user satisfaction with new features or overall product experience.
  • Marketing Departments: To understand brand perception and customer loyalty.
  • Sales Teams: To assess the client experience post-purchase.
  • Any Business Focused on Customer Experience (CX): CSAT provides a direct pulse on customer happiness and helps identify areas needing attention.

Common Misconceptions about CSAT:

  • CSAT is the ONLY metric: While crucial, CSAT should be used alongside other metrics like Net Promoter Score (NPS) and Customer Effort Score (CES) for a holistic view.
  • High CSAT always means high loyalty: A customer might be satisfied with a single interaction but may not be a long-term loyal advocate.
  • Focusing only on the score: The real value of CSAT lies in analyzing the qualitative feedback that often accompanies the scores to understand *why* customers are satisfied or dissatisfied.
  • CSAT is static: Customer satisfaction fluctuates; regular measurement is key to tracking trends and the impact of changes.

Understanding the basics of csat score calculation is the first step toward leveraging this powerful metric to drive business improvements and foster stronger customer relationships.

CSAT Score Formula and Mathematical Explanation

The mathematical foundation of the CSAT score is elegantly simple, designed for ease of understanding and calculation. At its heart, it's a measure of the proportion of positive responses out of all responses received.

The standard formula for csat score calculation is:

CSAT Score = (Number of Satisfied Customers / Total Customers Surveyed) * 100

Let's break down the variables:

CSAT Calculation Variables
Variable Meaning Unit Typical Range
Number of Satisfied Customers The count of respondents who selected a positive satisfaction rating (e.g., "Satisfied" or "Very Satisfied"). Count 0 or more
Total Customers Surveyed The total number of unique customers who provided a response to the satisfaction question. This includes satisfied, neutral, and unsatisfied respondents. Count Must be greater than or equal to the number of satisfied customers.
CSAT Score The final calculated customer satisfaction score. Percentage (%) 0% – 100%

Step-by-Step Derivation:

  1. Identify Positive Responses: First, determine how many customers provided a positive response. This usually means counting those who selected "Satisfied" or "Very Satisfied" on a standard CSAT scale.
  2. Determine Total Responses: Count the total number of customers who completed the survey and provided a response.
  3. Calculate the Proportion: Divide the number of satisfied customers by the total number of customers surveyed. This gives you a decimal representing the proportion of satisfaction.
  4. Convert to Percentage: Multiply the proportion by 100 to express the CSAT score as a percentage.

For instance, if you surveyed 200 customers and 90 of them indicated they were satisfied, the calculation would be: (90 / 200) * 100 = 45%. This 45% is your CSAT score.

It's vital that the denominator (Total Customers Surveyed) includes only those who actually responded. Including non-respondents would artificially lower your CSAT score. Understanding this simple formula is key for effective csat score calculation.

Practical Examples (Real-World Use Cases)

The versatility of csat score calculation makes it applicable in numerous business scenarios. Here are a couple of practical examples:

Example 1: Post-Purchase Support Interaction

A customer support team uses a one-question survey sent immediately after a support ticket is closed: "How satisfied were you with the support you received today?" with a scale from 1 (Very Unsatisfied) to 5 (Very Satisfied).

  • Inputs:
    • Number of Satisfied Customers (rated 4 or 5): 150
    • Total Customers Surveyed (who responded): 180
  • Calculation:

    CSAT = (150 / 180) * 100

    CSAT = 0.8333 * 100

    CSAT Score = 83.33%

  • Intermediate Values:
    • Satisfied Customers: 150
    • Total Customers Surveyed: 180
    • Unsatisfied Customers (rated 1, 2, or 3): 30
  • Interpretation: An 83.33% CSAT score indicates a very high level of satisfaction with the customer support experience. The team is performing excellently, likely resolving issues efficiently and providing helpful interactions. This score suggests strong customer retention potential stemming from good support.

Example 2: SaaS Product Feature Feedback

A software company releases a new reporting module and surveys users who have tried it: "Overall, how satisfied are you with the new reporting module?" using a scale from 1 (Very Dissatisfied) to 5 (Very Satisfied).

  • Inputs:
    • Number of Satisfied Customers (rated 4 or 5): 350
    • Total Customers Surveyed (who responded): 600
  • Calculation:

    CSAT = (350 / 600) * 100

    CSAT = 0.5833 * 100

    CSAT Score = 58.33%

  • Intermediate Values:
    • Satisfied Customers: 350
    • Total Customers Surveyed: 600
    • Unsatisfied Customers (rated 1, 2, or 3): 250
  • Interpretation: A CSAT score of 58.33% falls into the "Fair" category. While a majority of users might be satisfied, a significant portion (250 users) are not. This suggests that while the new module has positive aspects, there are likely usability issues, missing features, or performance problems that need addressing to improve the overall user experience and reduce potential churn. Further qualitative feedback is crucial here.

These examples highlight how csat score calculation provides actionable insights, guiding businesses on where they excel and where improvements are most needed.

How to Use This CSAT Calculator

Our CSAT Score Calculator is designed for simplicity and efficiency, allowing you to quickly determine your customer satisfaction levels. Follow these easy steps:

  1. Input Satisfied Customers: In the "Number of Satisfied Customers" field, enter the count of customers who responded positively to your satisfaction survey question. Typically, this includes those who selected "Satisfied" or "Very Satisfied".
  2. Input Total Customers Surveyed: In the "Total Customers Surveyed" field, enter the total number of customers who participated in the survey and provided a response. Ensure this number accurately reflects all respondents, regardless of their satisfaction level.
  3. Calculate: Click the "Calculate CSAT Score" button. The calculator will instantly process your inputs.

How to Read Results:

  • Main Result: The most prominent number displayed is your CSAT score, shown as a percentage (e.g., 85%). This gives you an immediate overview of your customer satisfaction.
  • Key Values: Below the main result, you'll find intermediate values: the number of satisfied customers, the total surveyed, and the calculated number of unsatisfied customers. These provide context for the main score.
  • Formula Explanation: A clear breakdown of the CSAT formula is provided for your understanding.
  • Interpretation Table: Refer to the table to understand what your CSAT score means in terms of business performance and identify potential areas for action.
  • Chart: The dynamic chart visually represents the proportion of satisfied vs. unsatisfied customers based on your inputs.

Decision-Making Guidance:

  • Excellent Score (81%-100%): Congratulations! Your customers are highly satisfied. Focus on maintaining these high standards and gathering feedback to identify opportunities for further growth and loyalty building.
  • Good Score (61%-80%): You're doing well, but there's room for improvement. Analyze feedback from satisfied customers to understand what's working and identify specific areas where you can enhance the experience further.
  • Fair Score (41%-60%): This score signals that a significant portion of your customers are not fully satisfied. It's crucial to delve into the feedback from unsatisfied customers to pinpoint major issues in your product, service, or customer journey. Prioritize addressing these core problems.
  • Poor Score (0%-40%): Immediate and significant action is required. High dissatisfaction indicates serious problems that are likely impacting customer retention and brand reputation. Conduct in-depth analysis of all feedback, identify root causes, and implement strategic changes.

Use the "Reset" button to clear the fields and start a new calculation, and the "Copy Results" button to easily share your findings. Effective use of this calculator aids in data-driven decisions for improving customer satisfaction.

Key Factors That Affect CSAT Results

While the csat score calculation itself is straightforward, numerous underlying factors influence the scores businesses receive. Understanding these factors is crucial for interpreting results and implementing effective improvements.

  1. Quality of Product/Service: The most fundamental factor. If the core offering doesn't meet customer expectations in terms of functionality, reliability, or performance, satisfaction will naturally be low, regardless of other efforts.
  2. Customer Service Interaction: The experience with support staff (responsiveness, helpfulness, empathy, resolution efficiency) heavily impacts CSAT, especially when surveys are triggered by support interactions. A single negative interaction can skew results.
  3. Ease of Use (Usability): For products or digital services, how intuitive and easy it is for customers to achieve their goals is paramount. Complex interfaces or frustrating user journeys lead to dissatisfaction.
  4. Communication and Transparency: Proactive communication about issues, clear explanations of services, and transparent pricing build trust. Lack of transparency or poor communication can erode satisfaction.
  5. Perceived Value: Customers assess whether the benefits they receive outweigh the cost (money, time, effort). If a product or service is perceived as overpriced or not delivering sufficient value, CSAT scores will suffer. This is where understanding customer lifetime value becomes important.
  6. Reliability and Consistency: Whether it's a product's uptime, a service's dependable delivery, or consistent quality across interactions, reliability is key. Frequent glitches, downtime, or inconsistent service quality breeds dissatisfaction.
  7. Onboarding Process: For new customers, a smooth and helpful onboarding experience sets the tone. A confusing or difficult start can lead to early dissatisfaction and negatively impact initial CSAT scores. Consider how onboarding optimization affects early feedback.
  8. Post-Purchase Engagement: Follow-up communication, loyalty programs, and ongoing support demonstrate that a company values its customers beyond the initial sale. Neglecting this can lead to a decline in long-term satisfaction.

By analyzing CSAT results in the context of these influencing factors, businesses can move beyond simply knowing their score to understanding the 'why' behind it and formulating targeted strategies for improvement.

Frequently Asked Questions (FAQ)

Q1: What's the difference between CSAT and NPS?

CSAT measures satisfaction with a specific interaction or product/service feature, typically on a scale. Net Promoter Score (NPS) measures overall customer loyalty and willingness to recommend, categorizing customers into Promoters, Passives, and Detractors. While CSAT is transactional, NPS is more relational.

Q2: How often should I calculate my CSAT score?

The frequency depends on your business and survey strategy. For transactional surveys (e.g., after a support call), measure immediately. For overall product/service satisfaction, monthly or quarterly calculations are common. Regularly tracking CSAT allows you to monitor trends and the impact of changes.

Q3: What if I have zero satisfied customers?

A CSAT score of 0% indicates a critical issue. It means no respondents reported satisfaction. You need to immediately investigate the reasons. This could be a severely flawed product, a disastrous service experience, or issues with the survey itself (e.g., unclear questions).

Q4: Should I include neutral responses in the calculation?

The standard CSAT score calculation typically only includes "Satisfied" and "Very Satisfied" responses in the numerator. Neutral responses are often grouped with unsatisfied customers for analysis or simply excluded from the satisfied count. Always clarify your methodology.

Q5: How can I increase my CSAT score?

Focus on the key factors: improve product/service quality, enhance customer support training, simplify user experience, ensure clear communication, offer competitive value, and maintain reliability. Actively solicit and act upon customer feedback.

Q6: What is a "good" CSAT score?

A "good" CSAT score varies by industry and context. However, generally, scores above 75% are considered strong. Scores between 50% and 75% indicate areas for improvement, while scores below 50% typically require urgent attention. Refer to the interpretation table in the calculator for guidance.

Q7: Can CSAT be used for employee satisfaction?

Yes, the same principles apply. You can adapt the CSAT methodology to measure employee satisfaction with internal processes, management, or workplace conditions. The calculation remains the same: (Number of Satisfied Employees / Total Employees Surveyed) * 100.

Q8: What is the role of qualitative feedback alongside CSAT?

Qualitative feedback (comments, open-ended responses) is essential. While the CSAT score provides a quantitative measure, comments explain *why* customers are satisfied or dissatisfied. This context is vital for identifying specific problems and formulating effective solutions.

Q9: Does the survey method (email, in-app, phone) affect CSAT?

Yes, the survey method can influence response rates and the sentiment of respondents. In-app surveys might capture immediate context but could be perceived as intrusive. Email surveys have a longer lead time. Phone surveys offer direct interaction but can be resource-intensive. Choosing the right method for the context is important for accurate customer feedback collection.

© 2023 Your Company Name. All rights reserved.

var chartInstance = null; // Keep track of the chart instance function validateInput(value, id, errorId, min = null, max = null) { var errorElement = document.getElementById(errorId); errorElement.textContent = "; if (value === ") { errorElement.textContent = 'This field cannot be empty.'; return false; } var numberValue = parseFloat(value); if (isNaN(numberValue)) { errorElement.textContent = 'Please enter a valid number.'; return false; } if (min !== null && numberValue max) { errorElement.textContent = 'Value cannot exceed ' + max + '.'; return false; } return true; } function calculateCSAT() { var satisfiedCustomersInput = document.getElementById('satisfiedCustomers'); var totalCustomersInput = document.getElementById('totalCustomers'); var satisfiedCustomers = satisfiedCustomersInput.value; var totalCustomers = totalCustomersInput.value; var isValidSatisfied = validateInput(satisfiedCustomers, 'satisfiedCustomers', 'satisfiedCustomersError', 0); var isValidTotal = validateInput(totalCustomers, 'totalCustomers', 'totalCustomersError', 0); if (!isValidSatisfied || !isValidTotal) { return; } var numSatisfied = parseFloat(satisfiedCustomers); var numTotal = parseFloat(totalCustomers); if (numSatisfied > numTotal) { document.getElementById('satisfiedCustomersError').textContent = 'Satisfied customers cannot exceed total customers.'; return; } var csatScore = 0; if (numTotal > 0) { csatScore = (numSatisfied / numTotal) * 100; } var unsatisfiedCustomers = numTotal – numSatisfied; document.getElementById('mainResult').textContent = csatScore.toFixed(2) + '%'; document.getElementById('calcSatisfiedCustomers').textContent = numSatisfied.toFixed(0); document.getElementById('calcTotalCustomers').textContent = numTotal.toFixed(0); document.getElementById('calcUnsatisfiedCustomers').textContent = unsatisfiedCustomers.toFixed(0); updateChart(numSatisfied, unsatisfiedCustomers); } function resetCalculator() { document.getElementById('satisfiedCustomers').value = "; document.getElementById('totalCustomers').value = "; document.getElementById('satisfiedCustomersError').textContent = "; document.getElementById('totalCustomersError').textContent = "; document.getElementById('mainResult').textContent = '–.–%'; document.getElementById('calcSatisfiedCustomers').textContent = '–'; document.getElementById('calcTotalCustomers').textContent = '–'; document.getElementById('calcUnsatisfiedCustomers').textContent = '–'; if (chartInstance) { chartInstance.destroy(); chartInstance = null; } var ctx = document.getElementById('csatChart').getContext('2d'); ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); // Clear canvas for potential redraw } function copyResults() { var mainResult = document.getElementById('mainResult').textContent; var calcSatisfied = document.getElementById('calcSatisfiedCustomers').textContent; var calcTotal = document.getElementById('calcTotalCustomers').textContent; var calcUnsatisfied = document.getElementById('calcUnsatisfiedCustomers').textContent; if (mainResult === '–.–%') { alert('No results to copy yet. Please calculate first.'); return; } var copyText = "CSAT Score Calculation Results:\n\n" + "CSAT Score: " + mainResult + "\n\n" + "Key Values:\n" + "- Satisfied Customers: " + calcSatisfied + "\n" + "- Total Customers Surveyed: " + calcTotal + "\n" + "- Unsatisfied Customers: " + calcUnsatisfied + "\n\n" + "Key Assumption: CSAT = (Satisfied / Total) * 100"; navigator.clipboard.writeText(copyText).then(function() { alert('Results copied to clipboard!'); }).catch(function(err) { console.error('Failed to copy: ', err); prompt("Copy these values manually:", copyText); }); } function updateChart(satisfied, unsatisfied) { var ctx = document.getElementById('csatChart').getContext('2d'); if (chartInstance) { chartInstance.destroy(); } // Ensure data is non-negative for chart display var safeSatisfied = Math.max(0, satisfied); var safeUnsatisfied = Math.max(0, unsatisfied); var totalForChart = safeSatisfied + safeUnsatisfied; // Prevent division by zero for percentages if total is zero var satisfiedPercentage = totalForChart > 0 ? (safeSatisfied / totalForChart) * 100 : 0; var unsatisfiedPercentage = totalForChart > 0 ? (safeUnsatisfied / totalForChart) * 100 : 0; // Ensure percentages add up to 100% even with rounding or edge cases if (satisfiedPercentage + unsatisfiedPercentage > 100) { if (satisfiedPercentage > unsatisfiedPercentage) { satisfiedPercentage = 100 – unsatisfiedPercentage; } else { unsatisfiedPercentage = 100 – satisfiedPercentage; } } else if (satisfiedPercentage + unsatisfiedPercentage 0) { // Distribute remainder if sum is less than 100% due to floating point issues or small numbers var remainder = 100 – (satisfiedPercentage + unsatisfiedPercentage); if (satisfiedPercentage >= unsatisfiedPercentage) { satisfiedPercentage += remainder / 2; unsatisfiedPercentage += remainder / 2; } else { unsatisfiedPercentage += remainder / 2; satisfiedPercentage += remainder / 2; } } chartInstance = new Chart(ctx, { type: 'pie', // Changed to pie chart for better representation of parts of a whole data: { labels: ['Satisfied Customers', 'Unsatisfied Customers'], datasets: [{ data: [satisfiedPercentage, unsatisfiedPercentage], backgroundColor: [ 'rgba(40, 167, 69, 0.8)', // Success color for satisfied 'rgba(220, 53, 69, 0.8)' // Danger color for unsatisfied ], borderColor: [ 'rgba(40, 167, 69, 1)', 'rgba(220, 53, 69, 1)' ], borderWidth: 1 }] }, options: { responsive: true, maintainAspectRatio: false, plugins: { legend: { position: 'top', }, title: { display: true, text: 'Customer Satisfaction Breakdown' }, tooltip: { callbacks: { label: function(context) { var label = context.label || "; var value = context.raw || 0; if (label) { label += ': '; } if (context.parsed !== null) { label += value.toFixed(1) + '%'; } return label; } } } } } }); } // Add event listeners for FAQ toggling document.addEventListener('DOMContentLoaded', function() { var faqQuestions = document.querySelectorAll('.faq-question'); faqQuestions.forEach(function(question) { question.addEventListener('click', function() { var faqItem = this.parentElement; faqItem.classList.toggle('active'); }); }); }); // Initial calculation on load if inputs are pre-filled (optional, for demo purposes) // document.addEventListener('DOMContentLoaded', calculateCSAT);

Leave a Comment