protected void Chart3_PrePaint(object sender, System.Web.UI.DataVisualization.Charting.ChartPaintEventArgs e)
        {
            if (e.ChartElement is System.Web.UI.DataVisualization.Charting.Series && ((System.Web.UI.DataVisualization.Charting.Series)e.ChartElement).Name == "Series1")
            {
                System.Web.UI.DataVisualization.Charting.Series        s  = e.Chart.Series[0];
                System.Web.UI.DataVisualization.Charting.ChartGraphics cg = e.ChartGraphics;

                // Highlight the maximum sales this year
                for (int i = 0; i < s.Points.Count; i++)
                {
                    string colour = StudentLogic.getCustomColour(float.Parse(s.Points[i].YValues[0].ToString()));

                    s.Points[i].Color = System.Drawing.ColorTranslator.FromHtml(colour);
                }
            }
        }
        protected void Chart1_PrePaint(object sender, System.Web.UI.DataVisualization.Charting.ChartPaintEventArgs e)
        {
            if (e.ChartElement is System.Web.UI.DataVisualization.Charting.Series && ((System.Web.UI.DataVisualization.Charting.Series)e.ChartElement).Name == "Series1")
            {
                System.Web.UI.DataVisualization.Charting.Series        s  = e.Chart.Series[0];
                System.Web.UI.DataVisualization.Charting.ChartGraphics cg = e.ChartGraphics;
                double max = s.Points.FindMaxByValue().YValues[0];

                // Highlight the maximum sales this year
                for (int i = 0; i < s.Points.Count; i++)
                {
                    string colour = StudentLogic.getColourForResult(float.Parse(s.Points[i].YValues[0].ToString()));
                    s.Points[i].Color = System.Drawing.ColorTranslator.FromHtml(colour);
                    if (s.Points[i].XValue.Equals(Session["courseID"].ToString()))
                    {
                    }
                }
            }
        }