Closed fanyer closed 7 years ago
As documented in the README, the polar coordinate system used by d3-shape puts θ = 0 at 12 o’clock (x = 0, y = -r) and positive values proceed clockwise.
Please use Stack Overflow tag d3.js to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly. Stack Overflow provides a better collaborative forum for self-help: tens of thousands of D3-related questions have already been asked there, and some answered questions may be relevant to you.
When asking for help, please include a link to a live example that demonstrates the issue, preferably on bl.ocks.org. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗
When
d3.radialLine
ord3.arc
is called, I have 2 problemsCan I set the starting line in the polar coordinate(like the X Axis) to horizon right direction ? The default is located in vertical up direction, or I should have rotated it manually?
Can I make it draw in counterclockwise direction just like it behaves in Math? For example, the dot (Math.PI/2, 100) in Polar Coordinate should equal to (0,100) in XY Cartesian Coordinates , but it is draw in (0, -100)