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]
Keep Marks on the graph???
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
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!
Thanks!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jeff,
You could also clip the full chart area by doing something like this:
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 |
Instructions - How to post in this forum |