How to update the FastListTemplate based on the type of chart selected

Hi
I’m new to Panel and my use case is pretty basic, please excuse me for a very generic question.

Based on a Select widget value from FastListTemplate sidebar, I want to display the content in the template.main area. Also, on the landing page, I am already displaying an image and some text. So on_click or param.watch of the Select button should generate charts and replace the existing template.main.

I tried replacing it, however, once the template is rendered I don’t see it changing when I select a different value in the selector.

Please suggest or point me to any resources that can help me here, thanks in advance!

the template can not be rendered again, but you can wrap your content in a Column(or Row) and update the content inside the Column (or Row).

col = pn.Column(old_chart)
template.main.apend(col)

and to update it

col[0] = new_chart
1 Like

@nghenzi, brother it worked. <3

2 Likes