//Draw the bar chart public override void AndroidDraw(SpriteBatch spritebatch, GraphicsDevice graphDevice) { if (Legend == null) { spritebatch.End(); Texture2D temp = BarChart.Legend(data, graphDevice, spritebatch); Legend = new Picture(temp, new Point(20, 800), new Point(temp.Width, temp.Height)); spritebatch.Begin(); } if (Graph == null) { spritebatch.End(); Texture2D temp = BarChart.Make2(data, graphDevice, spritebatch); Graph = new Picture(temp, new Point(20, 200), new Point(temp.Width, temp.Height)); spritebatch.Begin(); } Graph.draw(spritebatch, Offset); Legend.draw(spritebatch, Offset); }