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 modeStyles |
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 or Stacked Bar Chart. |
bubble | Bubble Chart. |
funnel | Funnel Chart. |
heatmap | Heat Map. |
line | Line Chart or Sparkline. |
mixed | Mixed Chart. |
pie | Pie Chart. |
plotlyJson | Plotly JSON Chart. |
sankey | Sankey Chart. |
scatter | Scatter Chart. |
line | Sparkline. |
sunburst | Sunburst Chart. |
treemap | Treemap. |
waterfall | Waterfall Chart. |
datasource
The data source.
global
Whether the object is globally scoped for use in all app pages.
Whether the component is visible.
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
xAxisTitle
yAxisTickFormat
yAxisTitle
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.