Skip to main content

Table View

Table View is the primary view for working with tables, resembling Excel. It contains:

  • A grid viewer that visually represents the underlying table.
  • Additional viewers that you can add to visualize data.

The Table View also has these UI elements associated with it:

  • Toolbox: To the left of the Table View, it has several panels. For example, Viewers lets you add viewers, while Search lets you search values within a table.
  • Top Menu with applicable commands. Depending on your dataset, you may see context-specific menus like Chem or Bio.
  • Status bar: The central section shows the table's name, row/column counts, as well as filtered and selected row counts.

  • To switch between Table Views, use the Sidebar, Toolbox, or the Table Manager (Alt + T).

  • To jump to a specific column, use the Column Manager (Status Bar > Columns:).

  • To jump to a specific row, press Ctrl+G, which opens the Go to dialog.

Table View layout

The relative positions of viewers in a Table View, along with viewer properties, create a layout. In Datagrok, layouts are independent from the underlying tables. This separation lets you save layouts as a standalone entity and apply them to multiple datasets.

To add a viewer to the Table View, on the Toolbox click the icon for the viewer you want to add. Alternatively, at the top of the screen, click the Add viewer () icon and select the viewer you want.

You can adjust the position and size of any viewer within the Table View. To resize a viewer, drag its border. To reposition it, start dragging the viewer's header. As you drag, drop zone indicators appear. Continue holding the mouse and move the cursor to one of these indicators. The target drop area is highlighted in grey. Release the mouse button to dock the viewer in its new location.

note

Developers, you can dock viewers programmatically. See the dockManager property of the View class.

Viewer properties

Each viewer has a set of properties associated with it. These properties define the viewer's appearance or data. For example, you can hide or color-code grid columns or change the background color in other viewers.

To access a viewer's settings, do any of the following:

  • Click the Gear () icon on top of the viewer.
  • Press F4 when the viewer has focus.
  • Right-click it and select Properties....

These actions update the Context Panel with available settings. The most important data properties are shown on the viewer, for example, combo boxes that select columns.

Grid is a special viewer. To learn about how to change its appearance or settings, see Grid.

viewer-property-panel

Tooltips

By default, Datagrok shows tooltips for columns, rows, and data visualized in viewers. For example, in tables, tooltips show statistics for numeric columns and distribution for categorical columns.

You can change this default information or disable the tooltip altogether.

To access the tooltip options:

  • For rows: In the Top Menu, select View > Tooltip. This opens the Tooltip dialog, where you can select the columns to show or design a custom tooltip using a form viewer.
  • For columns: Right click the column's header and select the desired option under Tooltip > Current Column.
  • For viewers: Click the Hamburger icon in the viewer's header and select Tooltip > Edit... This opens the same Tooltip dialog as described above.

By default, tooltips display values from all columns in tables with fewer than 21 columns. Tooltips don't show any column values for tables with 21 or more columns.

Group tooltips

One of the unique features of Datagrok is the ability to create tooltips that interactively visualize groups of rows. For example, you can create a tooltip that uses a scatterplot to visualize the following:

To set a viewer as a group tooltip:

  1. Add a viewer.
  2. In the viewer's header, click the Hamburger () icon and select Tooltip > Use as Group Tooltip. This viewer is now set as a group tooltip.

The tooltip settings remain in effect even if you close the underlying viewer. To remove the group tooltip, repeat the steps above, but this time, select Tooltip > Remove Group Tooltip.

Group Tooltip

Statistical hypothesis testing

Certain viewers include statistical features:

  • Box plots show the p-value, allowing you to determine whether the findings are statistically significant.
  • Scatterplots can show one or more regression lines with associated equations and color-coding. Correlation plots highlight the values of Pearson's correlation coefficient, making it easy to trace the strength of the relationship between given variables.
  • The statistics viewer shows key statistics measures for the selected columns.

To learn about available hypothesis tests, see Statistical hypothesis testing.

Common actions

Edit data

