LCD Horizontal bargraph like one black rectangle

lcd.setCursor(0,2);
if (VoltageIn >= 0.3125) lcd.write(255); else lcd.print(' ');

   ...
   ...

It works.
What you are asking is more complex, because you want a cursor.