generate line chart or bar chart and so on with values