We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Displaying Axis Labels inside Bars

Thread ID:

Created:

Updated:

Platform:

Replies:

130842 Jun 7,2017 01:28 AM UTC Jun 8,2017 11:24 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
idispose
Asked On June 7, 2017 01:28 AM UTC

The labels on my Bar Chart are pretty long and I would like to display them with in the bar like so

|
|_________________________
| Label                                        |
|_________________________|
|
|-----------------------------
|label                               |
|-----------------------------
|________________________________

Is it possible to achieve this?

Saravana Pandian Murugan [Syncfusion]
Replied On June 7, 2017 03:27 PM UTC

Hi idispose, 
 
Thanks for using Syncfusion products. 
  
We have achieved your requirement by using LabelPosition of ChartAxisLabelStyle. Please download the sample from the following location. 
  
 
Please find the code snippet below. 
 
Code Example: 
 
 
<chart:SfChart.PrimaryAxis>  
    <chart:CategoryAxis TickPosition="Inside">  
       <chart:CategoryAxis.LabelStyle>  
          <chart:ChartAxisLabelStyle LabelsPosition="Inside"/>  
       </chart:CategoryAxis.LabelStyle>  
    </chart:CategoryAxis>  
</chart:SfChart.PrimaryAxis> 
 
 
Please refer the below user guide link for more details about axis label positioning and let us know if you need further assistance on this. 
  
  
Regards, 
Saravana Pandian M. 


idispose
Replied On June 8, 2017 01:22 AM UTC

Hi Saravana
Thanks. This helped and is exactly what I am looking for. 

Appreciate the quick response. 

Best
IDispose


Saravana Pandian Murugan [Syncfusion]
Replied On June 8, 2017 11:24 AM UTC

Hi IDispose,

Thanks for the update. We are glad to know that the given solution worked. Please let us know if you need further assistance on this.

Regards,
Saravana Pandian M.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;