react-sparklines-ts
Version:
Beautiful and expressive Sparklines component for React (continued)
7 lines (6 loc) • 331 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
export default function SparklinesText(props) {
const { point, text, fontSize, fontFamily } = props;
const { x, y } = point;
return (_jsx("g", { children: _jsx("text", { x: x, y: y, fontFamily: fontFamily || "Verdana", fontSize: fontSize || 10, children: text }) }));
}