flag position, init statistic, init phpChart