Hi Adithya,
I saw the date, month, and year in the graph and I was thrilled with the result.
But when I actually compared with the query result I found that expenses have values for say July and August but there is no income then these values(jul,aug) are not reflected in the graph.
So although the query result is correct the graph is not showing all values since income is zero for those months. ( check image ).
https://drive.google.com/drive/folders/1fBxfdXfWvWy2ojbs7W2wciB2Ss02kslc?usp=share_link
I have also attached .php for your reference.
I hope to get the resolution for this issue, Sir.
Warm Regards
Giant