User Tools

Site Tools


dvd3js:drawing_svg_graphics_with_d3

drawing SVG with d3

d3.select('#chart')
  .append('svg')
    .attr('width', 600)
    .attr('height', 400)
    .style('background', '#cccccc')
  .append('rect')
    .attr('x', 200)
    .attr('y', 100)
    .attr('width', 200)
    .attr('height', 200)
    .style('background', '#ff0000')
dvd3js/drawing_svg_graphics_with_d3.txt · Last modified: 2016/04/14 16:36 by leo