fix bug of on charts show when no aggregation metric