Hello,
All of the TeeChart Series types plot values, either of two (x,y) or three (x,y,z) dimensions - if I understand correctly, you are looking to draw diagrams rather than plot values, which while not the core function of TeeChart can actually be done.
The way is to draw directly onto TeeChart is by one of the Canvas Events; following is a small example to get you started:
Code: Select all
private void InitializeChart(TChart chart)
{
void Chart_AfterDraw(object sender, Graphics3D g)
{
var center = new Point(100, 100);
g.Brush.Color = Color.Blue;
g.Pen.Color = Color.Red;
var ellipseRect = Utils.FromLTRB(center.X - 50, center.Y - 50, center.X + 50, center.Y + 50);
g.Ellipse(ellipseRect);
var text = "AAAA";
g.Font.Color = Color.Yellow;
g.Font.Bold = true;
g.TextOut(center.X - (Utils.Round(g.TextWidth(text) / 2)), center.Y - (Utils.Round(g.TextHeight(text) / 2)), text);
var point = g.PointFromCircle(ellipseRect, 310);
g.Brush.Color = Color.Pink;
g.Pen.Visible = false;
g.Arrow(true, PointDouble.Round(point), new Point(300, 300), 5, 10, 0);
}
chart.Header.Visible = false;
chart.Axes.Visible = false;
chart.AfterDraw += Chart_AfterDraw;
}