我有以下测试代码(按照Material UI打字稿文档中的指南进行操作)
import * as React from 'react';
import { Theme } from '@material-ui/core/styles/createMuiTheme';
import { WithStyles } from '@material-ui/core';
import { createStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
const drawerWidth = 240;
const styles = (theme: Theme) => createStyles({
root: {
flexGrow: 1,
height: 430,
zIndex: 1,
overflow: 'hidden',
position: 'relative',
display: 'flex',
},
appBar: {
zIndex: theme.zIndex.drawer + 1,
},
drawerPaper: {
position: 'relative',
width: drawerWidth,
},
content: {
flexGrow: 1,
backgroundColor: theme.palette.background.default,
padding: theme.spacing.unit * 3, …Run Code Online (Sandbox Code Playgroud) 我目前在报告仪表板上成功显示饼图.但是,业务请求是为了保留图表大纲,并在所有系列为空时在中心显示"noData"消息.
当图表为空时,业务不喜欢页面上浮动标签的外观.使用现有的图表对象,是否可以基本上制作图表轮廓并显示noData消息?