You can do something like this using the Pivot Table
functionality (in LibreOffice Calc: Menu Data
-> Pivot Table
-> Create...
). In Apache OpenOffice Calc, this feature is named Data Pilot
. In your use case, you will have to normalize the raw data before you can create a pivot table (AFAIK). So, if your raw data would look like this:
Categories Spice
Pork Garlic
Pork Parsley
Pork Chive
Beef Garlic
Beef Thyme
Beef Sage
Cauliflower Curry
Cauliflower Thyme
Tomato Garlic
Tomato Curry
Tomato Sage
you can easily create a pivot table looking like this:
To adapt the layout, just use the conditional formatting tools (this allows for replacing the count 1
by an X
and applying background colors). The pivot table definition simply looks as follows: