D3.js lineRadial.context() method
The d3.lineRadial.context() method lets you render the line in a canvas element’s context. The line will be rendered in the current context when the line generator is invoked. We can set the context of our line on our own using this method like color, stroke, fill, etc. The default value is null.
- _context: context set by the user.
Return Value: This method returns the current context.
Example 1: In this example, we will change color, stroke using this method.
Example 2: In this example, we will change color, fill using this method.