To edit data, use the Top Menu. Here, you can find commands like adding or removing columns or rows, aggregating data, or imputing missing values.

To learn about data transformation options, visit Transformation. To learn how to cluster data, analyze variances, and perform other ML tasks, visit Explore.

Select and filter

Viewers belonging to the same Table View share row states:

  • Selected (highlighted in orange)
  • MouseOver (on hover, highlighted in light blue)
  • Current (click or navigate using the up (↑) and down (↓) keys, highlighted in green)
  • Filtered

This synchronization lets you explore the dataset visually and instantly find patterns. For example:

  • Adjusting a slider in one viewer dynamically filters the data in all other viewers.
  • Hovering over a segment in a pie chart highlights the corresponding datapoints on a scatterplot and shows the segment's distribution on a histogram.
  • Clicking a specific data point on a scatterplot updates the current row across all viewers.

Viewers Interaction


To filter, you have these options:

  • Use the designated filters viewer
  • Use other viewers as filters
  • Filter matching rows using a free text search

Filters viewer

To toggle filters, click the Funnel () icon on the Toolbox or at the top of the Table View. To choose which columns are visible, at the top of the Filters panel, click the Hamburger () icon and select Select Columns... You can also add specific columns directly by clicking the Hamburger () icon in the column header and choosing the Add as filter command.

The filters panel is a viewer. This means it interacts with viewers like any other viewer. To learn more about the filters viewer, see Filters.

Viewers as filters

By default, clicking a segment representing multiple rows in viewers, like a bar or a pie chart, selects those rows. However, you can set the viewer to filter the underlying table instead. To do this, click the Hamburger () icon on its header and select On click > Filter.

You can also specify custom behavior using the Row Source and On click settings:

  • Row Source determines which rows are visualized.
  • On Click determines the action on click.

To customize these settings, click the Gear () icon at the viewer's top. You can now adjust the settings in the Context Panel under Data.

viewers-as-filters

You can filter or select matching rows based on search parameters:

  1. In the Table View, go to the Toolbox and expand the Search pane.

  2. Click the Hamburger () icon to choose whether matching rows should be selected or filtered as you modify the search.

  3. In the Search field, enter your search criteria using a search pattern.

    Examples
    Search patternMatches
    > 5all numeric cells with value > 5
    age > 21"age" column > 21
    disease contains disorder"disease" column contains "disorder" substring
    disease ends with disorder"disease" column ends with "disorder"
    after 9/21/2019All dates after 9/21/2019
    2014-2020All dates with years 2014-2020
    open yesterday"open" column: yesterday

Search shortcuts
Ctrl+FActivate search
UpPrevious matching cell
DownNext matching cell
EscClear search
Enter or Alt+FFilter matching rows
Shift+EnterSelect matching rows

To replace values matching your search, use the find and replace command (Ctrl + H).

Search patterns

Search patterns let you specify conditions in a free text search. Datagrok uses the same syntax to search both in tables and externally, such as when accessing databases with parameterized queries.

When searching in tables, you can use conditions with the column name (e.g., age > 21). However, for external queries, specifying the column name in the pattern is unnecessary as it's already defined at the query level.

Numerical patterns
PatternExample
equals5
equals= 5
not equals!= 5
greater than> 5
greater than or equals>= 5
less than< 5
less than or equals<= 5
range (inclusive)10-20
inin (5, 10)
not innot in (5, 10)

For inputs that do not fit the specified patterns, Datagrok defaults to an exact value search.

String patterns
PatternExample
containscontains John
starts withstarts with John
ends withends with District
regular expression.*[0-9]+
inin (asian, other)
not innot in (m, f)

String matching is case-insensitive. For inputs that do not fit the specified patterns, Datagrok defaults to an exact value search.

