History not showing in home assistant after upgrade to new version

Hi,
I have home assistant upgraded , history data is not showing while not connected to home assistant , it used to show all history . I can only see graphs while connected to home assistant via browser . Any hint how can i keep history data intact.

If you are not connected to HA, then you should not be able to see any data, because if you can then it is your browser that shows old data and opens up for views with data that are not the most recent one.

When connected you should see them all.
If that is not the case, then delete your browser cache and check HA logs for errors/warnings.
Also check that you are not running out of disk space on your HA installation.