user394430
user394430

Reputation: 2967

Radial gradients of arcs in D3.js

I see from this example, how to make an arc in D3.js have a 1D gradient from one end of the arc to the other. I would also like to apply a radial gradient from the inner ring to the outer. Is this possible?

Upvotes: 1

Views: 3632

Answers (1)

Lars Kotthoff
Lars Kotthoff

Reputation: 109252

Yes, you can do this with a radialGradient. Example here.

Upvotes: 5

Related Questions