explain how abar graph and a pictograph are used to compare data?