How to make pie chart or bar chart from data?

Hello! I have csv-data as response from data-source looks like
“columnname1”,“columnname2”
200,client1
300,client2
400,client3

And I want to make bar chart and pie chart from it. I have tried different visualizations but can not do anything with it to get a result. How can I construct these simple charts?