method Graph.Import ([Source as Variant], [Options as Variant])
Imports the control's data from a CSV format.

TypeDescription
Source as Variant The Source parameter may be one of the following:
  • A String expression that indicates the path to a file to be loaded or the content itself (If the expression points to a file, the file's content is loaded) 
  • a Safe Array one-dimension or two dimensional to be loaded. If the Source parameter points to a one-dimension safe array, it indicates the rows to be loaded. If the Source parameter refers a two-dimension safe array, the first dimension indicates the rows, while the second indicates the column. If the Options parameter includes the word "reverse", the first dimension indicates the columns, while the second indicates the rows of data. 
Options as Variant A String expression that specifies different options to be used when loading data using the Import method as explained bellow.
ReturnDescription
VariantReserved for future use only.
The Import method loads CSV files / CSV content or data from a safe-array as explained:

The Data property of the Serie object, defines the list of column-names or column-indexes separated by comma within the control's data, such as "AAPL (open),AAPL (high),AAPL (low),AAPL (close)" or "1,2,3,4".

Here's a few samples of using Import method with arrays, using the /COM version:

Here's a few samples of using Import method with arrays, using the /NET version:

The control can load data using one of the following methods:

The DataSample property gives a sample of the data being loaded. 

If the Source parameter points to a string, the Options parameter indicates a list of options separated by space character ( or \r, \n or \r\n newline delimiters ) as listed option=value, where the option and the value could be:

For instance, if the Options parameter is "hdr=0 eof=';'", it indicates that the data in the Source contains no header information, and the fields inside the data are separated by a ; character. If the Options parameter is "eof=';' str=`'`" it indicates that the separator of the fields in the data is ; character while the ' character delimits the strings inside the data.

If the Source parameter points to a safe array ( two-dimensional ), the Options parameter may include the following word: