Hello all,

I am doing the Time series exercise in Ben Fry's Visualizing Data book.

My question has to do with mapping months instead of years.

Here is the line of code I am having trouble modifying:

float x = map(years[row], yearMin, yearMax, plotX1, plotX2);

----

An excerpt from my data:

Date Price

0131
1.0038

0201
1.0007

--

0131 is the end of January and 0201 is the beginning of February.

--

The map function is calculating the lowest number and the highest number, plotting them to the x range. However this creates a large space at the end of each month since the number jumps higher.

What would I need to do to solve for the missing space?

Thanks

1