0

I'm learning how to plot charts using D3.js on SVG objects. My code creates elements in DOM objects, but they do not display. If I run DOM inspector and copy all elements to another html document and display that the rectangles are visible.

I'm trying to plot two static rectangles on JSFiddle

1 Answer 1

3

SVG is case sensitive so you want

svg = d3.select("div#Wykres2")
    .append("svg")
    .attr("width", szerokosc)
    .attr("height", wysokosc)
    .text("not work :(");
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.