The price you see on the charts is the Last Traded Price (LTP). The price you see on the market depth is the weighted average price of last 30 minutes of trading, this is used by the exchanges to get the final closing price for the day. This price can be different than what you see on charts or as LTP at 3:30 PM.
Here’s how the weighted average price is calculated: How to determine closing price in F&O? - #2 by Karthik