Files
react-test/docs/data/experiments/renderers/renderSparkline.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
323 B
JavaScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import { SparkLineChart } from '@mui/x-charts/SparkLineChart';
export function renderSparkline(params) {
if (params.value == null) {
return '';
}
return (
<SparkLineChart
data={params.value}
width={params.colDef.computedWidth}
plotType="bar"
/>
);
}
export default renderSparkline;