Building a scatter diagram