refactors to include a scale element across the visualization