Bond angle distribution

Dear Sir or Madam,
How to output the bond angle distribution function in ovito or other software like the attached picture? Thanks!
Best regards
Liang

Bond angle distribution.png