Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want draw a circle in C# chart, and let x and y coordinate in the center of chart
Posted
Comments
dan!sh 7-Jan-16 7:30am    
Are you looking for doughnut type chart? Or do you want to draw over a existing chart?
Member George 7-Jan-16 7:33am    
existing chart, thank you

1 solution

You can handle the PostPaint event for the chart. Here, using e.Graphics.DrawEllipse method you can draw the circle at desired location.

I cant test this but IMHO half of the width and height of chart area will give you center coordinates relative to axes. You can then get the absolute coordinates using the Graphics object mentioned above.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900