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

StackingBarSeries: not shown and overlapping

Hi,

When using StackingBarSeries, labels are overlapped and not sohwn whole. Is there any solution to fix this?

Thanks in advance,

Javier.



1 Reply

SP Saravana Pandian Murugan Syncfusion Team August 8, 2017 06:41 AM UTC

Hi Javier, 
  
Thanks for using Syncfusion products. 
  
You can achieve this requirement by using LabelPosition property of DataMarkerLabelStyle and DataMarkerPosition property of StackingBarSeries. Please find the code snippet below. 
  
Code Example: 
  
 
StackingBarSeries series1 = new StackingBarSeries(); 
  
series1.DataMarker.LabelStyle.LabelPosition = DataMarkerLabelPosition.Inner; 
  
series1.DataMarkerPosition = DataMarkerPosition.Bottom; 
  
chart.Series.Add(series1); 
  
  
StackingBarSeries series2 = new StackingBarSeries(); 
             
series2.DataMarker.LabelStyle.LabelPosition = DataMarkerLabelPosition.Center; 
  
chart.Series.Add(series2); 
  
  
We have attached sample for your reference which can be downloaded from the following location. 
  
  
Please check the attached sample and let us know if you need further assistance on this. 
  
Regards, 
Saravana Pandian M. 


Loader.
Up arrow icon