scatter plot refactoring started using data provider