我正在尝试使用 Maven 来管理我的插件项目的依赖项。POM.xml 中正确说明了依赖关系。尽管如此,我还是得到了例外:
java.lang.NoClassDefFoundError
这是解决 Eclipse 插件项目依赖关系的正确方法吗?
我想根据域为散点图中的点着色,但出现错误:Uncaught TypeError: d3.scaleOrdinal is not a function
var colors = ["#63b598", "#ce7d78", "#ea9e70"];
var color = d3.scaleOrdinal().domain(['a','b','c']).range(colors);
svg.selectAll(".dot")
.data(data)
.enter().append("circle")
.attr("class", "dot")
.attr("r", 3.5)
.attr("cx", xMap)
.attr("cy", yMap)
.style("fill", function(d){ return color(d.category)})
Run Code Online (Sandbox Code Playgroud)