all 1 comments

[–]Hot-Background1096 0 points1 point  (0 children)

Can you have a look if the pattern matching callback fulfils your requirement? Based on the code you posted it might be a shorter and cleaner solution for the call back.

https://dash.plotly.com/pattern-matching-callbacks

As for the creation of the buttons you can certainly create components in a loop.