This is a migrated thread and some comments may be shown as answers.

Multi line chart title alignment

2 Answers 146 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
vipul saini
Top achievements
Rank 1
vipul saini asked on 27 Apr 2010, 02:42 PM
Hi,

I am facing a problem while setting a multi line title for chart control.
I have two line chart title and i set the alignment as :

(

radChart.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

AlignedPositions.Top;

 

)

By using this code snippet, the title is aligned top center. Now the problem is as the title is multiline, the first line
is aligned properly but the second line is not. It starts from where the first line starts besides that it contains less
text then the first line. Now i want to align the lines separately.

Please provide any solution as soon as possible.

Thanks in advance...

Vipul

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 30 Apr 2010, 09:28 AM
Hi vipul,

Please, add this line right after the one you have pasted:

radChart.ChartTitle.TextBlock.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Center;


Best regards,
Ves
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
vipul saini
Top achievements
Rank 1
answered on 04 May 2010, 08:27 AM
Hi Ves,

Thanks a lot... Its working fine now.

Regards,
vipul
Tags
Chart (Obsolete)
Asked by
vipul saini
Top achievements
Rank 1
Answers by
Ves
Telerik team
vipul saini
Top achievements
Rank 1
Share this question
or