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

NewLine on ChartSeriesItem

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 21 Apr 2009, 12:36 PM
Hi,
I have a text that is to long to fit, is it possible to render it on two lines?
ChartSeries s = new ChartSeries(); 
s.Type = ChartSeriesType.Bar; 
ChartSeriesItem item = new ChartSeriesItem(); 
item.Name = "This text is way to long to fit!"
chart1.Series.Add(s); 

I think I have read it somewhere but I cant find it now!

/Mattias

2 Answers, 1 is accepted

Sort by
0
Mattias
Top achievements
Rank 1
answered on 23 Apr 2009, 02:18 PM
Hi,
I have tried this but it's not working! :(
item.Name = "This text is way to \nlong to fit!";  


0
Steve
Telerik team
answered on 23 Apr 2009, 04:12 PM
Hi Mattias,

I guess this is what you're looking for: AutoTextWrap.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Mattias
Top achievements
Rank 1
Answers by
Mattias
Top achievements
Rank 1
Steve
Telerik team
Share this question
or