The Chart component for Retool Apps
A content area to display charts.
Chart renders Plotly-powered bar, line, pie, and scatter charts. It supports dataset grouping and styles, layout customization, and aggregation methods like sum, average, and standard deviation.
Refer to the charts guide for more information on building charts.
Settings
Chart includes the following configurable options when building apps in the IDE.
Chart typeDataData sourceShow on desktopShow on mobileMaintain space when hiddenMarginAlways show in edit modeStylesX-axis tickX-axis titleY-axis tickY-axis title |
Properties
All properties for Chart with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
Values
bar | Bar chart. |
line | Line chart. |
pie | Pie chart. |
scatter | Scatter chart. |
datasource
The source data when using UI Form.
id
The unique identifier.
isHiddenOnDesktop
Whether the component is visible in the desktop layout.
isHiddenOnMobile
Whether the component is visible in the mobile layout.
maintainSpaceWhenHidden
Whether the component takes up space on the canvas if hidden
is true
.
pluginType
The plugin type.
showInEditor
Whether to remain visible in the editor if hidden
is true
.
xAxisTickFormat
The x-axis tick labels.
xAxisTitle
The x-axis title.
yAxisTickFormat
The y-axis tick labels.
yAxisTitle
The y-axis title.
Events
Events are triggered by user interactions, such as clicking a button or entering a value. Use event handlers to trigger queries or other actions in response to events.
clear
The value is cleared.
select
A value is selected.