React on date change. If no data - show "no data" else show pie chart.
When opened check if TaskInfo list has changed since last open. If yes, then only get data from genAI and refresh otherwise no need.
3rd Point is working when I change the date. The pie chart shows data and if we change date of phone then we can see the previous chat because the current date has changed to the previous one.