Corrected scaling of horizontal line.
Corrected commeted out code from debugging.
Corrected horizontal line scaling issue with the first point.
Corrected numeric maxValue issue.