Possible to draw a triangle chart instead of bars with D3?

Is it possible to draw a triangle chart instead of bars with D3?

It’s certainly possible, though some would advise against it (bar charts are intended to be read by their height and triangles will distort that).

If you want to draw a triangle instead of a bar you’ll need to use an SVG path instead of rect, which is much less simple.

You can also probably learn from d3’s shapes and symbols