Charts - 파이 차트
파이 차트로 전체의 일부를 원 안의 호(arc)나 각도로 표현해서 비율을 빠르게 비교할 수 있어요.
본문
개요
파이 차트는 전체의 비율을 보여줘서 각 카테고리가 전체에 얼마나 기여하는지 비교할 수 있게 해줘요. 필요한 것은:
- 범주형 차원 하나 (각 카테고리가 조각 하나)
- 카테고리별 숫자 값 하나 (값은 전체의 비율로 변환돼요)
아래 데모는 타이타닉 호에서 좌석 등급별 승객 생존율을 비교해요.
import * as React from 'react';
import { PieChart, pieClasses } from '@mui/x-charts/PieChart';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import ToggleButton from '@mui/material/ToggleButton';
import ToggleButtonGroup from '@mui/material/ToggleButtonGroup';
import { useDrawingArea } from '@mui/x-charts/hooks';
import { styled } from '@mui/material/styles';
import type { Theme } from '@mui/material/styles';
interface TitanicDatum {
Class: '1st' | '2nd' | '3rd' | 'Crew';
Survived: 'Yes' | 'No';
Count: number;
}
interface ChartDatum {
id: string;
label: string;
value: number;
percentage: number;
color: string;
}
type ClassType = '1st' | '2nd' | '3rd' | 'Crew';
// Convert hex color to rgba with opacity
const hexToRgba = (hex: string, alpha: number): string => {
const r = parseInt(hex.slice(1, 3), 16);
const g = parseInt(hex.slice(3, 5), 16);
const b = parseInt(hex.slice(5, 7), 16);
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
};
// https://en.wikipedia.org/wiki/Passengers_of_the_Titanic#/media/File:Titanic_casualties.svg
const titanicData: TitanicDatum[] = [
{ Class: '1st', Survived: 'No', Count: 123 },
{ Class: '1st', Survived: 'Yes', Count: 202 },
{ Class: '2nd', Survived: 'No', Count: 167 },
{ Class: '2nd', Survived: 'Yes', Count: 118 },
{ Class: '3rd', Survived: 'No', Count: 528 },
{ Class: '3rd', Survived: 'Yes', Count: 178 },
{ Class: 'Crew', Survived: 'No', Count: 696 },
{ Class: 'Crew', Survived: 'Yes', Count: 212 },
];
const classes: ClassType[] = ['1st', '2nd', '3rd', 'Crew'];
const totalCount = titanicData.reduce(
(acc: number, item: TitanicDatum) => acc + item.Count,
0,
);
// Define colors for each class
const classColors: Record<ClassType, string> = {
'1st': '#fa938e',
'2nd': '#98bf45',
'3rd': '#51cbcf',
Crew: '#d397ff',
};
// Different opacity based on class
const opacityMap: Record<ClassType, number> = {
'1st': 0.9,
'2nd': 0.7,
'3rd': 0.5,
Crew: 0.3,
};
const classData: ChartDatum[] = classes.map((pClass: ClassType) => {
const classTotal = titanicData
.filter((item: TitanicDatum) => item.Class === pClass)
.reduce((acc: number, item: TitanicDatum) => acc + item.Count, 0);
return {
id: pClass,
label: `${pClass} Class:`,
value: classTotal,
percentage: (classTotal / totalCount) * 100,
color: classColors[pClass],
};
});
const classSurvivalData: ChartDatum[] = classes.flatMap((pClass: ClassType) => {
const classTotal = classData.find((d: ChartDatum) => d.id === pClass)!.value ?? 0;
const baseColor = classColors[pClass];
return titanicData
.filter((item: TitanicDatum) => item.Class === pClass)
.sort((a: TitanicDatum, b: TitanicDatum) => (a.Survived > b.Survived ? 1 : -1))
.map((item: TitanicDatum) => ({
id: `${pClass}-${item.Survived}`,
label: item.Survived,
value: item.Count,
percentage: (item.Count / classTotal) * 100,
color: item.Survived === 'Yes' ? baseColor : `${baseColor}80`, // 80 is 50% opacity for 'No'
}));
});
// Create a simplified dataset that groups all classes together for Yes/No
const survivalData: ChartDatum[] = [
{
id: 'Yes',
label: 'Survived:',
value: titanicData
.filter((item: TitanicDatum) => item.Survived === 'Yes')
.reduce((sum: number, item: TitanicDatum) => sum + item.Count, 0),
percentage:
(titanicData
.filter((item: TitanicDatum) => item.Survived === 'Yes')
.reduce((sum: number, item: TitanicDatum) => sum + item.Count, 0) /
totalCount) *
100,
color: classColors['3rd'],
},
{
id: 'No',
label: 'Did not survive:',
value: titanicData
.filter((item: TitanicDatum) => item.Survived === 'No')
.reduce((sum: number, item: TitanicDatum) => sum + item.Count, 0),
percentage:
(titanicData
.filter((item: TitanicDatum) => item.Survived === 'No')
.reduce((sum: number, item: TitanicDatum) => sum + item.Count, 0) /
totalCount) *
100,
color: classColors['1st'],
},
];
// Create dataset for class distribution by survival status (Yes first, then No)
const survivalClassData: ChartDatum[] = [...titanicData]
.sort((a: TitanicDatum) => (a.Survived === 'Yes' ? -1 : 1))
.map((item: TitanicDatum) => {
const baseColor = survivalData.find(
(d: ChartDatum) => d.id === item.Survived,
)!.color;
return {
id: `${item.Class}-${item.Survived}`,
label: `${item.Class} class:`,
value: item.Count,
percentage:
(item.Count /
(item.Survived === 'Yes'
? survivalData[0]!.value
: survivalData[1]!.value)) *
100,
color: hexToRgba(baseColor, opacityMap[item.Class] || 1),
};
});
const StyledText = styled('text')(({ theme }: { theme: Theme }) => ({
fill: theme.palette.text.primary,
textAnchor: 'middle',
dominantBaseline: 'central',
fontSize: 20,
}));
interface PieCenterLabelProps {
children: React.ReactNode;
}
function PieCenterLabel({ children }: PieCenterLabelProps): React.ReactElement {
const { width, height, left, top } = useDrawingArea();
return (
<StyledText x={left + width / 2} y={top + height / 2}>
{children}
</StyledText>
);
}
type ViewType = 'class' | 'survival';
export default function TitanicPie(): React.ReactElement {
const [view, setView] = React.useState<ViewType>('class');
const handleViewChange = (
event: React.MouseEvent<HTMLElement>,
newView: ViewType | null,
) => {
if (newView !== null) {
setView(newView);
}
};
const innerRadius = 50;
const middleRadius = 120;
return (
<Box sx={{ width: '100%', textAlign: 'center' }}>
<Typography variant="h5" gutterBottom>
Titanic survival statistics
</Typography>
<ToggleButtonGroup
color="primary"
size="small"
value={view}
exclusive
onChange={handleViewChange}
>
<ToggleButton value="class">View by Class</ToggleButton>
<ToggleButton value="survival">View by Survival</ToggleButton>
</ToggleButtonGroup>
<Box sx={{ display: 'flex', justifyContent: 'center', height: 400 }}>
{view === 'class' ? (
<PieChart
series={[
{
innerRadius,
outerRadius: middleRadius,
data: classData,
arcLabel: (item) =>
`${item.id} (${(item as any).percentage.toFixed(0)}%)`,
valueFormatter: ({ value }) =>
`${value} out of ${totalCount} (${((value / totalCount) * 100).toFixed(0)}%)`,
highlightScope: { fade: 'global', highlight: 'item' },
highlighted: { additionalRadius: 2 },
cornerRadius: 3,
},
{
innerRadius: middleRadius,
outerRadius: middleRadius + 20,
data: classSurvivalData,
arcLabel: (item) =>
`${item.label} (${(item as any).percentage.toFixed(0)}%)`,
valueFormatter: ({ value }) =>
`${value} out of ${totalCount} (${((value / totalCount) * 100).toFixed(0)}%)`,
arcLabelRadius: 160,
highlightScope: { fade: 'global', highlight: 'item' },
highlighted: { additionalRadius: 2 },
cornerRadius: 3,
},
]}
sx={{
[`& .${pieClasses.arcLabel}`]: {
fontSize: '12px',
},
}}
hideLegend
>
<PieCenterLabel>Class</PieCenterLabel>
</PieChart>
) : (
<PieChart
series={[
{
innerRadius,
outerRadius: middleRadius,
data: survivalData,
arcLabel: (item) =>
`${item.id} (${(item as any).percentage.toFixed(0)}%)`,
valueFormatter: ({ value }) =>
`${value} out of ${totalCount} (${((value / totalCount) * 100).toFixed(0)}%)`,
highlightScope: { fade: 'global', highlight: 'item' },
highlighted: { additionalRadius: 2 },
cornerRadius: 3,
},
{
innerRadius: middleRadius,
outerRadius: middleRadius + 20,
data: survivalClassData,
arcLabel: (item) => {
const id = (item as any).id || '';
const percentage = (item as any).percentage || 0;
return `${id.split('-')[0]} (${percentage.toFixed(0)}%)`;
},
arcLabelRadius: 160,
valueFormatter: ({ value }) =>
`${value} out of ${totalCount} (${((value / totalCount) * 100).toFixed(0)}%)`,
highlightScope: { fade: 'global', highlight: 'item' },
highlighted: { additionalRadius: 2 },
cornerRadius: 3,
},
]}
sx={{
[`& .${pieClasses.arcLabel}`]: {
fontSize: '12px',
},
}}
hideLegend
>
<PieCenterLabel>Survived</PieCenterLabel>
</PieChart>
)}
</Box>
</Box>
);
}
기본
파이 차트 시리즈는 객체 배열을 담은 data 속성을 반드시 포함해야 해요.
각 객체가 조각 하나이며 반드시 value 속성을 가져야 해요.
label 같은 선택 속성도 추가할 수 있어요.
데이터를 업데이트하거나 재정렬할 것이라면 각 항목에 id 속성을 추가하세요. React key prop에 사용되기 때문이에요.
import { PieChart } from '@mui/x-charts/PieChart';
export default function BasicPie() {
return (
<PieChart
series={[
{
data: [
{ id: 0, value: 10, label: 'series A' },
{ id: 1, value: 15, label: 'series B' },
{ id: 2, value: 20, label: 'series C' },
],
},
]}
width={200}
height={200}
/>
);
}
도넛 차트
도넛 차트는 가운데가 비어 있는 파이 차트예요.
innerRadius 속성을 0보다 큰 값으로 설정하면 어떤 파이 차트든 도넛으로 바꿀 수 있어요.
import { PieChart } from '@mui/x-charts/PieChart';
const data = [
{ label: 'Group A', value: 400, color: '#0088FE' },
{ label: 'Group B', value: 300, color: '#00C49F' },
{ label: 'Group C', value: 300, color: '#FFBB28' },
{ label: 'Group D', value: 200, color: '#FF8042' },
];
const settings = {
margin: { right: 5 },
width: 200,
height: 200,
hideLegend: true,
};
export default function DonutChart() {
return (
<PieChart
series={[{ innerRadius: 50, outerRadius: 100, data, arcLabel: 'value' }]}
{...settings}
/>
);
}
색상
파이 색상을 두 가지 방법으로 커스터마이즈할 수 있어요:
- 색상 팔레트를 전달하세요. 각 호가 팔레트의 색상을 사용해요.
data의 각 항목에color속성을 설정해서 그 조각의 팔레트를 덮어쓰세요.
<PieChart
colors={['red', 'blue', 'green']} // Use palette
series={[
{
data: [
{ value: 10, color: 'orange' }, // Use color property
// ...
],
},
]}
/>
import Box from '@mui/material/Box';
import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography';
import { PieChart } from '@mui/x-charts/PieChart';
import { platforms } from './webUsageStats';
const palette = ['lightcoral', 'slateblue'];
const colorPerItem = [
{ ...platforms[0], color: 'orange' },
{ ...platforms[1], color: 'gray' },
];
export default function PieColor() {
return (
<Stack direction="row" spacing={2} sx={{ width: '100%', textAlign: 'center' }}>
<Box sx={{ flexGrow: 1 }}>
<Typography>Default</Typography>
<PieChart
series={[
{
data: platforms,
},
]}
{...pieParams}
/>
</Box>
<Box sx={{ flexGrow: 1 }}>
<Typography>Palette</Typography>
<PieChart
colors={palette}
series={[
{
data: platforms,
},
]}
{...pieParams}
/>
</Box>
<Box sx={{ flexGrow: 1 }}>
<Typography>Item</Typography>
<PieChart
series={[
{
data: colorPerItem,
},
]}
{...pieParams}
/>
</Box>
</Stack>
);
}
const pieParams = {
height: 200,
margin: { right: 5 },
hideLegend: true,
};
크기 조정
파이 시리즈의 모양은 다음 속성들로 제어돼요:
innerRadius: 중심에서 호의 안쪽 가장자리까지의 거리. 기본값은 0이에요.outerRadius: 중심에서 호의 바깥쪽 가장자리까지의 거리. 기본값은 그리기 영역에 들어맞는 가장 큰 값이에요.arcLabelRadius: 중심에서 호 라벨까지의 거리.paddingAngle: 인접한 호 사이의 각도(도 단위).cornerRadius: CSSborder-radius처럼 호의 모서리를 둥글게 만들어요.startAngle/endAngle: 파이의 각도 범위(도 단위).cx/cy: 파이의 중심. 기본값은 그리기 영역의 중심이에요.
import ChartsUsageDemo from 'docs/src/modules/components/ChartsUsageDemo';
import { PieChart } from '@mui/x-charts/PieChart';
import { desktopOS, valueFormatter } from './webUsageStats';
export default function PieShape() {
return (
<ChartsUsageDemo
componentName="Pie shape"
data={{
innerRadius: { knob: 'number', defaultValue: 30 },
outerRadius: { knob: 'number', defaultValue: 100 },
paddingAngle: { knob: 'number', defaultValue: 5 },
cornerRadius: { knob: 'number', defaultValue: 5 },
startAngle: { knob: 'number', defaultValue: -45 },
endAngle: { knob: 'number', defaultValue: 225 },
cx: { knob: 'number', defaultValue: 150 },
cy: { knob: 'number', defaultValue: 150 },
}}
renderDemo={(props) => (
<PieChart
series={[
{
...props,
data: desktopOS,
valueFormatter,
},
]}
width={300}
height={300}
hideLegend
/>
)}
getCode={({ props }) => {
return `import { PieChart } from '@mui/x-charts/PieChart';
<PieChart
series={[
{
data: [ ... ],
innerRadius: ${props.innerRadius},
outerRadius: ${props.outerRadius},
paddingAngle: ${props.paddingAngle},
cornerRadius: ${props.cornerRadius},
startAngle: ${props.startAngle},
endAngle: ${props.endAngle},
cx: ${props.cx},
cy: ${props.cy},
}
]}
/>`;
}}
/>
);
}
다음 속성들은 백분율 문자열(예: '50%')을 받아요:
innerRadius,outerRadius,arcLabelRadius:'100%'는 그리기 영역에 들어맞는 전체 반지름을 의미해요.cx와cy:'100%'는 그리기 영역의 너비 또는 높이를 의미해요.
라벨
시리즈에 arcLabel 속성을 설정해서 호에 라벨을 표시해요.
호의 데이터 객체를 받아 라벨 문자열을 반환하는 함수를 전달하거나, 다음 값 중 하나를 사용하세요:
'value': 호의 원시 값'formattedValue': 그 호의valueFormatter()결과'label': 그 호의label속성(있을 경우)
arcLabelMinAngle을 설정해서 그 값(도)보다 작은 각도의 호에는 라벨을 표시하지 않게 할 수 있어요.
import { PieChart, pieClasses } from '@mui/x-charts/PieChart';
import { desktopOS, valueFormatter } from './webUsageStats';
export default function PieArcLabel() {
return (
<PieChart
series={[
{
arcLabel: (item) => `${item.value}%`,
arcLabelMinAngle: 35,
arcLabelRadius: '60%',
...data,
},
]}
sx={{
[`& .${pieClasses.arcLabel}`]: {
fontWeight: 'bold',
},
}}
{...size}
/>
);
}
const size = {
width: 200,
height: 200,
};
const data = {
data: desktopOS,
valueFormatter,
};
하이라이트
파이 시리즈에 highlightScope 속성을 추가해서 하이라이팅을 제어하세요.
자세한 내용은 하이라이팅을 참고하세요.
[data-faded=true]와 [data-highlighted=true] CSS 선택자를 사용해서 호가 페이드되거나 하이라이트됐을 때 스타일링하세요.
CSS는 color, stroke-width, opacity를 바꾸는 데 잘 맞아요.
호가 하이라이트되거나 페이드될 때 호의 크기를 바꾸려면 highlighted와 faded 속성으로 innerRadius, outerRadius, cornerRadius를 덮어쓰세요.
절대값을 설정하는 대신 outerRadius에 더하려면 additionalRadius를 사용하세요.
음수 값은 호를 줄여요.
import { PieChart } from '@mui/x-charts/PieChart';
import { desktopOS, valueFormatter } from './webUsageStats';
export default function PieActiveArc() {
return (
<PieChart
series={[
{
data: desktopOS,
highlightScope: { fade: 'global', highlight: 'item' },
faded: { innerRadius: 30, additionalRadius: -30, color: 'gray' },
valueFormatter,
},
]}
height={200}
width={200}
/>
);
}
클릭 이벤트
파이 차트는 특정 호를 클릭했을 때 onItemClick 핸들러를 제공해요.
시그니처는 다음과 같아요:
const onItemClick = (
event, // The mouse event.
params, // An object that identifies the clicked element.
) => {};
import * as React from 'react';
import Stack from '@mui/material/Stack';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import IconButton from '@mui/material/IconButton';
import UndoOutlinedIcon from '@mui/icons-material/UndoOutlined';
import { PieChart } from '@mui/x-charts/PieChart';
import { HighlightedCode } from '@mui/internal-core-docs/HighlightedCode';
import { PieItemIdentifier } from '@mui/x-charts/models';
import { mobileAndDesktopOS, platforms, valueFormatter } from './webUsageStats';
export default function PieClick() {
const [itemData, setItemData] = React.useState<PieItemIdentifier>();
return (
<Stack
direction={{ xs: 'column', md: 'row' }}
spacing={{ xs: 0, md: 4 }}
sx={{ width: '100%' }}
>
<Box sx={{ flexGrow: 1 }}>
<PieChart
series={series}
width={300}
height={300}
hideLegend
onItemClick={(event, d) => setItemData(d)}
/>{' '}
</Box>
<Stack direction="column" sx={{ width: { xs: '100%', md: '40%' } }}>
<Box
sx={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
}}
>
<Typography>Click on the chart</Typography>
<IconButton
aria-label="reset"
size="small"
onClick={() => setItemData(undefined)}
>
<UndoOutlinedIcon fontSize="small" />
</IconButton>
</Box>
<HighlightedCode
code={`// Data from item click
${itemData ? JSON.stringify(itemData, null, 2) : '// The data will appear here'}
`}
language="json"
copyButtonHidden
/>
</Stack>
</Stack>
);
}
const series = [
{
innerRadius: 0,
outerRadius: 80,
id: 'platform-series',
data: platforms,
valueFormatter,
},
{
innerRadius: 100,
outerRadius: 120,
id: 'OS-series',
data: mobileAndDesktopOS,
valueFormatter,
},
];
CSS
CSS 선택자로 파이 차트 요소를 커스터마이즈할 수 있어요.
아래 데모는 data-series 속성을 사용해서 바깥쪽 시리즈를 선택하고 그 불투명도를 낮춰요.
import { pieClasses, PieChart, PieChartProps } from '@mui/x-charts/PieChart';
import { rainbowSurgePalette } from '@mui/x-charts/colorPalettes';
import { useTheme } from '@mui/material/styles';
export default function PieCSSStyling() {
const theme = useTheme();
const palette = rainbowSurgePalette(theme.palette.mode);
const data1 = [
{ label: 'Group A', value: 400 },
{ label: 'Group B', value: 300 },
{ label: 'Group C', value: 300 },
{ label: 'Group D', value: 200 },
];
const data2 = [
{ label: 'A1', value: 100, color: palette[0] },
{ label: 'A2', value: 300, color: palette[0] },
{ label: 'B1', value: 100, color: palette[1] },
{ label: 'B2', value: 80, color: palette[1] },
{ label: 'B3', value: 40, color: palette[1] },
{ label: 'B4', value: 30, color: palette[1] },
{ label: 'B5', value: 50, color: palette[1] },
{ label: 'C1', value: 100, color: palette[2] },
{ label: 'C2', value: 200, color: palette[2] },
{ label: 'D1', value: 150, color: palette[3] },
{ label: 'D2', value: 50, color: palette[3] },
];
const settings = {
series: [
{
innerRadius: 0,
outerRadius: 80,
data: data1,
highlightScope: { fade: 'global', highlight: 'item' },
},
{
id: 'outer',
innerRadius: 100,
outerRadius: 120,
data: data2,
highlightScope: { fade: 'global', highlight: 'item' },
},
],
height: 300,
hideLegend: true,
} satisfies PieChartProps;
return (
<PieChart
{...settings}
sx={{
[`.${pieClasses.series}[data-series="outer"] .${pieClasses.arc}`]: {
opacity: 0.6,
},
}}
/>
);
}
애니메이션
차트 컨테이너는 prefers-reduced-motion을 존중하지만, skipAnimation prop을 true로 설정해서 애니메이션을 수동으로 끌 수도 있어요.
skipAnimation을 true로 설정하면 차트가 애니메이션 없이 렌더링돼요.
// For a single component chart
<PieChart skipAnimation />
// For a composed chart
<ChartsContainer>
<PiePlot skipAnimation />
</ChartsContainer>
import * as React from 'react';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import Slider from '@mui/material/Slider';
import FormControlLabel from '@mui/material/FormControlLabel';
import Checkbox from '@mui/material/Checkbox';
import { PieChart } from '@mui/x-charts/PieChart';
import { mobileAndDesktopOS, valueFormatter } from './webUsageStats';
export default function PieAnimation() {
const [radius, setRadius] = React.useState(50);
const [itemNb, setItemNb] = React.useState(5);
const [skipAnimation, setSkipAnimation] = React.useState(false);
const handleItemNbChange = (event: Event, newValue: number | number[]) => {
if (typeof newValue !== 'number') {
return;
}
setItemNb(newValue);
};
const handleRadius = (event: Event, newValue: number | number[]) => {
if (typeof newValue !== 'number') {
return;
}
setRadius(newValue);
};
return (
<Box sx={{ width: '100%' }}>
<PieChart
height={300}
width={300}
series={[
{
data: mobileAndDesktopOS.slice(0, itemNb),
innerRadius: radius,
arcLabel: (params) => params.label ?? '',
arcLabelMinAngle: 20,
valueFormatter,
},
]}
skipAnimation={skipAnimation}
/>
<FormControlLabel
checked={skipAnimation}
control={
<Checkbox onChange={(event) => setSkipAnimation(event.target.checked)} />
}
label="skipAnimation"
labelPlacement="end"
/>
<Typography id="input-item-number" gutterBottom>
Number of items
</Typography>
<Slider
value={itemNb}
onChange={handleItemNbChange}
valueLabelDisplay="auto"
min={1}
max={8}
aria-labelledby="input-item-number"
/>
<Typography id="input-radius" gutterBottom>
Radius
</Typography>
<Slider
value={radius}
onChange={handleRadius}
valueLabelDisplay="auto"
min={15}
max={100}
aria-labelledby="input-radius"
/>
</Box>
);
}
조합(Composition)
ChartsDataProvider를 사용해서 조합을 위한 series prop을 제공하세요.
조합에서 사용할 수 있는 공유 차트 컴포넌트 외에도, 파이 조각과 그 라벨을 그리려면 PiePlot을 사용할 수 있어요.
파이 차트가 어떻게 조합되는지는 다음과 같아요:
<ChartsDataProvider plugins={PIE_CHART_PLUGINS}>
<ChartsWrapper>
<ChartsLegend />
<ChartsSurface>
<PiePlot />
<FocusedPieArc />
<ChartsOverlay />
</ChartsSurface>
<ChartsTooltip trigger="item" />
</ChartsWrapper>
</ChartsDataProvider>
:::info
ChartsDataProvider는 plugins prop을 받아요.
파이 차트의 경우 카테시안 축 동작을 제거해서 파이 위치에 영향을 주지 않는 플러그인을 전달하세요.
Pro 사용자는 PIE_CHART_PRO_PLUGINS를 사용해서 내보내기를 활성화할 수 있어요.
:::