Horizontally Align the elements within the legend

Hi,

I'm trying to align the elements inside the legend shown in the attachment, but until now, I just have been able to move the legend around the graphic area. In particular, I need the items to be left aligned.

Attachment: sample_e7d02292.zip

3 Replies 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team February 5, 2021 10:59 AM UTC

Hi Rodrigo, 

Greetings from Syncfusion. 

We have analyzed your query and we would like to let you know that setting of legend item alignment to Near. By default, Legend.ItemsAlignment becomes Near. Could you please ensure at your end whether you are setting Legend.ItemsAlignment to Far.  


this.chartControl1.Legend.ItemsAlignment = System.Drawing.StringAlignment.Far Near


Output
 

Regards, 
Yuvaraj. 


Marked as answer

RO Rodrigo February 8, 2021 11:39 PM UTC

Thanks a lot. It worked great!


YP Yuvaraj Palanisamy Syncfusion Team February 9, 2021 07:11 AM UTC

Hi Rodrigo,  
  
Most welcome. Please let us know if you need any further assistance.  
  
Regards,   
Yuvaraj.   


Loader.
Up arrow icon