> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kodelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chart setup parameters

> Configure shared Setup tab controls for Building BI charts: fields, column options, and sort order.

The **Setup** tab controls the data a chart shows. The **Style** tab controls presentation — see [Chart styling options](https://docs.kodelabs.com/products/building-bi/reference/chart-styling-options.md). Per-type fields live in [Chart types](https://docs.kodelabs.com/products/building-bi/reference/chart-types.md).

Every widget needs a data source first. See [Data sources](https://docs.kodelabs.com/products/building-bi/data-sources.md).

## Field list

| Field type | Description |
| - | - |
| Metrics | Pre-aggregated values. View code with `fx`. |
| Columns | Source fields. Some calculated fields also show `fx`. |

Edit calculated metrics and columns in the data source — not from the `fx` popup. See [Calculated fields](https://docs.kodelabs.com/products/building-bi/reference/calculated-fields.md).

After you add a column, open `>` to set type-specific options and rename it for viewers. See [Filter options](https://docs.kodelabs.com/products/building-bi/reference/filter-options.md).

**Y-Axis Limits** in Setup override **Min/Max Range** on the Style tab.

## Sorting

| Control | Description |
| - | - |
| Sort toggle (`⇅`) | Changes sort direction for a column |
| Sort Order section | Drag to reorder; add columns; set ASC/DESC; remove columns |

You can sort by a column the widget does not display. Non-displayed sort columns require an aggregate (treated as a metric while sorting).

| Widget type | Can sort by | Cannot sort by |
| - | - | - |
| Bar, Line, Combo, Pie, Sunburst, Table Aggregated, Polar Bar | Dimensions, breakdowns, metrics, other columns as metrics | — |
| Heat-map, Advanced Scatter | X-Axis, Y-Axis, Metric, other columns as metrics | — |
| Box-plot | Dimension, Metric, other columns as metrics | Distribute across |
| Table Raw | Columns, other columns | Calculated metrics |
| Slicer | Slicer column, other columns as metrics | — |
| Tree-map | Hierarchy | Primary/secondary metrics, other columns |
| Time-series | Keys, Tooltips | Date, Value, other columns |
| Timeline | Keys, Tooltips | Start/End Time, Bar Label, other columns |
| Table Pivot | (limited) | Columns outside widget configuration |
| Card, Number, Gauge, Text, I-Frame, Weather, Navigation, Graphics, Sankey, Scatter | Sort not applicable | — |

## Next steps

> [card] [Chart types](https://docs.kodelabs.com/products/building-bi/reference/chart-types.md)
>
> Look up Setup fields per widget type.

> [card] [Add widgets](https://docs.kodelabs.com/products/building-bi/dashboards.md#add-widgets-and-charts)
>
> Configure charts on a dashboard.
