[longomatch] Add team title to the pie charts



commit 1a4c838d13f0ae1d298850ed0009c005320ebc4c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Aug 6 22:03:49 2013 +0200

    Add team title to the pie charts

 LongoMatch.GUI/Gui/Component/Stats/Plotter.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/Stats/Plotter.cs b/LongoMatch.GUI/Gui/Component/Stats/Plotter.cs
index 4559696..43a9f14 100644
--- a/LongoMatch.GUI/Gui/Component/Stats/Plotter.cs
+++ b/LongoMatch.GUI/Gui/Component/Stats/Plotter.cs
@@ -116,6 +116,11 @@ namespace LongoMatch.Gui.Component.Stats
                        ps.InsideLabelPosition = 0.8;
                        ps.AngleSpan = 360;
                        ps.StartAngle = 0;
+                       if (team == Team.LOCAL) {
+                               ps.Title = HomeName;
+                       } else if (team == Team.VISITOR) {
+                               ps.Title = AwayName;
+                       }
             model.Series.Add(ps);
             return model;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]