two line chart title not aligned properly

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Captell
Newbie
Newbie
Posts: 65
Joined: Fri Sep 18, 2009 12:00 am

two line chart title not aligned properly

Post by Captell » Sat Nov 13, 2010 11:25 pm

If i create a two line centered chart title where one line is longer than the other the two lines don't center properly, see the example below.
14-11-2010 10-16-07.png
14-11-2010 10-16-07.png (26.75 KiB) Viewed 6636 times
Adrian Heald
Director
ITSM Reporting Services Pty Ltd
http://www.reportingservices.com

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: two line chart title not aligned properly

Post by Sandra » Mon Nov 15, 2010 9:22 am

Hello Adrian,

I couldn't reproduce your problem using last version of TeeChart.Net and next code:

Code: Select all

 private void InitializeChart()
        {
            Steema.TeeChart.Styles.Line series1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
            series1.FillSampleValues();
            tChart1.Header.Text = "My two lines \n title";
            tChart1.Header.TextAlign = StringAlignment.Center;
        }
Could you check, if previous code works for you? On the other hand, could you tell us what version of TeeChart are you using?

Thanks,
Best Regards,
Sandra Pazos / 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

Captell
Newbie
Newbie
Posts: 65
Joined: Fri Sep 18, 2009 12:00 am

Re: two line chart title not aligned properly

Post by Captell » Tue Dec 21, 2010 8:01 pm

I've just downloaded the latest release 4.1.2010.11300 and using your Feature demo from that release goto Welcome !\Chart styles\Standard\Bar\Negative stacked. It illustrates the issue.
22-12-2010 06-49-35.png
22-12-2010 06-49-35.png (157.38 KiB) Viewed 6658 times
Thanks.
Adrian Heald
Director
ITSM Reporting Services Pty Ltd
http://www.reportingservices.com

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: two line chart title not aligned properly

Post by Sandra » Wed Dec 22, 2010 10:07 am

Hello Captell,

I added your request in wish-list with number [TF02015333] to be considered inclusion it in next versions of TeeChart.Net. At the moment, you can use a solution I suggest previously, that modify alignment in the code.


Thanks,
Best Regards,
Sandra Pazos / 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

Captell
Newbie
Newbie
Posts: 65
Joined: Fri Sep 18, 2009 12:00 am

Re: two line chart title not aligned properly

Post by Captell » Wed Dec 22, 2010 11:41 pm

Thanks Sandra,
The problem with having to do it in the code is that my users create the titles using the properties editor.
Adrian.
Adrian Heald
Director
ITSM Reporting Services Pty Ltd
http://www.reportingservices.com

Post Reply