Histogram with Percentiles, Mode, Mean and Median

Hi,

I would like to create a Histogram with Percentiles, Mode, Mean and Median.
I used the forum thread below to create the histogram:

I tried to use the topic below to create the Percentiles, but it didn’t work, as shown in the image:

The correct value of the 50th percentile is 5.