liveBook · Manning

Angle

An angle is a geometric measure of rotational separation between two rays, directions, or vectors sharing a common origin.

How 2 Manning books explain it

Math for Web Design

An angle is the geometric measure of the separation between two intersecting rays or sides.

How it is used
Turns rotation, pointer direction, and data proportions into circular layouts, controls, and charts.
How deep it goes
Works through angle-to-position, pointer-to-angle, and data-to-slice calculations, including donut hit detection.
Examples
Uses a radial menu, pointer-responsive hover effect, rotary control, pie chart, and interactive donut chart.
What you can do after
Build it from scratch: calculate circular positions and slices, rotate a dial, and identify a hovered donut slice.

Read how Math for Web Design explains angle →

D3.js in Action, Third Edition

An angle is the measure of rotation from a reference direction to a point or geometric ray.

How it is used
Positions arcs and points around an SVG chart origin using a polar coordinate system.
How deep it goes
Explains polar positioning, percentage-to-angle calculations, degree-to-radian conversion, and D3 arc accessors.
Examples
Uses a precipitation chart that maps 35 percent of 2021 days to a 126-degree arc.
What you can do after
Apply angles via D3’s arc generator to construct SVG arcs from percentages and radii.

Read how D3.js in Action, Third Edition explains angle →

What to know first

Related concepts

Questions about angle

What is angle?

An angle is a geometric measure of rotational separation between two rays, directions, or vectors sharing a common origin.

Which Manning books explain angle?

Math for Web Design and D3.js in Action, Third Edition.

What should I know before learning angle?

Manning books that teach angle usually introduce centroid first.

What is angle part of?

Angle is part of polar coordinate. A polar coordinate specifies a point in two-dimensional space by its distance from an origin and its angle relative to a reference direction.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.