scatter chart refactored