Added export pdf and fixed chart averages