Updated bar graph class.