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

Can you centre align the Chart Title

5 Answers 107 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christopher
Top achievements
Rank 1
Christopher asked on 15 May 2015, 01:20 PM

I am currently trying to set the position of the title on a TKChart, however, i can only set it to one of the four TKChartTitlePosition. 

There is a TKChartTitleStyle class, however, it is empty and simply extends a common base class and adds no further functionality.

Is there anyway to simply centre align the Chart Title?

Chris

5 Answers, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 18 May 2015, 12:18 PM
Hi Christopher,

Thank you for contacting us. 

Please, find my answer in your other support ticket.

Regards,
Adrian
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Fabrizio
Top achievements
Rank 1
answered on 30 Nov 2015, 11:18 AM

Hi,

i'm interested too in how to center chart title.

Is it possible?

 

Thanks, 

Fabrizio

0
Christopher
Top achievements
Rank 1
answered on 30 Nov 2015, 01:02 PM

The position property of TKChartTitleView is used to determine on which side of the chart the title should be displayed - left, right, top or bottom. If you need to align the title you should use its textAlignment property instead. Please consider the code snippet below:

chart.title().textAlignment = NSTextAlignment.Center

 

0
Fabrizio
Top achievements
Rank 1
answered on 30 Nov 2015, 02:06 PM
Thank you, Christopher
0
Adrian
Telerik team
answered on 01 Dec 2015, 03:52 PM
Hi, Fabrizio,

Indeed the way to center the chart's title is to set its textAlignment property, like Christopher pointed.
Christopher, thank you for the cooperation.

Regards,
Adrian
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Christopher
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Fabrizio
Top achievements
Rank 1
Christopher
Top achievements
Rank 1
Share this question
or