working bar graph with reading from .txt