Bar Plots in Gradio
Explore how to create and customize bar plots in Gradio by using pandas DataFrames to visualize data distributions. Learn to build suburb profiling dashboards with interactive charts that display key statistics using Gradio's BarPlot component.
We'll cover the following...
We'll cover the following...
The BarPlot component
We can create bar plots using the component BarPlot. This is useful when we want to show a distribution of data points or compare different values across different subgroups of the data.
This can be instantiated with gr.BarPlot() or with Interface string shortcut ‘barplot’.
Again, it is worth noting that a BarPlot component can not be passed as input into a function. If it is an output, it expects the function to return a pandas DataFrame with the data to plot. ...