Calculating Cac

CAC Calculator: Calculate Customer Acquisition Cost | YourSite body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; margin: 0; padding: 0; } .container { max-width: 960px; margin: 30px auto; padding: 20px; background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-radius: 8px; display: flex; flex-direction: column; } h1, h2, h3 { color: #004a99; text-align: center; margin-bottom: 1em; } h1 { font-size: 2.2em; } h2 { font-size: 1.8em; } h3 { font-size: 1.4em; } .calculator-section { margin-bottom: 30px; padding: 25px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #ffffff; } .loan-calc-container { display: flex; flex-direction: column; gap: 20px; } .input-group { display: flex; flex-direction: column; gap: 8px; } .input-group label { font-weight: bold; color: #004a99; } .input-group input[type="number"], .input-group select { padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; box-sizing: border-box; } .input-group input[type="number"]:focus, .input-group select:focus { border-color: #004a99; outline: none; box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.2); } .input-group small { color: #6c757d; font-size: 0.85em; } .error-message { color: #dc3545; font-size: 0.85em; margin-top: 5px; display: none; /* Hidden by default */ } .button-group { display: flex; gap: 10px; margin-top: 20px; justify-content: center; } button { padding: 12px 25px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; font-weight: bold; transition: background-color 0.3s ease; } #calculateBtn, #copyResultsBtn { background-color: #004a99; color: white; } #calculateBtn:hover, #copyResultsBtn:hover { background-color: #003366; } #resetBtn { background-color: #6c757d; color: white; } #resetBtn:hover { background-color: #5a6268; } .result-container { margin-top: 30px; padding: 25px; border: 1px dashed #004a99; border-radius: 8px; background-color: #eef7ff; text-align: center; } #cacResult { font-size: 2.5em; font-weight: bold; color: #28a745; margin-bottom: 10px; display: inline-block; padding: 10px 20px; background-color: #e9f7ec; border-radius: 5px; } .result-label { font-size: 1.2em; color: #004a99; margin-bottom: 15px; } .intermediate-results div { margin-bottom: 10px; font-size: 1.1em; } .intermediate-results strong { color: #004a99; } .formula-explanation { margin-top: 20px; font-size: 0.95em; color: #555; border-top: 1px solid #eee; padding-top: 15px; } table { width: 100%; border-collapse: collapse; margin-top: 30px; margin-bottom: 30px; } th, td { border: 1px solid #ddd; padding: 12px; text-align: left; } th { background-color: #004a99; color: white; font-weight: bold; } td { background-color: #f9f9f9; } caption { font-size: 1.1em; font-weight: bold; color: #004a99; margin-bottom: 15px; text-align: left; } .chart-container { margin-top: 30px; text-align: center; } canvas { max-width: 100%; height: auto !important; border: 1px solid #eee; border-radius: 5px; } .article-content { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; } .article-content h2, .article-content h3 { text-align: left; margin-top: 1.5em; margin-bottom: 0.5em; } .article-content p { margin-bottom: 1em; } .article-content ul, .article-content ol { margin-left: 20px; margin-bottom: 1em; } .article-content li { margin-bottom: 0.5em; } .faq-item { margin-bottom: 1.5em; } .faq-item strong { display: block; color: #004a99; margin-bottom: 0.5em; } .internal-links { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; } .internal-links ul { list-style: none; padding: 0; } .internal-links li { margin-bottom: 1em; } .internal-links a { color: #004a99; text-decoration: none; font-weight: bold; } .internal-links a:hover { text-decoration: underline; } .internal-links p { font-size: 0.9em; color: #555; } .text-highlight { background-color: #fff3cd; padding: 3px 6px; border-radius: 3px; font-weight: bold; } .positive-change { color: #28a745; font-weight: bold; } .negative-change { color: #dc3545; font-weight: bold; }

CAC Calculator: Calculate Your Customer Acquisition Cost

Understand and optimize the cost of acquiring new customers with our intuitive CAC calculator.

Customer Acquisition Cost (CAC) Calculator

Include all expenses: salaries, ad spend, software, commissions, etc.
The total number of new customers gained during the period covered by your spend.
Your Customer Acquisition Cost (CAC) is:
$0.00
Total Marketing & Sales Spend: $0.00
New Customers Acquired: 0
Formula Used: (Total Marketing & Sales Spend) / (New Customers Acquired)

CAC Trend Analysis

Visualizing the impact of spend on customer acquisition.

Key Metrics for CAC Calculation
Metric Value Description
Total Spend Sum of all costs incurred to acquire customers.
New Customers Total number of unique new customers acquired.
CAC The average cost to acquire one new customer.

What is Customer Acquisition Cost (CAC)?

Customer Acquisition Cost, commonly known as CAC, is a critical business metric that represents the total cost a company incurs to acquire a new customer. It's a fundamental indicator of the efficiency and profitability of your sales and marketing efforts. Understanding your CAC helps businesses determine if their customer acquisition strategies are sustainable and profitable, especially when compared to the Lifetime Value (LTV) of a customer.

A well-calculated CAC provides insights into how much you're spending to gain each new patron. This figure is vital for budgeting, forecasting, and making strategic decisions about resource allocation across marketing channels and sales initiatives. Businesses that can effectively lower their CAC while maintaining or increasing customer quality are typically on a path to sustainable growth and higher profitability.

Who Should Use the CAC Calculator?

The CAC calculator is an indispensable tool for a wide range of business professionals and teams:

  • Marketing Managers: To evaluate the ROI of campaigns and channels.
  • Sales Leaders: To assess the efficiency of the sales team's efforts.
  • Founders and CEOs: To understand the overall health and scalability of the business model.
  • Financial Analysts: For performance tracking and strategic financial planning.
  • Startup Businesses: To validate their business model and track early growth efficiency.
  • E-commerce Store Owners: To optimize ad spend and promotional activities.

Common Misconceptions about CAC

  • CAC is a one-time calculation: CAC is not static; it should be calculated regularly (monthly, quarterly) as marketing strategies, market conditions, and operational costs change.
  • Only marketing costs count: CAC includes all costs associated with acquiring a customer, including sales team salaries, commissions, marketing software, advertising spend, and even content creation costs.
  • Higher CAC is always bad: A higher CAC isn't inherently negative if it's coupled with a significantly higher LTV or if it's part of a strategic growth phase aimed at capturing market share. The key is the LTV:CAC ratio.
  • It's the same for all businesses: CAC varies wildly by industry, business model (B2B vs. B2C), sales cycle length, and target customer. Benchmarking against industry averages can be helpful but context is crucial.

Customer Acquisition Cost (CAC) Formula and Mathematical Explanation

The formula for calculating Customer Acquisition Cost (CAC) is straightforward but requires careful consideration of all relevant expenses.

The CAC Formula

The fundamental formula is:

CAC = (Total Sales and Marketing Expenses) / (Number of New Customers Acquired)

Step-by-Step Derivation and Variable Explanations

  1. Sum all Sales and Marketing Expenses: Identify and add up every dollar spent on activities directly or indirectly related to acquiring new customers over a specific period. This includes:
    • Advertising costs (PPC, social media ads, print, etc.)
    • Salaries and commissions for sales and marketing staff
    • Costs of marketing software and tools (CRM, email marketing platforms, analytics tools)
    • Content creation expenses (blog posts, videos, graphics)
    • Agency fees or freelancer costs
    • Event and trade show expenses
    • Overhead costs directly attributable to the sales and marketing departments (e.g., a portion of office rent)
  2. Determine the Number of New Customers Acquired: Count the total number of unique new customers who made their first purchase or signed up during the same period for which you calculated the expenses. It's crucial to count *new* customers to accurately reflect acquisition costs, not customer retention or reactivation costs.
  3. Divide Expenses by Customers: Divide the total sum from step 1 by the number of new customers from step 2. The result is your average CAC.

Variables Table

CAC Calculation Variables
Variable Meaning Unit Typical Range & Considerations
Total Sales and Marketing Expenses All costs incurred to attract and convert new customers within a period. Currency (e.g., $, €, £) Highly variable. Can range from hundreds to thousands of dollars for B2B SaaS, to a few dollars for low-cost consumer goods. Depends heavily on industry, business model, and stage.
New Customers Acquired The total number of unique, first-time customers gained during the same period. Count (Number) Depends on business scale and growth targets. A healthy business typically sees growth here over time.
CAC The average cost to acquire one new customer. Currency (e.g., $, €, £) Should ideally be significantly less than the LTV. Benchmarks vary widely by industry. Aim for a ratio where LTV is 3x CAC or higher.

Practical Examples (Real-World Use Cases)

Example 1: A SaaS Company

A B2B SaaS startup wants to calculate its CAC for the last quarter.

  • Total Marketing & Sales Spend: $50,000
  • Breakdown: $20,000 on digital advertising (Google Ads, LinkedIn Ads), $15,000 on sales team salaries and commissions, $5,000 on marketing automation software, $10,000 on content creation and SEO efforts.
  • New Customers Acquired: 100 new businesses signed up for their service.

Calculation:

CAC = $50,000 / 100 customers = $500 per customer

Interpretation: This SaaS company spends an average of $500 to acquire each new customer. They would then compare this to the average Lifetime Value (LTV) of a customer. If the LTV is $2,000, this CAC is likely healthy (LTV:CAC ratio of 4:1).

Example 2: An E-commerce Fashion Retailer

An online clothing store wants to understand its CAC for a specific promotional month.

  • Total Marketing & Sales Spend: $8,000
  • Breakdown: $4,000 on social media advertising (Instagram, Facebook), $2,000 on influencer collaborations, $1,000 on email marketing platform and campaigns, $1,000 on affiliate commissions. (Note: Inventory costs and general operational overhead are NOT included in CAC).
  • New Customers Acquired: 1,600 new customers made their first purchase.

Calculation:

CAC = $8,000 / 1,600 customers = $5 per customer

Interpretation: For this e-commerce business, the CAC is $5. If the average profit margin per customer over their lifetime is $25, this indicates a strong LTV:CAC ratio (5:1), suggesting their acquisition strategies are efficient for this period.

How to Use This CAC Calculator

Our free CAC calculator is designed for ease of use, providing quick insights into your customer acquisition efficiency. Follow these simple steps:

Step-by-Step Instructions

  1. Enter Total Marketing & Sales Spend: Input the total amount of money your business spent on all sales and marketing activities during a specific period (e.g., a month, quarter, or year). Be comprehensive, including ad spend, salaries, software costs, commissions, and any other acquisition-related expenses.
  2. Enter Number of New Customers Acquired: Input the total count of *new* customers who made their first purchase or signed up during that same period. Ensure you are only counting new customers, not repeat buyers or reactivated dormant accounts.
  3. Calculate: Click the "Calculate CAC" button. The calculator will instantly process your inputs.

How to Read the Results

  • Primary CAC Result: The largest, highlighted number is your calculated Customer Acquisition Cost. This is the average amount your business spent to acquire each new customer during the selected period.
  • Intermediate Values: You'll see the total spend and the number of new customers you entered, confirming your inputs.
  • Formula Used: A clear explanation of the basic CAC formula reinforces how the result was derived.
  • Table: The table provides a structured summary of the key metrics used and generated.
  • Chart: The chart (if applicable and data allows for trend visualization) can help illustrate potential changes or performance over time, though this basic calculator focuses on a single period.

Decision-Making Guidance

Use the CAC result to inform your business strategy:

  • Is your CAC too high? If your CAC is higher than you'd like, or if the LTV:CAC ratio is unfavorable (ideally 3:1 or higher), consider optimizing your marketing and sales funnels. This might involve A/B testing ad creatives, refining target audience segmentation, improving sales scripts, or exploring more cost-effective marketing channels.
  • Is your CAC sustainable? Ensure that your CAC is significantly lower than the revenue or profit generated by a customer over their lifetime (LTV). If CAC is close to or exceeds LTV, your business model is likely unsustainable.
  • Allocate Resources: Understand which marketing and sales activities contribute most to acquiring customers and which are less efficient. Use this data to reallocate your budget towards higher-performing initiatives.

Key Factors That Affect CAC Results

Several elements significantly influence your Customer Acquisition Cost. Understanding these factors is crucial for accurate calculation and effective optimization:

  1. Marketing Channel Efficiency: Different channels have vastly different costs and effectiveness. For instance, paid search ads might have a higher immediate cost but yield high-intent customers, while organic content marketing has a lower direct cost but a longer lead time and potentially lower conversion rate initially. Analyzing CAC by channel is vital.
  2. Sales Cycle Length: Businesses with longer sales cycles (common in B2B or high-ticket items) typically have higher CAC. This is because it requires more resources (salesperson time, marketing nurturing) to close a deal.
  3. Industry and Competition: Highly competitive markets often drive up advertising costs (e.g., higher bids in PPC) and necessitate more sophisticated marketing strategies, thus increasing CAC. Niche industries might have lower competition but smaller addressable markets.
  4. Target Audience Definition: Precisely targeting your ideal customer profile reduces wasted ad spend and marketing effort. Broad, untargeted campaigns lead to higher CAC because you're paying to reach many people who will never convert.
  5. Brand Reputation and Trust: A strong brand reputation can lower CAC. Customers are more likely to convert when they trust your brand, requiring less persuasion and fewer marketing touchpoints. Building brand awareness and credibility is an investment that can pay off in reduced CAC over time.
  6. Economic Conditions and Inflation: Broader economic factors like inflation can increase the cost of advertising, software subscriptions, and even labor, directly driving up your total marketing and sales spend, and consequently, your CAC.
  7. Customer Lifetime Value (LTV): While not a direct input *into* CAC, LTV is intrinsically linked. A higher LTV justifies a higher CAC, enabling businesses to invest more aggressively in acquisition if the long-term returns are strong. The LTV:CAC ratio is a key indicator of business health.
  8. Promotional Offers and Discounts: While effective for driving initial acquisition, aggressive discounting can artificially lower the perceived value and increase the effective CAC if not accounted for properly, especially if profit margins are slim.

Frequently Asked Questions (FAQ)

Q1: What period should I use for calculating CAC?

A: It's best to calculate CAC for consistent periods, such as monthly, quarterly, or annually. The chosen period should align with your business reporting cycles and the time it takes to see the impact of your marketing and sales efforts.

Q2: Does CAC include customer support costs?

A: Typically, no. CAC focuses on the costs associated with *acquiring* a new customer. Ongoing customer support and retention costs are usually considered separate metrics, contributing to overall operational expenses or customer success metrics.

Q3: How is CAC different from CPA (Cost Per Acquisition)?

A: CPA is a broader term that can refer to the cost of acquiring any desired action (e.g., a lead, a download, an app install). CAC specifically refers to the cost of acquiring a *paying customer*.

Q4: My CAC is very high. What should I do?

A: A high CAC needs investigation. First, ensure you've included all relevant costs. Then, analyze your marketing channels – are you spending too much on inefficient ones? Improve targeting, optimize ad creatives, enhance landing pages, and focus on lead quality. Consider if your pricing or LTV can be increased. Explore organic growth strategies.

Q5: What is considered a "good" CAC?

A: There's no universal "good" CAC. It's relative to your industry, business model, and especially your LTV. A common benchmark is aiming for an LTV:CAC ratio of 3:1 or higher. For example, if your LTV is $300, a CAC of $100 or less would be considered healthy.

Q6: Should I include salaries of the marketing and sales teams in CAC?

A: Yes, absolutely. The salaries, commissions, bonuses, and benefits for individuals directly involved in marketing and sales efforts aimed at acquiring customers are crucial components of the Total Sales and Marketing Expenses.

Q7: How do I calculate CAC for a business with multiple products or services?

A: You can calculate an overall blended CAC by using the total combined sales and marketing spend and the total number of new customers acquired across all products. Alternatively, for deeper insights, you can attribute specific marketing and sales costs to individual products/services and calculate CAC per product line.

Q8: Can CAC be negative?

A: In the standard definition, CAC cannot be negative. However, some advanced models might discuss "net CAC" which accounts for initial revenue or discounts, but the core CAC metric is always positive, representing a cost.

© document.write(new Date().getFullYear()); YourSite. All rights reserved.

var chartInstance = null; // Global variable to hold chart instance function validateInput(id, minValue, maxValue, allowZero = false) { var input = document.getElementById(id); var errorElement = document.getElementById(id + 'Error'); var value = parseFloat(input.value); if (input.value.trim() === "") { errorElement.textContent = "This field cannot be empty."; errorElement.style.display = 'block'; return false; } if (isNaN(value)) { errorElement.textContent = "Please enter a valid number."; errorElement.style.display = 'block'; return false; } if (!allowZero && value === 0) { errorElement.textContent = "Value must be greater than zero."; errorElement.style.display = 'block'; return false; } if (value maxValue) { errorElement.textContent = "Value cannot exceed " + maxValue.toLocaleString() + "."; errorElement.style.display = 'block'; return false; } errorElement.textContent = "; errorElement.style.display = 'none'; return true; } function calculateCAC() { var totalMarketingSpend = parseFloat(document.getElementById('totalMarketingSpend').value); var newCustomersAcquired = parseInt(document.getElementById('newCustomersAcquired').value); var validMarketingSpend = validateInput('totalMarketingSpend', 0); var validNewCustomers = validateInput('newCustomersAcquired', 1); // Must acquire at least 1 customer if (!validMarketingSpend || !validNewCustomers) { return; } var cac = totalMarketingSpend / newCustomersAcquired; document.getElementById('cacResult').textContent = '$' + cac.toFixed(2); document.getElementById('marketingCostPerResult').textContent = 'Total Marketing & Sales Spend: $' + totalMarketingSpend.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); document.getElementById('customerCountResult').textContent = 'New Customers Acquired: ' + newCustomersAcquired.toLocaleString(); document.getElementById('cacFormulaResult').textContent = 'Formula Used: ($' + totalMarketingSpend.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 }) + ') / (' + newCustomersAcquired.toLocaleString() + ' Customers)'; document.getElementById('tableSpend').textContent = '$' + totalMarketingSpend.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 }); document.getElementById('tableCustomers').textContent = newCustomersAcquired.toLocaleString(); document.getElementById('tableCAC').textContent = '$' + cac.toFixed(2); updateChart(totalMarketingSpend, newCustomersAcquired, cac); document.getElementById('resultsContainer').style.display = 'block'; } function updateChart(spend, customers, cacValue) { var ctx = document.getElementById('cacChart').getContext('2d'); // Clear previous chart if it exists if (chartInstance) { chartInstance.destroy(); } // Sample data for comparison – e.g., previous period or target var prevSpend = spend * 0.9; // Example: 10% less spend var prevCustomers = customers * 1.1; // Example: 10% more customers acquired var prevCAC = prevSpend / prevCustomers; var labels = ['Previous Period', 'Current Period']; var dataSeries1 = [prevCAC.toFixed(2), cacValue.toFixed(2)]; // CAC values var dataSeries2 = [prevCustomers.toLocaleString(), customers.toLocaleString()]; // Customer counts chartInstance = new Chart(ctx, { type: 'bar', // Use bar chart for better comparison of discrete values data: { labels: labels, datasets: [{ label: 'Customer Acquisition Cost ($)', data: dataSeries1, backgroundColor: 'rgba(0, 74, 153, 0.6)', // Primary color borderColor: 'rgba(0, 74, 153, 1)', borderWidth: 1, yAxisID: 'y-axis-cac' }, { label: 'New Customers Acquired', data: dataSeries2, backgroundColor: 'rgba(40, 167, 69, 0.6)', // Success color borderColor: 'rgba(40, 167, 69, 1)', borderWidth: 1, yAxisID: 'y-axis-customers' }] }, options: { responsive: true, maintainAspectRatio: false, scales: { x: { title: { display: true, text: 'Period' } }, 'y-axis-cac': { type: 'linear', position: 'left', title: { display: true, text: 'CAC ($)' }, ticks: { beginAtZero: true, callback: function(value) { return '$' + value; } } }, 'y-axis-customers': { type: 'linear', position: 'right', title: { display: true, text: 'Number of Customers' }, ticks: { beginAtZero: true, callback: function(value) { return value.toLocaleString(); } }, grid: { drawOnChartArea: false // Only display line for this axis } } }, plugins: { tooltip: { mode: 'index', intersect: false, callbacks: { label: function(context) { var label = context.dataset.label || "; if (label) { label += ': '; } if (context.parsed.y !== null) { if (context.dataset.label.includes('CAC')) { label += '$' + context.parsed.y.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 }); } else { label += context.parsed.y.toLocaleString(); } } return label; } } } } } }); } function copyResults() { var cacValue = document.getElementById('cacResult').textContent; var marketingSpend = document.getElementById('marketingCostPerResult').textContent.replace('Total Marketing & Sales Spend: ', "); var newCustomers = document.getElementById('customerCountResult').textContent.replace('New Customers Acquired: ', "); var formula = document.getElementById('cacFormulaResult').textContent.replace('Formula Used: ', "); var resultsText = "Customer Acquisition Cost (CAC) Results:\n\n"; resultsText += "CAC: " + cacValue + "\n"; resultsText += "Total Marketing & Sales Spend: " + marketingSpend + "\n"; resultsText += "New Customers Acquired: " + newCustomers + "\n"; resultsText += "Formula: " + formula + "\n\n"; resultsText += "Key Assumptions:\n"; resultsText += "- Period covered for calculations is implicit based on input.\n"; resultsText += "- All relevant sales and marketing expenses were included in the 'Total Spend'.\n"; resultsText += "- 'New Customers Acquired' refers strictly to first-time customers in the period."; var textArea = document.createElement("textarea"); textArea.value = resultsText; document.body.appendChild(textArea); textArea.focus(); textArea.select(); try { var successful = document.execCommand('copy'); var msg = successful ? 'Results copied!' : 'Copy failed!'; console.log(msg); // Optional: Show a temporary notification to the user var notification = document.createElement('div'); notification.textContent = msg; notification.style.cssText = 'position: fixed; top: 10px; right: 10px; background-color: #004a99; color: white; padding: 10px; border-radius: 5px; z-index: 1000;'; document.body.appendChild(notification); setTimeout(function(){ document.body.removeChild(notification); }, 2000); } catch (err) { console.error('Unable to copy results', err); } document.body.removeChild(textArea); } function resetCalculator() { document.getElementById('totalMarketingSpend').value = '10000'; document.getElementById('newCustomersAcquired').value = '500'; // Clear error messages document.getElementById('totalMarketingSpendError').textContent = "; document.getElementById('totalMarketingSpendError').style.display = 'none'; document.getElementById('newCustomersAcquiredError').textContent = "; document.getElementById('newCustomersAcquiredError').style.display = 'none'; // Clear results display document.getElementById('cacResult').textContent = '$0.00'; document.getElementById('marketingCostPerResult').textContent = 'Total Marketing & Sales Spend: $0.00′; document.getElementById('customerCountResult').textContent = 'New Customers Acquired: 0′; document.getElementById('cacFormulaResult').textContent = 'Formula Used: (Total Marketing & Sales Spend) / (New Customers Acquired)'; document.getElementById('tableSpend').textContent = "; document.getElementById('tableCustomers').textContent = "; document.getElementById('tableCAC').textContent = "; // Hide results container document.getElementById('resultsContainer').style.display = 'none'; // Clear chart if it exists if (chartInstance) { chartInstance.destroy(); chartInstance = null; } } // Initialize Chart.js if available (assume it's loaded globally or embed it) // For a self-contained solution, we'd embed Chart.js library itself. // Assuming Chart.js is available globally for this example structure. // If not, the Chart constructor would fail. For production, include Chart.js CDN. // Example: // Add this line within the or before the closing tag. // Initial calculation on load if default values are set document.addEventListener('DOMContentLoaded', function() { // Check if Chart.js is loaded before trying to use it if (typeof Chart !== 'undefined') { calculateCAC(); // Calculate with default values on page load } else { console.error("Chart.js library not loaded. Please include Chart.js CDN."); // Optionally, disable chart related features or show a message var chartContainer = document.querySelector('.chart-container'); if (chartContainer) { chartContainer.innerHTML = '

Chart.js library is required but not loaded.

'; } } });

Leave a Comment