Forum Discussion

pitscompany's avatar
pitscompany
New Member
2 months ago
Solved

Dynamic small multiples grid layout auto‑adjust rows/columns based on number of categories?

Hi everyone,

I have a small multiples chart (line chart) where each small multiple is a vehicle that has temperature readings. I've already filtered out vehicles with no data using a measure (COUNTROWS > 0) in the visual‑level filters, so only vehicles with actual readings show up. That part works well.

My problem is the grid layout. The "Rows" and "Columns" under Format → Small multiples → Grid layout are fixed numbers. So if I set it to 2 rows × 5 columns, but a company only has 4 vehicles with temperature data, I get 4 charts plus a bunch of empty cells/rows.

What I want is a dynamic grid: if a company has 4 vehicles → show 4 charts (e.g. 1 row × 4 columns), if it has 1 vehicle → show just 1 chart, if it has 10 → expand accordingly — without empty placeholder cells. Basically the grid should resize itself based on the number of categories currently displayed.

My questions:

  1. Is there any native way to make the small multiples grid dimensions dynamic (driven by the count of categories), maybe via a measure or field parameter? So far it looks like Rows/Columns are static format settings only.
  2. If not native, is there a custom visual / library (AppSource or otherwise) that supports auto‑fitting/flowing small multiples based on the number of categories? 

     

3 Replies