Shouldn't this be <code>var color = (inactive) ? config_.inactiveColor : d3.functor(d.color)();</code>. Cause the color can be set as function too.