Fixed issue #8770: Wrong labels in statiscs chart