react-gifted-charts
Version:
ReactJS counterpart of react-native-gifted-charts. An intuitive charting library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid and Radar charts in React
9 lines • 851 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
var BarBackgroundPattern = function (props) {
var barBackgroundPatternFromItem = props.barBackgroundPatternFromItem, barBackgroundPatternFromProps = props.barBackgroundPatternFromProps, patternIdFromItem = props.patternIdFromItem, patternIdFromProps = props.patternIdFromProps;
return (_jsxs("svg", { children: [_jsx("defs", { children: barBackgroundPatternFromItem
? barBackgroundPatternFromItem()
: barBackgroundPatternFromProps() }), _jsx("rect", { stroke: "none", x: "1", y: "1", width: "100%", height: "100%", fill: "url(#".concat(patternIdFromItem !== null && patternIdFromItem !== void 0 ? patternIdFromItem : patternIdFromProps, ")") })] }));
};
export default BarBackgroundPattern;
//# sourceMappingURL=barBackgroundPattern.js.map