Creating a chart is not the problem. The problem is to retrieve the datas from the csv file to make a bar chart. say I have a sets of datas in a csv files like this:
And I would like to plot a bar chart using data's from the files. Do you know how can I do it?
Private Sub CreateBarChartData (cols As List, rows As List)
cols.Add(CreateColumn("", "Location", "string"))
cols.Add(CreateColumn("", "Volume", "number"))
cols.Add(CreateColumn("", "Expenses", "number"))
rows.Add(CreateRow(Array As Object("1", 34, 40)))
rows.Add(CreateRow(Array As Object("2", 17, 46)))
End Sub
Instead of keying it in the code, are there anyway to just link it up from the files? For example, the value in A1 in the file is 34, what should I write to just makes it automatically links it instead of keying in 34?
Although it has no connection to creating charts ... If you study it , It will demonstrate how to read your csv file to a list , then iterate thru that list to retrieve your data.
You can then reference that data in your chart statements instead of manually typing in the data.