Datetime patterns
PatternExample
1984years 1984 (ignore date and time)
1984-1986years 1984, 1985, 1986 (ignore date and time)
June 1984June 1984 (ignore date and time)
Oct 17, 2019date = 10/17/2019 (ignore time)
10/17/2019 5:24 pmexact date and time
before 10/17/2019before the specified date
after 10/17/2019after the specified date
today
this week
this month
this year
yesterday
last week
last month
last year
Provider compatibility
ProviderSearch supported
Grok in-memory+
Access+
Athena+
Cassandra
DB2+
Firebird+
HBase+
Hive+
Hive2+
Oracle+
MariaDB+
MS SQL+
MongoDB
MySql+
Postgres+
SQLite+
Teradata+
Vertica+
Redis
SPARQL+
SAP
SAS

Save and share

You can save and share a Table View as a special type of project called a dashboard. To learn more about projects, see Projects. To save just the layout, in the Top Menu, select View > Layout > Save to Gallery.

Embed

You can embed a dashboard or a single viewer into an external site as an iframe. Dashboards and individual viewers remain fully interactive and are synchronized with the tables from which they were created.

To embed:

  1. Save your dashboard.
  2. Open the Embed... dialog:
    • For dashboards, in the Top Menu, select View > Embed.
    • For viewers, hover over the viewer's top, click the Hamburger () icon, and select General > Embed...
  3. Copy the generated iframe and use it on your site.

Controls

  • To edit a table, its settings, or layout, use the Top Menu.
  • To edit columns, cells, or viewer properties, use the context actions (available on right-click or from the Context Panel). Alternatively, click the Hamburger () icon that appears when you hover over a column header or the top of a viewer.

To see a complete list of available controls, visit Controls.

Columns

Properties:

PropertyDescription
New nameNew column name
VisibleAllows to hide column
Is Color CodedEnable/Disable column color coding
Show ValueAllows to do not show values on color coded column
WidthColumn width, in pixels
Background ColorBackground Color, 32 bit integer
Decimal PlacesDecimal Places
Custom NameCustom name, original will be saved
Column NameColumn Name
Custom FormatCustom Format
Cell TypeCell Type

Commands:

ColorsEdit color-coding
Change typeOpen change type dialog

Viewers

Many viewers support the following:

Double-clickReset View
Alt+dragZoom
Mouse dragPan
PropertiesShow viewer properties in the Context Panel
Reset ViewReset zoom level. Use in: scatterplot, line chart, bar chart, 3D scatterplot, and box plot

General commands available under the General submenu:

CloneCreate a copy of the viewer
Full Screen (Alt+F)Show in full screen
CloseClose the viewer
Use in TrellisAdd a trellis plot, using this viewer as a renderer
Save to GallerySaves this layout to a gallery
EmbedCreate HTML code that can be embedded in an external site

Style-related commands under the Style submenu:

Pick upCopy the style of the current viewer
ApplyApply previously copied style to another viewer. This command and the Apply data settings and Apply Style Settings commands can only be executed after the Pick up command.
Apply Data SettingsApply only the settings from the Data section. Can be used for viewers belonging to different views as long as the data source remains the same
Apply Style SettingsApply all settings except for the Data settings. You can use this option for viewers with different data sources
Set as DefaultSet settings as default for all viewers of that type. The properties of all viewers in a Table View are automatically updated to the default settings
Reset DefaultClear default settings

Selection:

ESCDeselect all rows and reset filter
Ctrl+ASelect all rows
Ctrl+Shift+ADeselect all rows
Ctrl+ClickToggle selected state
Shift+ClickSelect point or group
Ctrl+Shift+ClickDeselect point or group

To select rows in the grid:

Shift+Mouse DragSelect rows
Ctrl+Shift+Mouse DragDeselect rows
Mouse Drag row headersSelect rows
Shift+drag column headersSelect columns
Ctrl+click column headersSelect columns
Ctrl+Shift+click column headersDeselect columns
(Ctrl+) Shift + ↑↓(Un)select rows
(Ctrl+) Shift + ←→(Un)select columns
(Ctrl+) Shift + mouse-drag(Un)select rows
(Ctrl+) Shift + ENTER(Un)Select rows with the current value

Resources