It’s Your Turn
Okay, tables aren’t that spiffy. Charts are a lot more attractive, so your task in this exercise is to create a new client project that uses Chart.js.[36] Again, I’m explaining just enough of that library to help you write the bindings you need to create a horizontal bar chart for the shirt statistics. If you feel energized and want to write a complete set of bindings for Chart.js, make sure you share it with the rest of us when you finish.
You’ll need to install Chart.js with npm install --save chart.js. This will add an entry to the dependencies in your package.json file. You don’t have to add it to the dependencies in bsconfig.json.
Here’s a summary of the information you need to draw a horizontal bar chart. You create ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access