Daily mileage chart - a How-to
Details on how I created the daily mileage chart
IN THE PROJECTED ITINERARY page of this journal I posted a column (bar) chart showing the mileages I plan to cover each day. Another CycleBlazer posted a comment asking how I had done that. This entry amplifies and extends my response to the question.
My planning spreadsheet (a Google Sheets document, but the same thing can be done with Excel or Open Office, if you have those tools available) is set up with each row being a calendar day (riding or not), and one column as the day's planned mileage.
Heart | 0 | Comment | 0 | Link |
In the example data above, the yellow row is a rest day. It still shows up in the chart as a "gap", which is what I want, because I included the row in the data. If you omit days entirely the chart will not "fill in" missing dates and the rest day mileage gaps will not show.
The next step is to create a chart, using the daily plan as the data range. Column B will provide the data / labels for the horizontal axis, and column G is the data range that provides the mileage value for each day.
Google will take a guess as to what data you want to include in the chart, but it will probably guess wrong.
Heart | 0 | Comment | 0 | Link |
The first step in correcting the error is to change the Data Range. Choose all of the columns between where you have the date and where you have the mileage; in my example that will be columns B through G. (You can, of course, organize your planning columns in whatever way makes sense to you.) Choose all the rows that have your daily data, but do not include any rows that summarize them (as for example a Totals row that counts total days and riding days, and sums mileage for the trip as a whole).
Heart | 0 | Comment | 0 | Link |
My spreadsheet has daily rows from row 1 (headings) to row 87 (last day of riding), so the data range for my chart is B1:G87.
Heart | 0 | Comment | 0 | Link |
Note: including the row that has column labels in it (row 1 in my spreadsheet) enables Sheets to determine that these are the labels for potential data series. It will use those pieces of text as names in the subsequent steps.
Having set the data range, next set up the X-Axis. I chose "Calendar Day", which tells Sheets to use the values in that column as the markers to be spread along the X axis.
Heart | 0 | Comment | 0 | Link |
When you choose the X-axis values, the chart updates itself but is not finished yet.
Heart | 0 | Comment | 0 | Link |
Set the data (Y-axis) values by removing the ones you don't want from the "Series" area. I removed all series (including "Calendar Day") except for Planned Miles.
Heart | 0 | Comment | 0 | Link |
Heart | 0 | Comment | 0 | Link |
The last steps are to update the chart title and Y-axis labels. This is done using the "Customize" features in Google Charts.
Heart | 0 | Comment | 0 | Link |
Select the chart element you want to edit in the "Chart and Axis Titles" accordion panel and set / select the configuration you want for that element. The options may vary depending on which element you choose.
Heart | 0 | Comment | 0 | Link |
You can make additional tweaks and changes to the chart's appearance, to suit your tastes and needs. Determining how to do that is "left as an exercise for the reader", as many math texts say when presenting a theorem without its accompanying proof(s).
Your final chart may look something like this:
Heart | 0 | Comment | 0 | Link |
Rate this entry's writing | Heart | 1 |
Comment on this entry | Comment | 4 |
I appreciate your effort!
2 years ago
2 years ago
I hope that comes through. I've created my chart, but it shows up small/not readable. Yours is full size. What didn't I do? I took a screen shot, saved it to photos, and then posted it in my journal. But, it's too small.
2 years ago
When I copy the screen and paste it into Paint (I live in the Windows world) the original image is nearly the size or my monitor, so it still displays well when it gets scaled down as a CycleBlaze image.
2 years ago