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

X Axis labels on two lines?

2 Answers 109 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Lisa
Top achievements
Rank 1
Lisa asked on 22 Jun 2011, 05:26 PM
Hi - I have a Horizontal Bar chart with labels for the X-Axis that I want to show on two lines, but I want to control where it breaks.  I've been playing with setting the width and having the text wrap, but it's not formating correctly.

The text I have is like "L1 N=234"  I want it to display as:
"L1
N=234"

I'm getting wrapping more like:
"L1 N =
234".

Is there a way to format this?

Thank you

Lisa

2 Answers, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 27 Jun 2011, 08:49 AM
Hello Lisa,

You can add new line when concatenating the two strings of the XAxis Label either by using "\n" or it's hexademically encoded value that can be set in XAML - "
".

Kind regards,
Evgenia
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
Lisa
Top achievements
Rank 1
answered on 27 Jun 2011, 04:46 PM
Thank you !
Tags
Chart
Asked by
Lisa
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Lisa
Top achievements
Rank 1
Share this question
or