X axis Chart labels

Hello , the X axis chart labels are not displaying correctly for a chart that has negative values.

How to I move the labels below the negative values?

The image of chart is attached.


Attachment: Screenshot_20210813_111551_a8730c53.zip

5 Replies 1 reply marked as answer

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team August 16, 2021 07:22 AM UTC

Hi Barry, 

Greetings from Syncfusion. 

Your requirement can be achieved by modifying the horizontal axis crosses value. This can be achieved through CrossesAt property available under PrimaryValueAxis of chart. Please find the code snippet below. 

Code Snippet: 

chart.PrimaryValueAxis.CrossesAt = -100.00; 

Kindly try the suggestion and let us know if this helps. 

Regards, 
Keerthi. 



MM Mark Meyer replied to Konduru Keerthi Konduru Ravichandra Raju August 16, 2021 12:46 PM UTC

Thanks for your reply, I would prefer if the graphs X axis remained at 0 and the labels were pushed down.

I have attached 2 images which detail my preference.


Attachment: IWouldPreferThis_30125816.zip


KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team August 17, 2021 10:31 AM UTC

Hi Barry, 

Your requirement can be achieved by modifying the label position of horizontal axis. This can be achieved through TickLabelPosition property available under PrimaryCategoryAxis of chart. Please find the code snippet below.  

Code Snippet:  

chart.PrimaryCategoryAxis.TickLabelPosition = ExcelTickLabelPosition.TickLabelPosition_Low; 

We have prepared a simple sample for your reference and the same can be downloaded from below link. 

Kindly try the suggestion and let us know if this helps. 

Regards, 
Keerthi. 


Marked as answer

MM Mark Meyer replied to Konduru Keerthi Konduru Ravichandra Raju August 17, 2021 12:00 PM UTC

Thank you!



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team August 17, 2021 12:11 PM UTC

Hi Berry, 

You are Welcome. Kindly let us know if you need any further assistance. 

Regards, 
Keerthi. 


Loader.
Up arrow icon