I wrote code to create basic shapes but rectangles don't appear. Screen is just blank. I am not so experienced with d3 and also console doesn't show any error so I can't spot my mistake. y0, y1 and x1 are scales and they work fine. Code: var year = svg.selectAll(".g-year...
If you add a stroke, however, you can see the polygon completes the shape with a line directly from end point to start point, where the polyline doesn’t show the line. The fills are the same though. [code type=html] [/code] SVG Properties and CSS For most of the examples in this...