class anychart.data.TableComputer Improve this Doc
Stock table computer constructor.
|addOutputField()||Adds output field to the computer with the given name.|
|getFieldIndex()||Returns field index by the field name.|
|setCalculationFunction()||Sets function that is executed for each row of the table storage.|
|setContext()||Sets computer context. If not set - defaults to Window.|
|setStartFunction()||Sets function that will be executed on each calculation start.|
Adds output field to the computer with the given name.
The field is available in the computing functions by this name. Returns an index that can be used to map this field in the table. You can also pass a uid for this field - in this case the field will be available for mapping by this name also.
|name||string||Name of field.|
|uid||string||Unique identifier for field.|
Returns:number - Returns a negative number of column. This number of the column can use for data mapping.
Sets function that is executed for each row of the table storage.
The context is set by setContext method is passed to this function both as this and as the second parameter.
|value||function||Function that looks like
Sets function that will be executed on each calculation start.
The context is set by the setContext method is passed to this function both as this and as the first parameter. This function is performed before each cycle calculation - before calculation of the full data range and the selected data grouping.
|function||function||Function that looks like