Пример #1
0
        public void Draw(CairoContextEx cr, int width, int height, bool rtl)
        {
            double x = 0, y = 0;

            // Background
            cr.Color = new Cairo.Color (1, 1, 1);
            cr.Paint ();
            cr.Stroke ();

            cr.LineWidth = point_size;
            cr.Rectangle (x, y, area_w, area_h);
            cr.Clip ();
            DrawLines (cr, grid_x, grid_y);
            cr.ResetClip ();
            DrawLegend (cr, x + grid_offsetx, y + area_h + 0.06);
            DrawGrid (cr, grid_x, grid_y);

            DrawAxisDescription (cr, x + area_w + 0.01, 0.78, ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Time"));
            DrawAxisDescription (cr, 0, 0.03, ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Score"));
        }