Calculate scatterplot y axel dynamically.