How to extract(export) tracked changes into a chart?

I hope that the chart could appear like this: (in the picture)
Could anyone provide a macro script ?
Your help will be highly appreciated .