Skip to content

Suggestion: add an angle property to d3.forceRadial() to define the forces in this angle  #152

@logomanwolf

Description

@logomanwolf

It's a ground truth that in Polar coordinate system we need (angle,radius) to determine a position of a point. When I use d3.forceRadial to add a radial force on nodes, I surmise it could be more applicable if an angle() function is added to d3.forceRadial to define a force on an angle of radial. I thought it derives naturally without which we need to use d3.lineRadial to tranform this problem to what d3.forceCenter can solve.
For example, I want to draw a graph as the following.
image
Each circle in the graph needs to be positioned just at the cover of an arc as if an magnet force existed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions