Closed borntofrappe closed 1 year ago
Create a layout function to position data points in a grid and color some of them with a distinct color
Rather satisfied of the current setup for the waffle
function.
Currently, the layout function allows to configure several options (width, height, whether the waffle should be flipped, start at the bottom). Rather proudly, the function also allows to specify an accessor function, just in case the input data is more complex than an array of values.
Two demos to showcase the utility:
The folder includes an additional script, layout.js
, to showcase a basic instance of the layout function
The function also includes the possibility to sort. Once more the implementation is inspired by what you can configure through d3.pie()
.
Create a component (#23) to reproduce a waffle chart layout.