Fixed issue #1610: Average values on statistics dialog graph

Shows a horizontal line with average value, on Bar Graph and Line Graph only

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>