Dashboard shows only last 10 days of statistics

I wanted to see last 30 days of statistics, but I can only see the last 10 days, regardless of the sensor.

Could you tell me where should I adjust the setting to show statistics for more days?

Thanks

That is not statistics. That is state history which is set to 10 days by default. It is this setting: https://www.home-assistant.io/integrations/recorder/#purge_keep_days it is not recommended to increase this too much. 30 days might be ok depending on your hardware.

Only long term statistics are not deleted. The sensor must have a state_class of measurement and a device class for these statistics to be collected.

I have PI4 with Class 2 128GB SD using it for storage. Will it greatly affect the performance if I put 60 days to keep?

What are better solutions to keep data for 6 months or more?