Implementing statistics graphs