Less detail in graph when time range grows

What would be an efficient way to have less detail in your graph when the time line the viewing period is larger.

this amount of sample display is ok

This is to much

These are just the results of a basic influx query