millionchart
فارسی

Tables reference

The 19 functions and 1 value of table: signature, effects, phase, cost and tested examples.

Tables drawn in a corner of the chart. A table is made with table.new, and table.cell writes its cells.

Functions#

table.cell#

table.cell(table, column, row, [text], [width], [height], [text_color], [h_align], [v_align], [text_size], [background])

Writes a cell of a table: its text and look.

table.clear#

table.clear([table], [from_column], [from_row], [to_column], [to_row])

Clears the cells of a block of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.delete#

table.delete([table])

Removes the object from the chart.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.merge_cells#

table.merge_cells([table], [from_column], [from_row], [to_column], [to_row])

Merges a block of cells of the table into one.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.new#

table.new(position, columns, rows, [background], [frame_color], [frame_width], [border_color], [border_width])

Makes a table of columns by rows in a corner of the chart. Border width (border_width), like the other border and frame arguments (border_color, frame_color, frame_width), is accepted but has no visual effect in E1.

table.set_background#

table.set_background([table], [background])

Changes the background of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_border_color#

table.set_border_color([table], [border_color])

Changes the border color of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_border_width#

table.set_border_width([table], [border_width])

Changes the border width of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_background#

table.set_cell_background([table], [column], [row], [background])

Changes the background of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_h_align#

table.set_cell_h_align([table], [column], [row], [h_align])

Changes the h align of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_height#

table.set_cell_height([table], [column], [row], [height])

Changes the height of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_text#

table.set_cell_text([table], [column], [row], [text])

Changes the text of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_text_color#

table.set_cell_text_color([table], [column], [row], [text_color])

Changes the text color of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_text_size#

table.set_cell_text_size([table], [column], [row], [text_size])

Changes the text size of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_v_align#

table.set_cell_v_align([table], [column], [row], [v_align])

Changes the v align of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_cell_width#

table.set_cell_width([table], [column], [row], [width])

Changes the width of one cell.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_frame_color#

table.set_frame_color([table], [frame_color])

Changes the frame color of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_frame_width#

table.set_frame_width([table], [frame_width])

Changes the frame width of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

table.set_position#

table.set_position([table], [position])

Changes the position of the table.

  • Effects: draws on the chart or writes an output.
  • Phase: every bar.
  • Cost: counts against the limits on drawn objects and outputs.

Values#

  • table.all