Histogram Finishing Touches
The histogram will need the proper dimensions, coordinates, and axis to help us read the chart.
We'll cover the following
We are going to finish the histogram we have been working on before adding some animations. Here is what we will do in this lesson. First, we will adjust the y-coordinate and height for the bars. Second, we will draw an axis to help the reader understand the chart. Lastly, we will add labels to the bars to help identify each bar. The hard part is pretty much over. Adding these features will be relatively easy. Let’s get started.
Dimensions and coordinates
We are going to start with the y coordinate and height of the bars. At the top of the draw()
function, we are going to create an accessor for the y-axis.
Get hands-on with 1200+ tech skills courses.