Converting a time series TGraph plot into TH1F hist

Did you try searching the forum?
You can find, for example: