A variation around the Waffle component, using HTML elements.
You can fully customize it using cellComponent
property to define
your own cell component, if you wish to do so you should have a look at
native HTML component
for available properties.
You can also see more example usages in storybook.
The responsive alternative of this component is
ResponsiveWaffleHtml
, it also offers other implementations,
see Waffle and
WaffleCanvas.
Max value.
Chart data.
Number of rows.
Number of columns.
'bottom'
How to fill the waffle.
0
Padding between each cell.
Chart width.
Chart height.
'Depends on device'
Adjust pixel ratio, useful for HiDPI screens.
Chart margin.
Define style for common elements such as labels, axes…
Override default cell component.
Define chart's colors.
'#cccccc'
#cccccc
Defines empty cells color.
1
Empty cells opacity.
0
Control cell border width.
Method to compute cell border color.
Define patterns and gradients.
Define rules to apply patterns and gradients
true
Enable/disable interactivity.
Custom tooltip component
Can be used to get the computed legend data.
Optional chart's legends.
true
Enable/disable transitions.
'gentle'
Motion config for react-spring, either a preset or a custom configuration.
0
Staggered animation for the cells if > 0.