Thanks, a lot! I'm trying to use javascript switch statement to do the shapes, as I dont wish to declare the type in my json as then I will have to change all of my json.
So far I have this switch statement:
var shape;
var relevance = d.Relevance;
switch (relevance)
{
case High:
shape = "square";
break;
case Medium:
shape = "circle";
break;
case Low:
shape = "triangle-up";
break;
}
And then I have the .symbol to return the desired shapes :
.attr("d", d3.svg.symbol().type(function(d) {return shape})
I don't know where I'm going wrong