UNPKG

librephotos-react-d3-graph

Version:

React component to build interactive and configurable graphs with d3 effortlessly

28 lines (26 loc) 610 B
import React from "react"; /** * Market component provides configurable interface to marker definition. * @example * * <Marker id="marker-id" fill="black" /> */ export default class Marker extends React.Component { render() { return ( <marker className="marker" id={this.props.id} viewBox="0 -5 10 10" refX={this.props.refX} refY="0" markerWidth={this.props.markerWidth} markerHeight={this.props.markerHeight} orient="auto" fill={this.props.fill} > <path d="M0,-5L10,0L0,5" /> </marker> ); } }