Defining week range in graphs

Hi
I’ve searched through the forums, documentation and some bug reports, but i am unable to find the definition of a week in the piwik API. More specifically, if i would have to replace the last week call using a date range, what would the interval be ? closest monday - 7 days? closest sunday - 7 days ? or even, today - 7 days ?

Edit : In case you were wondering, i need this for some custom graph charts with a range of days, thus using period = week and date = last1 doesn’t work

Thank you,
Raz

As far as I know a week in Piwik always is the week (monday to sunday) where the currently selected day falls in. So I guess you have to select the date range from last sunday - 7 days to last sunday to get data for the previous week.

thank you