Fix Y labels and graph position when all Y values are the same

With the help from another fork, I'd like to fix the bug afflicting the visualization when all the y values are all the same. Now the orizontal line is in the center of Y axis, before was at the top and not very visible. BTW, when all Y values are 0 the line is correctly at the bottom of the graph.