add aggregation to scatter plot