[英]Cannot plot chart using D3.js
I'm learning how to plot charts using D3.js on SVG objects. 我正在学习如何在SVG对象上使用D3.js绘制图表。 My code creates elements in DOM objects, but they do not display.
我的代码在DOM对象中创建元素,但它们不显示。 If I run DOM inspector and copy all elements to another html document and display that the rectangles are visible.
如果我运行DOM inspector并将所有元素复制到另一个html文档中,并显示矩形可见。
I'm trying to plot two static rectangles on JSFiddle
我正在尝试在
JSFiddle
上绘制两个静态矩形
SVG is case sensitive so you want SVG区分大小写,所以您想要
svg = d3.select("div#Wykres2")
.append("svg")
.attr("width", szerokosc)
.attr("height", wysokosc)
.text("not work :(");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.