Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions guides/configure-charts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,48 @@ You can add and adjust the legend in your chart to help people understand what d
![](/images/guides/configure-charts/chart-config-legend.png)
</Frame>

## Data

The Data tab lets you trim what gets shown on the chart without changing the underlying query. Both controls run client-side on the already-fetched results, so totals, exports and underlying data are unaffected.

### Limit displayed rows

Toggle **Limit displayed rows** to show or hide a slice of rows from the top or bottom of your results.

<Frame>
![](/images/guides/configure-charts/chart-config-row-limit.png)
</Frame>

The control reads as a sentence:

- **Show / Hide** — keep only the targeted rows, or remove them.
- **First / Last** — anchor to the top or bottom of the results.
- **N** — how many rows to target (default 50).

Examples:

| Setting | Effect |
| ---------------------- | ------------------------------------------------------------ |
| Show the first 50 rows | Plot only the top 50 rows; ignore the rest |
| Hide the last 1 row | Drop the bottom row (useful when the trailing period is incomplete) |
| Show the last 12 rows | Plot only the most recent 12 rows of a time series |

<Note>
The row limit only affects what's drawn on the chart. Your query still returns the full result set, totals are calculated against all rows, and CSV exports include every row.
</Note>

### Column limit

When your chart has a pivot dimension, the **Column limit** controls how many pivot groups (and therefore series) are drawn. Lightdash keeps the first N pivot groups in display order and drops the rest.

<Frame>
![](/images/guides/configure-charts/chart-config-column-limit.png)
</Frame>

This is useful when a pivot dimension has many values and the chart becomes hard to read. Leave the field blank for no per-chart limit (the system-wide pivot limit still applies — see [the pivot table column limits reference](/references/chart-types/table#column-limits)).

The column limit field only appears when a dimension is configured in the **Group** field.

## Margins

The Margin tab is where you're able to add or remove margin around the grid. Removing margin means that your chart will fill more of the space in the chart tab. Adding margin will shrink your chart into a smaller space.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions references/chart-types/table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The options for Tables include:
- Showing and hiding the columns in your table.
- Showing and hiding the table name from the column labels.
- Showing and hiding the totals for your columns.
- Limiting the displayed rows to the first or last N (see [Limiting displayed rows](#limiting-displayed-rows)).
- Pivoting by a column.
- Transposing your table (a.k.a. pivoting your metrics)
- Locking a column from scrolling in your table.
Expand Down Expand Up @@ -46,6 +47,28 @@ To configure this, go to `bar display` on the sidebar, and select the `numeric`

This feature also works on pivot tables

## Limiting displayed rows

You can show or hide a slice of rows from the top or bottom of your table without changing the underlying query. The control lives in the **Data** section of the table configuration panel and is only available on non-pivoted tables — for pivot tables, use a query filter or the [pivot column limit](#column-limits) instead.

The control reads as a sentence:

- **Show / Hide** — keep only the targeted rows, or remove them.
- **First / Last** — anchor to the top or bottom of the results.
- **N** — how many rows to target (default 50).

Examples:

| Setting | Effect |
| ---------------------- | ------------------------------------------------------------ |
| Show the first 50 rows | Display only the top 50 rows |
| Hide the last 1 row | Drop the bottom row (useful when the trailing period is incomplete) |
| Show the last 10 rows | Display only the bottom 10 rows |

<Note>
The row limit only affects what's drawn in the table. Your query still returns the full result set, totals are calculated against all rows, and CSV exports include every row.
</Note>

## Pivot tables

Pivot tables allow you to summarize larger sets of data in table visualizations by moving row values into columns. They're also helpful to identify trends between two dimensions in your data using a table visualization.
Expand Down
Loading