I have a StackedColumn Chart. I would like to draw text at the X position of the Series centerpoint and a Y position near the top of the chart. I am having trouble figuring out where the Series XY position is.
The closest thing I have been able to achieve is shown below:
		
		
	
	
		
	
I achieved this by drawing the labels as follows:
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I must be missing something because as you can see, the labels are shifted.
Obviously I need to include something else like the Axis size or something like that? Any help would be appreciated.
	
		
			
		
		
	
				
			The closest thing I have been able to achieve is shown below:
I achieved this by drawing the labels as follows:
			
				C#:
			
		
		
		    startX = chartRect.Left + (float)(chartDailyBuildRateDisplay.ChartAreas[0].AxisX.ValueToPixelPosition(0));
    startY = chartRect.Top + 5;
    g.DrawRectangle(whitePen, startX, startY + 15, 120, 40);
    g.FillRectangle(steelBlueBrush, startX, startY + 15, 120, 40);
    g.DrawString(" Goal: " + LVDTGoal.ToString(), font, whiteBrush, startX, startY + 20);
    startX = chartRect.Left + (float)(chartDailyBuildRateDisplay.ChartAreas[0].AxisX.ValueToPixelPosition(1));
    g.DrawRectangle(whitePen, startX, startY + 15, 120, 40);
    g.FillRectangle(steelBlueBrush, startX, startY + 15, 120, 40);
    g.DrawString(" Goal: " + RVDTGoal.ToString(), font, whiteBrush, startX, startY + 20);
	I must be missing something because as you can see, the labels are shifted.
Obviously I need to include something else like the Axis size or something like that? Any help would be appreciated.