InnerWorld
InnerWorld

Reputation: 595

Cannot plot chart using D3.js

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

Upvotes: 0

Views: 48

Answers (1)

Robert Longson
Robert Longson

Reputation: 124289

SVG is case sensitive so you want

svg = d3.select("div#Wykres2")
    .append("svg")
    .attr("width", szerokosc)
    .attr("height", wysokosc)
    .text("not work :(");

Upvotes: 3

Related Questions