Write commit chart to file

Change-Id: I5a4ee815ea967a53699c3d588eba509ea23a4f10