refactor statewide graphs to use templates