Chart positioning and data pulling refactor