ChartsTextAPI
React ChartsText 组件的 API 参考文档。了解此导出模块的 props、CSS 和其他 API。
演示
导入
import { ChartsText } from '@mui/x-charts/ChartsText';
// or
import { ChartsText } from '@mui/x-charts';
// or
import { ChartsText } from '@mui/x-charts-pro';
通过阅读这篇关于最小化 bundle 大小的指南,了解它们之间的区别。
用于管理 SVG 中多行文本的辅助组件
名称 | 类型 | 默认值 | 描述 |
---|---|---|---|
text* | string | - | 显示的文本。 |
lineHeight | number | - | 文本行的高度(以 |
needsComputation | bool | false | 如果为 |
style | object | - | 应用于文本元素的样式。 |
该组件不能持有 ref。
源代码
如果您在此页面中没有找到所需信息,请考虑查看组件的实现代码以获取更多详细信息。