Fix expected distance chart labelling.
This commit is contained in:
		@@ -159,7 +159,7 @@ class Gpx2Html(object):
 | 
			
		||||
            accumulated_distance[year] = acc_year_dist
 | 
			
		||||
 | 
			
		||||
        plot_line_chart(accumulated_distance, MONTH_LABELS,
 | 
			
		||||
                        "Accumulated Distance", 'Month', 'km',
 | 
			
		||||
                        "Accumulated Distance", 'Month', 'km/year',
 | 
			
		||||
                        os.path.join(self.outfolder, 'acc_dist.png'))
 | 
			
		||||
 | 
			
		||||
        # Expected year distance:
 | 
			
		||||
@@ -178,9 +178,9 @@ class Gpx2Html(object):
 | 
			
		||||
            exp_year_dist.append(expexted_distance)
 | 
			
		||||
        xyz = dict()
 | 
			
		||||
        xyz['driven'] = acc_year_dist
 | 
			
		||||
        xyz['expected'] = exp_year_dist
 | 
			
		||||
        xyz['expected @ year end'] = exp_year_dist
 | 
			
		||||
        plot_line_chart(xyz, MONTH_LABELS[:now.month], "Distance", 'Month',
 | 
			
		||||
                        'km', os.path.join(self.outfolder, 'exp_dist.png'))
 | 
			
		||||
                        'km/year', os.path.join(self.outfolder, 'exp_dist.png'))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        end_date = datetime.datetime.today()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user