Jake Trent

Tag: Svg

D3 Class Operations

D3 has operations for class name manipulation that you’re used to from jQuery. These include addClass, removeClass, hasClass, and toggleClass. They just go by different names.

Read more

Rotate Gauge Needle in D3

If you want to make a gauge chart in S3, you’ll need a needle on your gauge. It’s not hard to draw a triangle, but here’s the extra work to rotate it.

Read more