Create a Filtered Chart
In this section, we will see how you can add a filtered chart to your Pollination app. We will filter the dry bulb temperature data coming out of an EPW file and will visualize it as a Plotly chart in a Pollination app.
Install the following libraries first
Start by importing the libraries
Set the title of the page and layout
Create an EPW object from an epw file and get the dry bulb temperature.
Apply some filters to the dry bulb temperature. for example, let's visualize the dry bulb temperature between 18 and 24 degrees Celsius during 9am to 5pm all year.
Create a Plotly figure from the filtered chart
Visualize the filtered dry bulb temperature chart
You should see a filtered annual heatmap appear in the Streamlit app.
Last updated