Page 1 of 1
Marks over the title
Posted: Wed May 28, 2014 6:26 am
by 15654539
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
Re: Marks over the title
Posted: Wed May 28, 2014 7:36 am
by Christopher
I'm afraid that link is giving me a "404 Not Found" error. Could you please repost it?
Re: Marks over the title
Posted: Wed May 28, 2014 1:08 pm
by 15654539
Re: Marks over the title
Posted: Wed May 28, 2014 2:05 pm
by Christopher
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;
}
Re: Marks over the title
Posted: Thu May 29, 2014 6:49 am
by 15654539
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
Re: Marks over the title
Posted: Thu May 29, 2014 7:27 am
by Christopher
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.