Marks over the title

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Marks over the title

Post by acastro » Wed May 28, 2014 6:26 am

In this chart http://193.145.251.126/pnp/files/QCzmnB ... tittle.ten
marks are over the tittle. If I set it clip=true the marks dissapear. There is any propertie to show the marks in this example but not over the title?

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Marks over the title

Post by Christopher » Wed May 28, 2014 7:36 am

wakeup wrote:In this chart http://193.145.251.126/pnp/files/QCzmnB ... tittle.ten
marks are over the tittle. If I set it clip=true the marks dissapear. There is any propertie to show the marks in this example but not over the title?
I'm afraid that link is giving me a "404 Not Found" error. Could you please repost it?
Best Regards,
Christopher Ireland / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Marks over the title

Post by acastro » Wed May 28, 2014 1:08 pm


Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Marks over the title

Post by Christopher » Wed May 28, 2014 2:05 pm

Okay, thanks. You could try:

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Import.Template.Load(@"D:\tmp\markstittle.ten");

      tChart1.Axes.Left.MaximumOffset = tChart1[0].Marks.ArrowLength;
    }
Best Regards,
Christopher Ireland / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Marks over the title

Post by acastro » Thu May 29, 2014 6:49 am

This runs if you know which mark is over the title, but if it is in the second serie you should check the maximum ArrowLength of all the series, but if in the example you hide the marks in the first series, you still have the offset because of the marks of series which are not over the title...

My question is... Is it possible to now programatically which serie has marks over the title? or if any serie is over the title?

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Marks over the title

Post by Christopher » Thu May 29, 2014 7:27 am

wakeup wrote:My question is... Is it possible to now programatically which serie has marks over the title? or if any serie is over the title?
It is possible, of course, but probably the most practical way to approach this is to set the Axes.Left.MaximumOffset every time a series point is close to the maximum value of the left axis.
Best Regards,
Christopher Ireland / 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

Post Reply