Columns are drawn centred on grid lines. How can they be right-aligned ?

I'm using DateTimeAxis for X and ColumnSeries (vertical for Y). Each column represents a period of time that ends on the grid line time eg. 6:00,
but the grid line representing 6:00 is drawn in the middle of the column. 

How can I shift the columns to draw right-aligned on the grid line, not centred ?


1 Reply 1 reply marked as answer

DP Dharanitharan Palanisamy Syncfusion Team April 26, 2021 07:55 AM UTC

Hi Gary, 
 
Greetings from the team at Syncfusion. We've looked into your request and discovered that this is the default behavior of charts with the DateTimeAxis. In your case, we recommend using DateTimeCategoryAxis or CategoryAxis, where the labelPlacement property can be used to make the column right-aligned and the grid line is not centered. Refer to the support document for more details. We have attached a sample and screenshot for your review, please use it as a guide and contact us if you need any additional assistance. 
 
Screenshot: 
 
 
Thanks, 
Dharanitharan. P 


Marked as answer
Loader.
Up arrow icon