Scatter graph method definition