ag-Charts Gallery: XY Histogram With Mean Aggregation

Here we bin the data by car engine size, but plot the average highway mpg in the y-axis, revealing the relationship between these two fields. We also plot the same data as a scatter series to illustrate the aggregation.