graph » csv

csv

[ root » graph » csv ]

Allows you to either import data from an external CSV file (and a few other similar file types) or import data using a data string within the JSON code.



AttributeTypeDescription
columnsArray.<Number>In case of fixed width column format of the CSV data, specifies the dimensions for each column. Some csv files are formatted based on the idea of "fixed sized columns", not by the standard comma or semicolon "separator". So, the columns array holds the number of characters for each column so that the parser will be able to split each line in the correct way
Introduced in: v1.2
dataString
data-string
StringSets the CSV data directly embedded in the JSON as a string. However, new-line characters are not allowed in the definition of an attribute in JSON syntax, and therefore the row separator character will likely need also be overridden with the "row-separator" attribute if "data-string" is used in place of "url".
Introduced in: v1.2
horizontalLabels
horizontal-labels
BooleanSpecifies if the CSV data contains descriptive headers for each column as the first or second row (depending on title presence).
Introduced in: v1.2
keyvalFormat
keyval-format
BooleanSpecifies if the data is in a simple [v,v,...] format (false) or in [[k,v],[k,v],...] format (true)
Introduced in: v1.2
mirroredBooleanSpecifies if the CSV data should be processed in a mirrored way (per line instead of per column). Note the different format used for the data-string.
Introduced in: v1.2
rowSeparator
row-separator
StringSets the separator between the data rows when using a data-string instead of an external .csv file. The default value is "\r\n".
Introduced in: v1.2
separateScales
separate-scales
BooleanSpecifies whether or not each column in the CSV data should have its own scale on the chart.
Introduced in: v1.2
separatorStringSets the separator between the data cells, default is ",". Any single character can be used as a separator.
Introduced in: v1.2
smartScales
smart-scales
BooleanSmart-Scales will analyze the CSV data to determine if each column of data is of a different enough type of data to deserve a separate scale. If it is, smart-scales will assign the unique data columns to separate scales.
Introduced in: v1.2
stringValues
string-values
BooleanIf true, specifies if the data values are actually strings instead of numbers.
Introduced in: v1.2
titleBooleanSpecifies if the CSV data contains a descriptive title on the first line. If this attribute it not included, then the library looks at the data to decide if the first line is intended to be a title or not. If it thinks it is, the first line will become the title of the graph. If there is a title line in the CSV and "title":"true" is set, the first line will be the graph title, but if "title":"false" is specified, that first line will become a scale-label.
Introduced in: v1.2
urlStringSets the URL for the CSV data source.
Introduced in: v1.2
verticalLabels
vertical-labels
BooleanSpecifies if the CSV data contains descriptive headers for each row.
Introduced in: v1.2