ChartLastValueLabelProps

Configuration options for displaying a label for the last visible data point in a series. The label is axis-aligned and appears on the chart's axis edge.

Props

The following table outlines the props for the ChartLastValueLabelProps:

NameTypeDefaultDescription
background
string
''

The background color for the label. Accepts any valid CSS color string.

border
{ color: '#D3D3D3', width: 1, dashArray: '' }

The border properties for the label.

enable
boolean
false

Enables or disables the display of the last value label.

font
{ fontSize: '12px', fontFamily: 'Roboto', fontWeight: 'Normal', fontStyle: 'Normal', opacity: 1, color: '' }

Customizes the font styling for the label text.

lineStyle
{ width: 1, color: '', dashArray: '' }

Line styling for connector/grid lines behind the labels. Contains width, color and dashArray.

rx
number
5

Rounded corner radius (X) for the label background.

ry
number
5

Rounded corner radius (Y) for the label background.