Recent

Author Topic: How can I draw a circle or elipse in a TChart?  (Read 13495 times)

luflore

  • Newbie
  • Posts: 6
How can I draw a circle or elipse in a TChart?
« on: December 22, 2009, 09:08:55 am »
I dont know how to set the TChart to draw a Circle or a elipse...

sorry for my english.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: How can I draw a circle or elipse in a TChart?
« Reply #1 on: December 23, 2009, 02:18:02 pm »
Do you mean "Draw the chart as a circle" or "Draw a circle beside the chart"?
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

luflore

  • Newbie
  • Posts: 6
Re: How can I draw a circle or elipse in a TChart?
« Reply #2 on: December 23, 2009, 09:45:31 pm »
Draw a circle in the Tchart... I mean the TChart draw a circle or ellipse
« Last Edit: December 24, 2009, 08:46:43 am by luflore »

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: How can I draw a circle or elipse in a TChart?
« Reply #3 on: December 24, 2009, 09:44:04 am »
TChart objects have a Canvas property. Use it. For example:
Code: [Select]
PROCEDURE TForm1.Chart1Click(Sender: TObject);
BEGIN
  Chart1.Canvas.EllipseC (X, Y, RadiusX, RadiusY);
END;
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: How can I draw a circle or elipse in a TChart?
« Reply #4 on: December 24, 2009, 09:57:20 am »
Actually, it is much better idea to use TUserDrawnSeries for that.

 

TinyPortal © 2005-2018