Fixed issue when the chart would sometimes go outside of the view and modified the fps calculation code a bit.