why does my stats graph have a downward trend for today after I won four in a row?


The graph on your profile/home page will take time to update. The full stats page shows the uptick in rating.

I've noticed this for years; it isn't a bug. It is how the graph charts rating. It seems to "mark" the highest rating for the day - not the rating the day ended at. A candle-stick graph might be better-suited for that purpose; not the line graph stats page displays.
You can get around this by stopping for the day when at a higher point if it bothers you too much.
Dramatic example to illustrate the point:
Say you are playing rated bullet and begin at 1000 rating for the day. You fluctuate up and down and get as high as 1200, as low as 800 but end the day at 1100.
A candlestick graph would show all the ups and downs throughout the entire day; chess.com line graph would plot "1200" for the day since that is the highest point. However, chess.com current rating is clearly at 1100. This means that if the next day has a net gain of 50 rating points, then the chess.com line graph will display down 50. This is because it now charts "1150" as down from 1200. This is misleading though, that day actually was a gain from 1100 to 1150 for up 50.
Same numbers, different way of presenting the data.
chess.com uses candle-stick graphs for tactics/puzzles already - I'm not sure why this isn't a feature for games rating. Maybe line graphs just look cooler they thought?