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 ...

Get Web Development with ReasonML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.