histogram for chi-squared