Use flot's built in formatting first.