I need help regarding facets

I need to know how i can do something like i have shared in the attachment. The data is like this in algolia.

screenshot-www.algolia.com-2022.02.12-16_47_04

I am using javascript instantsearch
screenshot-localhost-2022.02.12-16_40_27