How to view fitting stats inside the canvas of a graph?

I am trying to fit a data using TF1 fit option in the TGraph class. I successfully fit the data also but I want to have the fitting data like chi^2, Value of all constants in the graph itself.
How should I do it?

gStyle->SetOptFit(1112);

Thank you so much…