May 2019
Beginner to intermediate
650 pages
14h 50m
English
To build a pair of standard Cartesian axes, you need to move an axisBottom() near the bottom of the viewport and place an axisLeft() far enough from the left margin to fit the ticks and labels. The best way to do this is by declaring constants (or properties of a global configuration object) with the dimensions of the viewport and margins, as shown in the following screenshot:

You also need to invert the direction of the y axis, since the default origin of the viewport is located in the top-left corner, and grows downward. This can be done by swapping the ...
Read now
Unlock full access