An example might be assigning the values "low" "medium", and "high" as formatted values to numeric cell values of 1, 2, and 3.
To add data rows after calling the constructor, you can call either again to reflect any changes.
Note: Google Charts does not perform any validation on datatables.
A visualization should describe in its documentation any custom properties that it supports.
See also: Query Data Table Syntax on a populated table, or a Java Script object containing data used to initialize the table.
The structure of the Java Script literal object is described here.
If this parameter is not supplied, a new, empty data table will be returned. All data in each column must have the same data type.
Each column has a descriptor that includes its data type, a label for that column (which might be displayed by a visualization), and an ID, which can be used to refer to a specific column (as an alternative to using column indexes). Visualizations can use these to support additional features; for example, the Table visualization uses custom properties to let you assign arbitrary class names or styles to individual cells. Cells can have a null value, or a value of the type specified by its column.
Cells optionally can take a "formatted" version of the data; this is a string version of the data, formatted for display by a visualization.
A visualization can (but is not required to) use the formatted version for display, but will always use the data itself for any sorting or calculations that it makes (such as determining where on a graph to place a point).
class and method definitions to enable autocompletion in your IDE (code editor). Most IDEs will index it automatically and provide autocompletion.
Note that this file might not always be up to date, so be sure to test your code. (optionally filtered to show specific values, rows, or columns), create a Data View.
Each column is assigned a data type, plus several optional properties including an ID, label, and pattern string.
In addition, you can assign custom properties (name/value pairs) to any cell, row, column, or the entire table.