May 2019
Beginner to intermediate
650 pages
14h 50m
English
To adequately fit a graphical representation of the data on the screen, you need to decide on the size of the sample you will use and its extent (maximum and minimum values). Based on that information, you may decide to filter the data values, limiting the amount of data shown. The extent is also necessary to configure a scale that will translate from kilometers into pixels, so that the chart will fit in the view port. These tasks can be performed with data manipulation methods and scales (the topics of the next two chapters). Since these operations need to be called every time the data changes (when a different planet is selected), we will place it in a function:
function configureView() { // 1) Set ...Read now
Unlock full access