Converted graph rendering so it used float values instead of double values.