All Pages


    /pages/the-role-of-campus-and-community-partners-in-supporting-student-transitions
    /pages/the-ultimate-guide-to-online-marketing-strategies-for-small-businesses
    /pages/these-institutions-allow-students-the-opportunity-to-pursue-a-variety-of-educational-and-training-programs
    /pages/thrive-in-our-community-while-taking-your-education-forward
    /pages/through-collaboration-innovation-and-responsibility-we-lead-with-purpose-to-make-a-difference-worldwide
    /pages/transform-your-education-journey-with-grade-resources-and-guidance
    /pages/transform-your-education-journey-with-graduate-resources-and-guidance
    /pages/transition-from-undergrad-to-grad-with-guidance-every-step-of-the-way
    /pages/ultimate-guide-to-sustainable-gadgets-for-environmental-living
    /pages/understanding-the-present-through-learning-questioning-and-observation
    /pages/united-in-purpose-and-fueled-by-passion-we-create-change-that-resonates-across-generations
    /pages/university-community-partnerships-enhancing-holistic-student-experiences
    /pages/unlock-your-potential-and-navigate-the-graduate-application-journey
    /pages/when-information-meets-purpose-and-turns-into-meaningful-insight
    /pages/where-curiosity-expands-into-awareness-and-shapes-thoughtful-life-decisions
    /pages/where-education-encourages-mindful-living-and-clear-thinking
    /pages/where-graduate-education-meets-mentorship-and-campus-connection
    /pages/wireless-bluetooth-headphones-with-noise-cancellation-and-long-battery-life-color-black-size-standard-utm_source-newsletter-utm_medium-email-utm_campaign-holiday_sale_2025-coupon-winter25-user_id-23748923874
    /pages/with-dedicated-leadership-and-innovative-mindset-we-keep-reaching-new-milestones

Chart.js

slack

Installation

You can download the latest version of Chart.js from the GitHub releases or use a Chart.js CDN. Detailed installation instructions can be found on the installation page.

Creating a Chart

It's easy to get started with Chart.js. All that's required is the script included in your page along with a single <canvas> node to render the chart.

In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the usage documentation.

<canvas id="myChart" width="400" height="400"></canvas>
<script>
var ctx = document.getElementById('myChart').getContext('2d');
var myChart = new Chart(ctx, {
    type: 'bar',
    data: {
        labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
        datasets: [{
            label: '# of Votes',
            data: [12, 19, 3, 5, 2, 3],
            backgroundColor: [
                'rgba(255, 99, 132, 0.2)',
                'rgba(54, 162, 235, 0.2)',
                'rgba(255, 206, 86, 0.2)',
                'rgba(75, 192, 192, 0.2)',
                'rgba(153, 102, 255, 0.2)',
                'rgba(255, 159, 64, 0.2)'
            ],
            borderColor: [
                'rgba(255, 99, 132, 1)',
                'rgba(54, 162, 235, 1)',
                'rgba(255, 206, 86, 1)',
                'rgba(75, 192, 192, 1)',
                'rgba(153, 102, 255, 1)',
                'rgba(255, 159, 64, 1)'
            ],
            borderWidth: 1
        }]
    },
    options: {
        scales: {
            yAxes: [{
                ticks: {
                    beginAtZero: true
                }
            }]
        }
    }
});
</script>