Refactor side profile graph