Add statistic function: show the statistics in the raw data tab and plot.