Keep Marks on the graph???

TeeChart for ActiveX, COM and ASP
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Keep Marks on the graph???

Post by Jeff » Mon Mar 27, 2006 2:38 pm

Hello,

I have my Marks set to be visble on my chart. Sometimes if the point that my Mark shows is near the edge of the chart...the Mark is cut off. In other words..... The Mark goes off the edge of the chart. How can I keep the Marks on the chart?

Here is a sample picture:

http://www.lifebreed.com/chart.jpg

Thanks![/url]

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Mar 27, 2006 2:42 pm

Hi Jeff,

Try using:

Code: Select all

    TChart1.Series(0).Marks.Clip = False
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Post by Jeff » Mon Mar 27, 2006 6:45 pm

Thanks...BUT.....I suppose I should have been a bit clearer. It appears that your code only keeps the Mark from being clipped on the graph itself. (I know I said graph)...but what I mean is that the Mark runs off of the actually chart control itself. How do I keep it from running off the chart control? I suspect I can't.

Thanks!

Jeff
Newbie
Newbie
Posts: 22
Joined: Fri Nov 15, 2002 12:00 am
Location: Virginia, United States

Post by Jeff » Mon Mar 27, 2006 7:34 pm

Duh! I just change the width of the right margin. What a day!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Mar 28, 2006 8:16 am

Hi Jeff,

You could also clip the full chart area by doing something like this:

Code: Select all

Private Sub TChart1_OnAfterDraw()
    Me.ScaleMode = vbPixels
    TChart1.Canvas.ClipRectangle 0, 0, TChart1.Width, TChart1.Height
End Sub
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply