boilerplate work for getting graphs to display