ReadonlyautoReadonlycolumnsReadonlyidOptionalmetadataOptionalmodifiedProtectedversionFunctionChanges the ID of an existing column to a new ID, effectively renaming the column.
Highcharts.DataTable#changeColumnId
Id of the column to be changed.
New id of the column.
Returns true if successful, false if the column was not found.
FunctionReturns a clone of this table. The cloned table is completely independent of the original, and any changes made to the clone will not affect the original table.
Highcharts.DataTable#clone
OptionalskipColumns: booleanWhether to clone columns or not.
OptionaleventDetail: DataEventDetailCustom information for pending events.
Clone of this data table.
FunctionDeletes columns from the table.
Highcharts.DataTable#deleteColumns
OptionalcolumnIds: string[]Names of columns to delete. If no array is provided, all columns will be deleted.
OptionaleventDetail: DataEventDetailCustom information for pending events.
Returns the deleted columns, if found.
Deletes the row index references. This is useful when the original table is deleted, and the references are no longer needed. This table is then considered an original table or a table that has the same rows order as the original table.
FunctionDeletes rows in this table.
Highcharts.DataTable#deleteRows
OptionalrowIndex: number | number[]Index of the row where deletion should start, or an array of indices for deleting multiple rows. If not specified, all rows will be deleted.
OptionalrowCount: number = 1Number of rows to delete.
OptionaleventDetail: DataEventDetailCustom information for pending events.
Returns the deleted rows, if found.
FunctionFetches a single cell value.
Highcharts.DataTable#getCell
Column name of the cell to retrieve.
Row index of the cell to retrieve.
Returns the cell value or undefined.
FunctionFetches the given column by the canonical column name. This function is a simplified wrap of getColumns.
Highcharts.DataTable#getColumn
Name of the column to get.
OptionalasReference: booleanWhether to return the column as a readonly reference.
A copy of the column, or undefined if not found.
FunctionFetches all column IDs.
Highcharts.DataTable#getColumnIds
Returns all column IDs.
FunctiongetRetrieves all or the given columns. Simplified version of the full
DataTable.getColumns method, always returning by reference.
OptionalcolumnIds: string[]Column ids to retrieve.
OptionalasReference: booleanCollection of columns. If a requested column was not found, it is
undefined.
Takes the original row index and returns the local row index in the modified table for which this function is called.
Original row index to get the local row index for.
Returns the local row index or undefined if not found.
Returns the modified (clone) or the original data table if the modified one does not exist.
The modified (clone) or the original data table.
Takes the local row index and returns the index of the corresponding row in the original table.
Local row index to get the original row index for.
Returns the original row index or undefined if not found.
FunctionRetrieves the row at a given index. This function is a simplified wrap of getRows.
Highcharts.DataTable#getRow
Row index to retrieve. First row has index 0.
OptionalcolumnIds: string[]Column names in order to retrieve.
Returns the row values, or undefined if not found.
FunctionReturns the number of rows in this table.
Highcharts.DataTable#getRowCount
Number of rows in this table.
FunctionRetrieves the index of the first row matching a specific cell value.
Highcharts.DataTable#getRowIndexBy
Column to search in.
Cell value to search for. NaN and undefined are not supported.
OptionalrowIndexOffset: numberIndex offset to start searching.
Index of the first row matching the cell value.
FunctionRetrieves the row at a given index. This function is a simplified wrap of getRowObjects.
Highcharts.DataTable#getRowObject
Row index.
OptionalcolumnIds: string[]Column names and their order to retrieve.
Returns the row values, or undefined if not found.
FunctionFetches all or a number of rows as an object.
Highcharts.DataTable#getRowObjects
OptionalrowIndex: number = 0Index of the first row to fetch. Defaults to first row at index 0.
OptionalrowCount: number = ...Number of rows to fetch. Defaults to maximal number of rows.
OptionalcolumnIds: string[]Column names and their order to retrieve.
Returns retrieved rows.
FunctionFetches all or a number of rows as an array.
Highcharts.DataTable#getRows
OptionalrowIndex: number = 0Index of the first row to fetch. Defaults to first row at index 0.
OptionalrowCount: number = ...Number of rows to fetch. Defaults to maximal number of rows.
OptionalcolumnIds: string[]Column names and their order to retrieve.
Returns retrieved rows.
FunctionReturns the unique version tag of the current state of the table.
Highcharts.DataTable#getVersionTag
Unique version tag.
FunctionDetermines whether all specified column names exist in the table.
Highcharts.DataTable#hasColumns
Column names to check.
Returns true if all columns have been found, otherwise false.
FunctionChecks if any row in the specified column contains the given cell value.
Highcharts.DataTable#hasRowWith
Column to search in.
Cell value to search for. NaN and undefined are not supported.
True, if a row has been found, otherwise false.
FunctionRegisters a callback function to be executed when a specific event is emitted. To stop listening to the event, call the function returned by this method.
Highcharts.DataTable#on
Event type as a string.
Function to register for an event callback.
Function to unregister callback from the event.
FunctionSets the value of a specific cell identified by column ID and row index. If the column does not exist, it will be created. If the row index is beyond the current row count, the table will be expanded to accommodate the new cell.
Highcharts.DataTable#setCell
Column name to set.
Row index to set.
Cell value to set.
OptionaleventDetail: DataEventDetailCustom information for pending events.
Sets cell values for a column. Will insert a new column, if not found.
Column name to set.
Optionalcolumn: Column = []Values to set in the column.
OptionalrowIndex: number = 0Index of the first row to change. (Default: 0)
OptionaleventDetail: DataEventDetailCustom information for pending events.
FunctionReplaces or updates multiple columns in the table with new data. If a column does not exist, it will be created and added to the table.
Highcharts.DataTable#setColumns
Columns as a collection, where the keys are the column names.
OptionalrowIndex: numberIndex of the first row to change. Keep undefined to reset.
OptionaleventDetail: DataEventDetailCustom information for pending events.
OptionaltypeAsOriginal: booleanDetermines whether the original column retains its type when data
replaced. If true, the original column keeps its type. If not
(default), the original column will adopt the type of the replacement
column.
Assigns a new data modifier to the table.
This method does not modify the table directly. Instead, it sets the
.modified property of the table with a modified copy of this table,
as produced by the modifier.
Optionalmodifier: DataModifierModifier to set, or undefined to unset.
OptionaleventDetail: DataEventDetailCustom information for pending events.
Resolves to this table if successful, or rejects on failure.
Sets the original row indexes for the table. It is used to keep the reference to the original rows when modifying the table.
Original row indexes array.
Whether to omit the local row indexes calculation. Defaults to false.
FunctionSets cell values of a row. Will insert a new row, if no index was provided, or if the index is higher than the total number of table rows.
Note: This function is just a simplified wrap of Highcharts.DataTable#setRows.
Highcharts.DataTable#setRow
FunctionSets cell values for multiple rows. Will insert new rows, if no index was was provided, or if the index is higher than the total number of table rows.
Highcharts.DataTable#setRows
Row values to set.
OptionalrowIndex: number = ...Index of the first row to set. Leave undefined to add as new rows.
Optionalinsert: booleanWhether to insert the row at the given index, or to overwrite the row.
OptionaleventDetail: DataEventDetailCustom information for pending events.
Class to manage columns and rows in a table structure. It provides methods to add, remove, and manipulate columns and rows, as well as to retrieve data from specific cells.
Name
Highcharts.DataTable
Param: options
Options to initialize the new DataTable instance.