Create line chart with date

Hi ,
I have timestamp field coming in data however would like to have one of the chart as line chart with date instead of date .
I tried truncating the timestamp to date but the chart is showing a straight line instead of showing the correct count .
FYI : Would like to create chart with Date and count data .

Thanks,
Divya

You want only the date and not the time?

yes only date

You can use a scripted field to truncate the timestamp to only show the date. Then you can only have that displayed.