ChartTitleProps
Defines configuration options for the chart's title, including styling, positioning, and accessibility features.
Props
The following table outlines the props for the ChartTitleProps:
| Name | Type | Default | Description |
|---|---|---|---|
| accessibility | { ariaLabel: null, focusable: true, role: null, tabIndex: 0 } | Provides customization options to enhance accessibility for the chart title. | |
| align | 'Center' | Determines the alignment of the title within its container. Available options:
| |
| background | string | 'transparent' | The background color of the chart title area. Accepts any valid CSS color value. |
| border | { color: '', width: 1, dashArray: '' } | Defines the border styling for the chart title area. | |
| color | string | '' | Sets the color of the title. Accepts any valid CSS color string, including hexadecimal and RGBA formats. |
| fontFamily | string | '' | Specifies the font family used for the title (e.g., 'Arial', 'Verdana', 'sans-serif'). |
| fontSize | string | '15px' | Sets the font size of the text in pixels. |
| fontStyle | string | 'Normal' | Specifies the font style of the title (e.g., 'Normal', 'Italic'). |
| fontWeight | string | '500' | Specifies the font weight (thickness) of the title (e.g., 'Normal', 'Bold', '400'). |
| opacity | number | 1 | Sets the opacity level of the title. A value of 1 means fully opaque, while 0 means fully transparent. |
| position | 'Top' | Determines the position of the chart title relative to the chart area. Available options:
| |
| text | string | '' | Specifies the main title text of the chart. This text provides context or a label for the chart's data. |
| textOverflow | 'Wrap' | Controls how the title behaves when it overflows its container. Available options:
| |
| x | number | 0 | X-coordinate for positioning the chart title. Only applicable when |
| y | number | 0 | Y-coordinate for positioning the chart title.Only applicable when |