Labels is not aligned with data

Hi,

The labels looks like are off-position. Am i doing something wrong ? Attaching a sample with data.


notAligned.jpg


Attachment: notAligned_8ea97668.zip

1 Reply 1 reply marked as answer

SB Swetha Babu Syncfusion Team July 1, 2022 12:07 PM UTC

Hi Halit,


Greetings from Syncfusion.


When we set the valueType as DateTime, the interval gets calculated from the 12 hours of a day. But in the provided sample, the value is 5 hours and 30 minutes. So the label gets rendered based on that value. Please find the below screenshot for your reference.


To achieve your requirement, you can set the valueType as DateTimeCategory. Please find the below modified sample link for your reference.


Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/chart54410009


Code Snippet:


primaryXAxis: {

                valueType: 'DateTimeCategory',

              intervalType: "Days",

              labelFormat: "dd, MMM, yyyy / hh: mm: ss",

              labelPlacement: "onTicks"

            },


Screenshot:



Kindly, revert us if you have any concerns.


Regards,

Swetha


Marked as answer
Loader.
Up arrow icon