class anychart.standalones.Table Improve this Doc
Extends: anychart.core.ui.Table
Methods Overview
| Specific settings | |
| colsCount() | Columns count. | 
| colsMaxWidth() | Column maximum width. | 
| colsMinWidth() | Column minimum width. | 
| colsWidth() | Column width. | 
| contents() | Table content. | 
| getCell() | Returns cell by its row and column number. | 
| getCol() | Returns column instance by its number. | 
| getRow() | Returns row instance by its number. | 
| rowsCount() | Rows count. | 
| rowsHeight() | Row height settings. | 
| rowsMaxHeight() | Rows maximum height. | 
| rowsMinHeight() | Rows minimum height. | 
| Advanced Text Settings | |
| fontVariant() | Font variant settings. | 
| letterSpacing() | Letter spacing settings. | 
| lineHeight() | Line height settings. | 
| textIndent() | Text indent settings. | 
| textOverflow() | Text overflow settings. | 
| textWrap() | Text wrap settings. | 
| useHtml() | Text useHtml settings. | 
| Base Text Settings | |
| fontColor() | Font color settings. | 
| fontDecoration() | Font decoration settings. | 
| fontFamily() | Font family settings. | 
| fontOpacity() | Font opacity settings. | 
| fontSize() | Font size settings. | 
| fontStyle() | Font style settings. | 
| fontWeight() | Font weight settings. | 
| hAlign() | Horizontal align settings. | 
| textDirection() | Letter direction settings. | 
| vAlign() | Vertical align settings. | 
| Coloring | |
| border() | Border settings. | 
| cellBorder() | Cell border settings. | 
| cellFill() | Cell fill settings. | 
| rowEvenFill() | Row even fill settings. | 
| rowOddFill() | Row odd fill settings. | 
| Events | |
| disablePointerEvents() | Disable pointer events settings. | 
| listen() | Adds an event listener. | 
| listenOnce() | Adds a single time event listener. | 
| removeAllListeners() | Removes all listeners. | 
| unlisten() | Removes the listener. | 
| unlistenByKey() | Removes the listener by the key. | 
| Export | |
| print() | Prints all elements. | 
| saveAsJpg() | Saves into JPEG file. | 
| saveAsPdf() | Saves into PDF file. | 
| saveAsPng() | Saves into PNG file. | 
| saveAsSvg() | Saves into SVG file. | 
| toSvg() | Returns SVG string. | 
| Interactivity | |
| enabled() | Element state (enabled or disabled). | 
| selectable() | Text selectable option. | 
| Size and Position | |
| bottom() | Bottom bound setting. | 
| bounds() | Bounds settings. | 
| cellPadding() | Cell padding settings. | 
| getPixelBounds() | Returns pixel bounds. | 
| height() | Height setting. | 
| left() | Left bound setting. | 
| maxHeight() | Maximum height. | 
| maxWidth() | Maximum width. | 
| minHeight() | Minimum height. | 
| minWidth() | Minimum width. | 
| right() | Right bound setting. | 
| top() | Top bound setting. | 
| width() | Width setting. | 
| zIndex() | Z-index of the element. | 
| Miscellaneous | |
| draw() | Draws the table. | 
| saveAsCsv() | Saves table data as CSV. | 
| saveAsXlsx() | Saves table data as an Excel document. | 
| toCsv() | Returns CSV string with series data. | 
Methods Description
border
Returns:
anychart.core.ui.table.Border - Current border settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke settings. | |
| thickness | number | 1 | Line thickness. | 
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
bottom
Returns:
number | string | undefined - Current element's bottom bound setting.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Bottom bound setting for the element. | 
Returns:
anychart.standalones.Table - Returns self for method chaining.Try it:
bounds
Returns:
anychart.core.utils.Bounds - Current bounds of the element.Params:
| Name | Type | Description | 
|---|---|---|
| value | anychart.utils.RectObj | anychart.math.Rect | anychart.core.utils.Bounds | Bounds of element. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| x | number | string | null | X-coordinate. | 
| y | number | string | null | Y-coordinate. | 
| width | number | string | null | Width. | 
| height | number | string | null | Height. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
cellBorder
Returns:
anychart.graphics.vector.Stroke - Current stroke settings.Note: lineJoin settings not working here.
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| strokeOrFill | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null | Fill settings or stroke settings. | |
| thickness | number | 1 | Line thickness. | 
| dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
| lineJoin | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
| lineCap | anychart.graphics.vector.StrokeLineCap | Line cap style. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
cellFill
Returns:
anychart.graphics.vector.Fill - Current fill color.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Fill | null | Color as an object or a string. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| color | string | Color as a string. | 
| opacity | number | Color opacity. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. | 
| angle | number | Gradient angle. | 
| mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. | 
| opacity | number | Gradient opacity. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. | 
| cx | number | X ratio of center radial gradient. | 
| cy | number | Y ratio of center radial gradient. | 
| mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. | 
| opacity | number | Opacity of the gradient. | 
| fx | number | X ratio of focal point. | 
| fy | number | Y ratio of focal point. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| imageSettings | anychart.graphics.vector.Fill | Object with settings. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
cellPadding
Returns:
anychart.core.ui.table.Padding - Current cell padding settings.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| value | null | Array.<(number|string)> | Object | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.// all paddings 15px
table.cellPadding(15);
// all paddings 15px
table.cellPadding('15px');
// top and bottom 5px, right and left 15px
table.cellPadding(anychart.utils.padding(5,15));Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| value1 | string | number | Top or top-bottom space. | 
| value2 | string | number | Right or right-left space. | 
| value3 | string | number | Bottom space. | 
| value4 | string | number | Left space. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.// 1) top and bottom 10px, left and right 15px table.cellPadding(10, '15px'); // 2) top 10px, left and right 15px, bottom 5px table.cellPadding(10, '15px', 5); // 3) top 10px, right 15px, bottom 5px, left 12px table.cellPadding(10, '15px', '5px', 12);
Try it:
colsCount
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | 4 | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
colsMaxWidth
Returns:
string | number | null - Current column width maximum settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | string | number | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
colsMinWidth
Returns:
string | number | null - Current column width minimum settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | string | number | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
colsWidth
Returns:
string | number | null - Current column width settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | string | number | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
contents
Returns:
Array.<Array.<(anychart.core.VisualBase)>> - Current table content.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| tableValues | Array.<Array.<(anychart.core.VisualBase|string|number|undefined)>> | Values to set. | |
| demergeCells | boolean | false | Pass true to demerge all cells. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
disablePointerEvents
Returns:
boolean - If pointer events are disabled.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | boolean | false | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.draw
enabled
Returns:
boolean - The current element state.Try it:
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | boolean | true | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.if (!element.enabled()) element.enabled(true);
Try it:
fontColor
Returns:
string - The current font color.Params:
| Name | Type | Description | 
|---|---|---|
| value | string | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontDecoration
Returns:
anychart.graphics.vector.Text.Decoration | string - The current font decoration.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.Decoration | string | anychart.graphics.vector.Text.Decoration#NONE | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontFamily
Returns:
string - The current font family.Params:
| Name | Type | Description | 
|---|---|---|
| value | string | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontOpacity
Returns:
number - The current font opacity.Params:
| Name | Type | Description | 
|---|---|---|
| value | number | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontSize
Returns:
string | number - Current font size.Params:
| Name | Type | Description | 
|---|---|---|
| value | string | number | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontStyle
Returns:
anychart.graphics.vector.Text.FontStyle | string - The current font style.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.FontStyle | string | anychart.graphics.vector.Text.FontStyle#NORMAL | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontVariant
Returns:
anychart.graphics.vector.Text.FontVariant | string - The current font variant.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.FontVariant | string | anychart.graphics.vector.Text.FontVariant#NORMAL | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
fontWeight
Returns:
string | number - The current font weight.Params:
| Name | Type | Description | 
|---|---|---|
| value | string | number | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
getCell
Params:
| Name | Type | Description | 
|---|---|---|
| row | number | Row index. | 
| col | number | Column index. | 
Returns:
anychart.core.ui.table.Cell - Self instance for method chaining.Try it:
getCol
Params:
| Name | Type | Description | 
|---|---|---|
| col | number | A column by number | 
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
getPixelBounds
Returns:
anychart.math.Rect - Pixel bounds of the element.getRow
Params:
| Name | Type | Description | 
|---|---|---|
| row | number | A row by number. | 
Returns:
anychart.core.ui.table.Row - Self instance for method chaining.Try it:
hAlign
Returns:
anychart.graphics.vector.Text.HAlign | string - The current text horizontal align.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.HAlign | string | anychart.graphics.vector.Text.HAlign#START | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
height
Returns:
number | string | undefined - Current element's height setting.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Height setting for the element. | 
Returns:
anychart.standalones.Table - Returns self for method chaining.Try it:
left
Returns:
number | string | undefined - Current element's left bound setting.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Left bound setting for the element. | 
Returns:
anychart.standalones.Table - Returns self for method chaining.Try it:
letterSpacing
Returns:
string | number - The current letter spacing.Params:
| Name | Type | Description | 
|---|---|---|
| value | string | number | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
lineHeight
Returns:
string | number - The current text line height.Params:
| Name | Type | Description | 
|---|---|---|
| value | string | number | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
listen
Note Notice that if the existing listener is one-off (added using listenOnce), it will cease to be such after calling the listen() method.
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| type | string | The event type id. | |
| listener | function | Callback method. Function that looks like function(event){
   // event.actualTarget - actual event target
   // event.currentTarget - current event target
   // event.iterator - event iterator
   // event.originalEvent - original event
   // event.point - event point
   // event.pointIndex - event point index
}. | |
| useCapture | boolean | false | Whether to fire in capture phase. Learn more about capturing https://javascript.info/bubbling-and-capturing | 
| listenerScope | Object | Object in whose scope to call the listener. | 
Returns:
Object - Unique key for the listener.Try it:
listenOnce
If the event handler being added already exists, listenOnce will do nothing.
Note In particular, if the handler is already registered using listen(), listenOnce() will not make it one-off. Similarly, if a one-off listener already exists, listenOnce will not change it (it wil remain one-off).
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| type | string | The event type id. | |
| listener | function | Callback method. | |
| useCapture | boolean | false | Whether to fire in capture phase. Learn more about capturing https://javascript.info/bubbling-and-capturing | 
| listenerScope | Object | Object in whose scope to call the listener. | 
Returns:
Object - Unique key for the listener.Try it:
maxHeight
Returns:
number | string | null - Current element's maximum height.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
maxWidth
Returns:
number | string | null - Current element's maximum width.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
minHeight
Returns:
number | string | null - Current element's minimum height.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
minWidth
Returns:
number | string | null - Current element's minimum width.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| paperSizeOrOptions | anychart.graphics.vector.PaperSize | Object | Paper size or object with options. | |
| landscape | boolean | false | Flag of landscape. | 
Try it:
removeAllListeners
Params:
| Name | Type | Description | 
|---|---|---|
| type | string | Type of event to remove, default is to remove all types. | 
Returns:
number - Number of listeners removed.Try it:
right
Returns:
number | string | undefined - Current element's right bound setting.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Right bound setting for the element. | 
Returns:
anychart.standalones.Table - Returns self for method chaining.Try it:
rowEvenFill
Returns:
anychart.graphics.vector.Fill - Current fill color.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Fill | null | Color as an object or a string. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| color | string | Color as a string. | 
| opacity | number | Color opacity. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. | 
| angle | number | Gradient angle. | 
| mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. | 
| opacity | number | Gradient opacity. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. | 
| cx | number | X ratio of center radial gradient. | 
| cy | number | Y ratio of center radial gradient. | 
| mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. | 
| opacity | number | Opacity of the gradient. | 
| fx | number | X ratio of focal point. | 
| fy | number | Y ratio of focal point. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| imageSettings | anychart.graphics.vector.Fill | Object with settings. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
rowOddFill
Returns:
anychart.graphics.vector.Fill - Current fill color.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Fill | null | Color as an object or a string. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| color | string | Color as a string. | 
| opacity | number | Color opacity. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. | 
| angle | number | Gradient angle. | 
| mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. | 
| opacity | number | Gradient opacity. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. | 
| cx | number | X ratio of center radial gradient. | 
| cy | number | Y ratio of center radial gradient. | 
| mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. | 
| opacity | number | Opacity of the gradient. | 
| fx | number | X ratio of focal point. | 
| fy | number | Y ratio of focal point. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| imageSettings | anychart.graphics.vector.Fill | Object with settings. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
rowsCount
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | 5 | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
rowsHeight
Returns:
string | number | null - Current row height settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | string | number | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
rowsMaxHeight
Returns:
string | number | null - Current row height maximum settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | string | number | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
rowsMinHeight
Returns:
string | number | null - Current row height minimum settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | string | number | null | null | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
saveAsCsv
Params:
| Name | Type | Description | 
|---|---|---|
| csvSettings | Object.<string, (string|boolean|undefined)> | CSV settings. | 
| filename | string | File name to save. | 
Try it:
saveAsJpg
Params:
| Name | Type | Description | 
|---|---|---|
| width | number | Image width. | 
| height | number | Image height. | 
| quality | number | Image quality in ratio 0-1. | 
| forceTransparentWhite | boolean | Force transparent to white or not. | 
Try it:
saveAsPdf
Params:
| Name | Type | Description | 
|---|---|---|
| paperSize | string | Any paper format like 'a0', 'tabloid', 'b4', etc. | 
| landscape | boolean | Define, is landscape. | 
| x | number | Offset X. | 
| y | number | Offset Y. | 
Try it:
saveAsPng
Params:
| Name | Type | Description | 
|---|---|---|
| width | number | Image width. | 
| height | number | Image height. | 
| quality | number | Image quality in ratio 0-1. | 
Try it:
saveAsSvg
Params:
| Name | Type | Description | 
|---|---|---|
| paperSize | string | Paper Size. | 
| landscape | boolean | Landscape. | 
Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| width | number | Image width. | 
| height | number | Image height. | 
Try it:
saveAsXlsx
Params:
| Name | Type | Description | 
|---|---|---|
| filename | string | File name to save. | 
Try it:
selectable
Returns:
boolean - The current text selectable option.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | boolean | false | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
textDirection
Returns:
anychart.graphics.vector.Text.Direction | string - Current text direction.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.Direction | string | anychart.graphics.vector.Text.Direction#LTR | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
textIndent
Returns:
number - The current text indent.Params:
| Name | Type | Description | 
|---|---|---|
| value | number | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
textOverflow
Returns:
anychart.graphics.vector.Text.TextOverflow | string - The current text overflow settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.TextOverflow | string | anychart.graphics.vector.Text.TextOverflow#CLIP | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
textWrap
Returns:
anychart.graphics.vector.Text.TextWrap | string - Th current text wrap settings.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.TextWrap | string | anychart.graphics.vector.Text.TextWrap#BY_LETTER | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
toCsv
Params:
| Name | Type | Description | 
|---|---|---|
| csvSettings | Object.<string, (string|boolean|undefined)> | CSV settings. | 
Returns:
string - CSV string.Try it:
toSvg
Params:
| Name | Type | Description | 
|---|---|---|
| paperSize | string | Paper Size. | 
| landscape | boolean | Landscape. | 
Returns:
string - SVG string or empty string.Try it:
Params:
| Name | Type | Description | 
|---|---|---|
| width | number | Paper Size or width. | 
| height | number | Landscape or height. | 
Returns:
string - SVG string or empty string.Try it:
top
Returns:
number | string | undefined - Current element's top bound setting.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Top bound setting for the element. | 
Returns:
anychart.standalones.Table - Returns self for method chaining.Try it:
unlisten
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| type | string | The event type id. | |
| listener | function | Callback method. | |
| useCapture | boolean | false | Whether to fire in capture phase. Learn more about capturing https://javascript.info/bubbling-and-capturing | 
| listenerScope | Object | Object in whose scope to call the listener. | 
Returns:
boolean - Whether any listener was removed.Try it:
unlistenByKey
Params:
| Name | Type | Description | 
|---|---|---|
| key | Object | The key returned by listen() or listenOnce(). | 
Returns:
boolean - Whether any listener was removed.Try it:
useHtml
Returns:
boolean - The current value of useHTML flag.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | boolean | false | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
vAlign
Returns:
anychart.graphics.vector.Text.VAlign | string - The current text vertical align.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | anychart.graphics.vector.Text.VAlign | string | anychart.graphics.vector.Text.VAlign#TOP | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
width
Returns:
number | string | undefined - Current element's width setting.Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | string | null | null | Width setting for the element. | 
Returns:
anychart.standalones.Table - Returns self for method chaining.Try it:
zIndex
Returns:
number - The current zIndex.Try it:
Params:
| Name | Type | Default | Description | 
|---|---|---|---|
| value | number | 0 | Value to set. | 
Returns:
anychart.standalones.Table - Self instance for method chaining.Try it:
