CategoryAxis wrap text

Hi there,

I have a chart with RangeColumnSeries, the primary Axis is a CategoryAxis(vertical axis) the XBindingPath is a long text.(see attachment).

Is there a way to wrap the text?

Thanks in advance,
Nassos

Attachment: LongTextOnAxis_61f7b9fd.zip

3 Replies 1 reply marked as answer

RS Ramya Soundar Rajan Syncfusion Team August 28, 2020 01:34 PM UTC

Hi Nassos Reyzidis, 
 
Greetings from Syncfusion. 
 
We would like to let you know that your requirement has been achieved by using the MaxWidth and WrappedLabelAlignment properties of the ChartAxisLabelStyle as per in the below code snippet. 
 
  
    … 
 
    <chart:CategoryAxis> 
        <chart:CategoryAxis.LabelStyle > 
        <chart:ChartAxisLabelStyle MaxWidth="100" WrappedLabelAlignment="Start"/> 
    </chart:CategoryAxis.LabelStyle> 
 
   … 
 
 
 
 
Output: 
 
 
 
Regards, 
Ramya S 



NA NamCkiku October 28, 2021 09:03 AM UTC

iOS notworking  <chart:ChartAxisLabelStyle MaxWidth="100" WrappedLabelAlignment="Start"/



DD Devakumar Dhanapoosanam Syncfusion Team October 29, 2021 05:53 AM UTC

Hi NamCkiku, 
 
Query: iOS notworking  <chart:ChartAxisLabelStyle MaxWidth="100" WrappedLabelAlignment="Start"/> 
 
We would like to let you know that the reported issue in iOS has been fixed in our latest update. Could you please update SfChart latest version to resolve this issue in iOS. 
 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Devakumar D 


Marked as answer
Loader.
Up arrow icon