Heatmap aggregation method

Hi everyone,

My heatmap consists of ~1.5 million cells => it means that each pixel is an aggregation of multiple values.
What aggregation method does Plotly.js use to determine the value of each pixel?
Is it possible to change the default aggregation method?

Thanks!