create general template; fix d3 null problems
switch coordinate scheme and add legends