ChartsText API
API reference docs for the React ChartsText component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { ChartsText } from '@mui/x-charts/ChartsText';
// or
import { ChartsText } from '@mui/x-charts';
// or
import { ChartsText } from '@mui/x-charts-pro';
Learn about the difference by reading this guide on minimizing bundle size.
Helper component to manage multiline text in SVG
Name | Type | Default | Description |
---|---|---|---|
text* | string | - | Text displayed. |
lineHeight | number | - | Height of a text line (in |
needsComputation | bool | false | If |
style | object | - | Style applied to text elements. |
The component cannot hold a ref.