Sull'asse verticale è rappresentata la frequenza percentuale unitaria (o densità)
On the y axis, the unitary percentage frequency (or density) is represented
(that is the percentage frequencies divided by the amplitude of each interval).
You can round the mean (taking into account the width of the intervals).

Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP

// I: estremi degli intervalli, P: frequenze
I=[0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50]
P=[ 46, 29, 22, 11, 7, 7,  1,  1,  0,  1 ]; NP=P.length

mean = 9.795

Tot=0; for(i=0;i<NP;i=i+1) {Tot=Tot+P[i]}; for(i=0;i<NP;i=i+1) {P[i]=P[i]/Tot/(I[i+1]-I[i])}
LLx=[]; j=0; for(i=1;i<=NP;i=i+1) { LLx[j]=I[i-1]; LLx[j+1]=I[i-1]; LLx[j+2]=I[i]; LLx[j+3]=I[i]; j=j+4 }
LLy=[]; j=0; for(i=1;i<=NP;i=i+1) { LLy[j]=0; LLy[j+1]=P[i-1]; LLy[j+2]=P[i-1]; LLy[j+3]=0; j=j+4 }

aX = -5; bX = 55; aY = 0; bY = 0.1
Dx = 5; Dy = 0.01


function f(x) { y = 1/0; return y }
...
function f(x) { y = 1/mean*Math.exp(-x/mean); return y }

C1="green"
Q1x=[mean]; Q1y=[0]
L1x=LLx; L1y=LLy
...
AX=BX=AY=BY=""
BY = "Tot="+Tot
AY = "mean ~ "+mean