The BarPlot component creates interactive bar charts from pandas DataFrames using Gradio’s native plotting.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gradio-app/gradio/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Constructor
Pandas DataFrame containing the data
Column name for x-axis (can be numeric, datetime, or string)
Column name for y-axis (must be numeric)
Column name for color grouping (must be string/category)
Chart title
X-axis title (defaults to column name)
Y-axis title (defaults to column name)
Mapping of series names to colors (e.g.,
{"A": "red", "B": "#00FF00"})Plot height in pixels
Y-axis limits as
[min, max]. Use None to auto-scale one endEvents
- select - Triggered when bar is selected
- double_click - Triggered on double click