Creating graphs for custom scripts