I would like to sort my x-axis by the first of every month

Hi everyone,

I'm trying to organise my chart into showing either the 1st of each month or just the month.
Currently this is how it looks but the table above which I am getting the data from have been sorted into the 1st of each month(Sorry, can't show due to data protection). The table component seems to have more functionality in changing the date column but I can't see anything similar in the chart component.

Hi @Guled

Thanks for reaching out!

The chart component has some tick formatting in the Interaction section, but you should be able to use Javascript to group & format your dates for displaying exactly how you want in the chart.

For example, you could group & sort your data by month using Javascript:

Original chart:

Formatted + Grouped by JS: