Question: JavaScript svg 26. (10 pts) Assume svg is a variable that references an already-created SVG that is 12 x 10 pixels. (That SVG is shown
26. (10 pts) Assume svg is a variable that references an already-created SVG that is 12 x 10 pixels. (That SVG is shown below with grid lines to make pixel locations clear, but those grid lines are not part of the visualization.) svg.selectAll ("rect") .data ([4,1,5,3]) .enter).append ("rect") .attr("X", function(d,) { return 2*i + 1; } ) attr ("y", 2) .attr("width", 1) .attr ("height", function(d) return d;) .style("fill", "black") style("stroke", "none") Shade the SVG below to show the output of the above JavaScript D3 code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
