May 2019
Beginner to intermediate
650 pages
14h 50m
English
A radial line function can be created with d3.lineRadial(). The coordinates of each data point are specified by the methods listed in the following table. Radial lines also inherit other line methods, such as defined() and curve(), which function in the same way.
|
Method |
Description |
|
angle(function) |
This returns an angle in radians. The reference meridian (0) is located at –y (12 o'clock). |
|
radius(function) |
This returns the distance from the center (0,0). |
There is a very cool real-world example we can create to demonstrate radial line charts. It uses a JSON file that you can download from the NASA GISS (Goddard Institute for Space Studies) website (data.giss.nasa.gov/gistemp ...
Read now
Unlock full access