Barplot - Largest N Values and Values Greater Than X

Hello, I’m brand new to plotly. How can I make a barplot that just shows the largest n values or just values greater than x? I searched and didn’t see any topics similar to this, so I apologize if this is redundant.