Switch dimension from Year to Month to Quarter

Hello,

I have a simple query that gets the sum of daily transactions.

Is there a way to allow my end users to change the x axis of my line chart from Day to Month to Year and get these summations by the selected time.