I would do it all myself. I’m that kind of a guy. I can see lots of simple ways to write that code.
Since you asked in the plugins area of the forum, I gave you a plugin answer.
Because I can’t draw well, I might try constructing the triangles using CSS3 or unicode triangles.
JΛ̊KE