About the Chart.js compiler
Simple yet flexible JavaScript charting library. Runs in your browser. Run Chart.js code in your browser with no install and no signup — the editor, the input and the output share one screen. Chart.js compiles and runs on your own device through WebAssembly, so once the page has loaded it keeps working without a network connection.
Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.
A Chart.js example
This is the program the Chart.js editor opens with — run it as it is, then change it.
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4"></script>
<style>body { font-family: sans-serif; padding: 2rem; max-width: 600px; margin: auto; }</style>
</head>
<body>
<h1>Chart.js Demo</h1>
<canvas id="chart"></canvas>
<script>
new Chart(document.getElementById('chart'), {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Sales',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: ['#6366f1', '#8b5cf6', '#a78bfa', '#c4b5fd', '#ddd6fe', '#ede9fe'],
borderRadius: 8
}]
},
options: { responsive: true, plugins: { legend: { display: false } } }
});
</script>
The editor opens with the full program.
More Web UI Frameworks compilers
Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.