To be able to get historical data, you have to have a visualisation code setup in your product code configurations.
I would suggest using the line graph visualisation for this
Remember to code configuration as a js file.
You then have to click on the 'View device' button next to your device on your Cloud Dashbaord.
The device view page will open in a new tab. You can then select the start date and end data of the data that you want to view, and click on the filter button.
The graph will be updated with the data that you want.