To do this, you can precompute the bar statistics and use BARCHARTPARM to display them. This will give you the…