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. Image for the cookie policy date
close icon

Displaying Axis Labels inside Bars

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?

3 Replies

SP Saravana Pandian Murugan Syncfusion Team 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. 



ID idispose 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



SP Saravana Pandian Murugan Syncfusion Team 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.


Loader.
Live Chat Icon For mobile
Up arrow icon