Index: src/Utils/MiscUI/MyGraph.cpp
===================================================================
--- src/Utils/MiscUI/MyGraph.cpp	(revision 14106)
+++ src/Utils/MiscUI/MyGraph.cpp	(working copy)
@@ -1262,6 +1262,13 @@
 		}
 	}
 
+	// Create font for labels.
+	CFont fontLabels;
+	int pointFontHeight = max(m_rcGraph.Height() / Y_AXIS_LABEL_DIVISOR, MIN_FONT_SIZE);
+	VERIFY(fontLabels.CreatePointFont(pointFontHeight, _T("Arial"), &dc));
+	CFont* pFontOld = dc.SelectObject(&fontLabels);
+	ASSERT_VALID(pFontOld);
+
 	// Draw each pie.
 	int nPie(0);
 	int nRadius((int) (nSeriesSpace * INTERSERIES_PERCENT_USED / 2.0));
@@ -1347,6 +1354,15 @@
 			++nPie;
 		}
 	}
+
+	// Draw X axis title after we know how many pies we actually have
+	CSize sizXLabel(dc.GetTextExtent(m_sXAxisLabel));
+	int nTotalSpaceOfPies = nSeriesSpace * nPie - (nSeriesSpace - nRadius*2);
+	VERIFY(dc.TextOut(m_ptOrigin.x + GAP_PIXELS + (nTotalSpaceOfPies - sizXLabel.cx)/2,
+		m_nYAxisHeight/2 + nRadius + GAP_PIXELS*2 + sizXLabel.cy, m_sXAxisLabel));
+
+	VERIFY(dc.SelectObject(pFontOld));
+	fontLabels.DeleteObject();
 }
 
 // Convert degrees to x and y coords.
