Playground
Chart.js
데이터 시각화 & 차트
chart.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Chart.js Data Visualization const ctx = document.getElementById('chart'); new Chart(ctx, { type: 'bar', data: { labels: ['HTML', 'React', 'Vue', 'Python', 'Go', 'Lua'], datasets: [ { label: 'Popularity', data: [95, 88, 72, 91, 65, 45], backgroundColor: [ '#f97316', '#06b6d4', '#10b981', '#2563eb', '#38bdf8', '#6366f1' ], borderRadius: 6, }, { label: 'Growth', data: [20, 45, 30, 55, 60, 25], backgroundColor: [ '#fb923c', '#22d3ee', '#34d399', '#60a5fa', '#7dd3fc', '#818cf8' ], borderRadius: 6, } ], }, options: { responsive: true, plugins: { title: { display: true, text: 'Programming Languages Stats', font: { size: 18, weight: 'bold' }, padding: { bottom: 16 }, }, legend: { position: 'bottom', }, }, scales: { y: { beginAtZero: true, max: 100, grid: { color: '#f1f5f9' }, }, x: { grid: { display: false }, }, }, }, });
Preview
Console
Chart.js
chart.js
UTF-8
Ln 1, Col 1
Spaces: 2