Skip to content

Commit

Permalink
feat: 막대 그래프 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Daewony authored Nov 19, 2023
1 parent 37b1636 commit df6cdd7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions barChart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const ctx = document.getElementById("myChart");
const date = ["2021.08.05", " ", "2021.08.12", " ", "2021.08.19"];

new Chart(ctx, {
type: "bar",
data: {
labels: date,
datasets: [
{
label: "덕양구 행신1,3~4동",
data: [23, 42, 12, 22, 24],
borderWidth: 1,
},
],
},
options: {
scales: {
y: {
beginAtZero: true,
},
},
},
});

0 comments on commit df6cdd7

Please sign in to comment.