class anychart.data.View Improve this Doc
View is a representation of raw data.
Note: Default View is a view with default mapping.
|concat()||Concatenates two views to make a derived view that contains rows from both views.|
|derive()||Creates a derived view, containing just the same data set and order as this view does.|
|filter()||Creates a derived view, containing only the rows that pass the filter.|
|getIterator()||Returns a new iterator for the current view.|
|getRowsCount()||Returns the number of the rows in the current view.|
|meta()||Getter for a metadata value.|
|row()||Gets a full row of the set by an index.|
|sort()||Creates a derived view that ensures sorting by a passed field.|
Creates a derived view, containing only the rows that pass the filter.
|fieldName||string||A field which value will be passed to a filter function.|
|func||function||A filter function that should accept a field value and return true if the row should be included into the resulting view.|
Creates a derived view that ensures sorting by a passed field.
|fieldName||string||A field name to make sort by.|
|comparatorOrOrder||anychart.enums.Sort | function||A sorting function that should accept two field values and return numeric result of the comparison or string value of anychart.enums.Sort enumeration except NONE. Defaults to anychart.enums.Sort.ASC.|