basics to draw bar chart with new data format