【发布时间】:2014-02-17 12:17:52
【问题描述】:
我尝试使用 SVG 尺寸,但文本被截断。
X轴代码:
svg.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + height + ")")
.append("text")
.attr("x", width / 2 )
.attr("y", margin.bottom + 5)
.style("text-anchor", "middle")
.style("font-size", "150%")
.text("Age in Years");
我该如何解决这个问题?
【问题讨论】:
标签: javascript css d3.js bar-chart