-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e545e3
commit 169e791
Showing
5 changed files
with
262 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(async function () { | ||
const data = [ | ||
{ year: 2010, count: 10 }, | ||
{ year: 2011, count: 20 }, | ||
{ year: 2012, count: 15 }, | ||
{ year: 2013, count: 25 }, | ||
{ year: 2014, count: 22 }, | ||
{ year: 2015, count: 30 }, | ||
{ year: 2016, count: 28 }, | ||
]; | ||
|
||
new Chart( | ||
document.getElementById('acquisitions'), | ||
{ | ||
type: 'bar', | ||
data: { | ||
labels: data.map(row => row.year), | ||
datasets: [ | ||
{ | ||
label: 'Acquisitions by year', | ||
data: data.map(row => row.count) | ||
} | ||
] | ||
} | ||
} | ||
); | ||
})(); |
Oops, something went wrong.