parsing info for the lines and bars chart