Remove semicolon form buildGraphic function