Learn about the available chart components for visualizing data in UI extensions.
data
: an object containing the chart data, with additional options
. Learn more about data formatting.axes
: an object that specifies for the x
and y
axes, with additional options
. Learn more about configuring axes.options
: an object that specifies options for the chart, such as showing data labels and tooltips. Learn more about chart options.{string: number | string}
. Data will be displayed in the order it’s provided to the component, so you will need to sort data beforehand if necessary. For example, to display data over time in a LineChart
, you should sort the data in ascending/descending order of your datetime
axis field before passing it to the chart component.
BarChart
with hundreds of bars on it will likely not be readable even if it renders quickly.type
field.1758791725
)2025-09-25T09:15:25+0000
)2024-09-25
)options
field in the data
prop to set propertyLabels
. Including options
will slightly change the way you format data
:
data
prop as data={dataArray}
.options
, you’ll need to format the data
prop as an object containing both data
and options
fields as shown below. In options
, you’ll include a propertyLabels
object, which then contains an object for each field and labels for each value.dealstage
and user_id
values.
axes
prop configures the chart’s axes. Charts can have two axes (x
and y
), and each axis is configured by a field
and fieldType
parameter. By default, the field
value will be used as the axis label, but you can also include a label
parameter to set it separately.
fieldType
of linear
.Parameter | Type | Description |
---|---|---|
field | String | The name of the field from the dataset. |
fieldType | String | The type of data in the field. You can specify one of the following types:
|
label | String | The label to display on the axis. If not specified, the field value will be used instead. |
options | Object | Additional configuration options for the axes:
|
groupFieldByColor
parameter in options
.
stacking
axes option to stack data by group. For example, the following bar chart displays the number of deals by deal stage. The data also includes the sales rep who owns each deal. To visually distinguish sales reps in each column, stacking
has been set to true
.
options
prop, you can configure a chart with options such as displaying a chart title, legend, data labels, or specifying the color list.
Parameter | Type | Description |
---|---|---|
title | String | The title of the chart. |
showTooltips | Boolean | When set to true , displays tooltips for data points on hover. Default is false . |
showLegend | Boolean | When set to true , displays a legend above the table to help users understand the data. Default is false . |
showDataLabels | Boolean | When set to true , displays labels above data points for readability. Default is false . |
colorList | Array | An array of strings specifying the order that colors should be used in the chart. Learn more about colors. |
groupFieldByColor
is specified in axes options
. You can customize these colors in two ways:
colorList
field in the top-level options
prop, then specify the colors you want to prioritize.groupFieldByColor
, include the colors
field within the axes options
.Product
field using groupFieldByColor
. The three colors (darkGreen
, blue
, darkPurple
) will be applied first, then the standard color order will be applied to any additional bars.
colors
field in the axes options
. In colors, you’ll need to specify each value from the groupFieldByColor
field to assign a color to.
Color | Hex value | Swatch |
---|---|---|
orange | #fea58e |
aqua
| #51d3d9 |
purple
| #bda9ea |
yellow
| #f5c78e |
pink
| #ea90b1 |
blue
| #81c1fd |
green
| #a4d398 |
darkOrange
| #c3705c |
darkAqua
| #009ca2 |
darkPurple
| #8775b2 |
darkYellow
| #bb915b |
darkPink
| #b05c7d |
darkBlue
| #468cc4 |
darkGreen
| #6b9a5b |