BUG: Fixed segfaults, incorrect rendering.
Fixed segfaults in the new horizontal bar graph test. I also corrected places where the equality operator should have been used, allowing the chart to be rendered correctly. Also fixed the findNearestPoint method for horizontal bars (needed to actually use the internal variable). Change-Id: I6e31657006ef9374a343539d359e7ffdf5b7a93c