Change 'displayAverage' to 'averagePeriod' in bar graph options

[#46397093]

Now it accepts number defining average period instead of true / false.