Amazon interview question

Walk me through how to display a chart using this data