Layout that depends on uploaded data

Hi there!

I am trying to create an app that displays a layout based on the type of the data uploaded via upload component. For example, if data is in .xlsx format I want to display bar graphs & if it is in .csv, I want to display pie charts.

Is this possible?

Best,
Agah