UNPKG

d3-er

Version:

Custom d3 module created using some d3 modules and custom functions

16 lines (9 loc) 266 B
import * as d3Selection from 'd3-selection' export function SVG(elem) { if (!arguments.length) return null const svg = d3Selection.select(elem).append('svg') svg.attr('width', '100%') svg.attr('height', 100) return svg } export default SVG