Recognition of bar chart and pie chart