Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hourly data, showing only date on x-axis

Hi,

I have hourly data on a line chart, and I'm using calculated dimension to show only date on the x-axis.

=date(MyDateTime, 'dd/MM/yyyy')

This gives me hourly data without having timestamps on x-axis.

Is there any way to show only distinct dates on the x-axis, instead of having the same date repeat as many times as it fits in the chart?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

9 Replies
Anonymous
Not applicable
Author

Covert this timestamp to date in script itself and create a new field,

Then using new field will resolve your issue.

ashfaq_haseeb
Champion III
Champion III

Hi

write the below code in your backend.

date(floor(MyDateTime)) as NewMyDateTime

Use this field instead.

Regards

ASHFAQ

Not applicable
Author

Won't this give me datapoints only for each day instead of each hour? I want smooth line of hourly data, not straight lines just for each day. But I want the x-axis legend to only have dates instead of timestamps (hours).

Anonymous
Not applicable
Author

Can you upload some sample data....

Not applicable
Author

I hope this image clarifies what I'm trying to do

hourly-data-date-on-xaxis.png

ashfaq_haseeb
Champion III
Champion III

Hi,

Try my solution. It must work.

Or just share your sample app.

Regards

ASHFAQ

Anonymous
Not applicable
Author

PFA

Hope it helps

Not applicable
Author

Yes, this is what I'm looking for

I'm quessing the "overlay" trick is the only way to achieve this?

Anonymous
Not applicable
Author

Yes I think so