Skip to content

Commit 5d82db1

Browse files
authored
docs(table-chart): document inline data bars (#11122)
* docs(table-chart): document inline data bars (CUB-2254) * docs(table-chart): use Display as for inline bars control (CUB-2254)
1 parent 748b3e1 commit 5d82db1

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

  • docs-mintlify/docs/explore-analyze/charts/chart-types

docs-mintlify/docs/explore-analyze/charts/chart-types/table.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,17 @@ The URL must be publicly accessible without authentication.
7474

7575
### Inline bars
7676

77-
Display a numeric column as a proportional bar by setting **Display as** to **Bar**. Bars scale relative to the max value in the column. Columns with negative values will split the bar in both directions.
77+
Display a numeric column as a proportional in-cell bar. In the column's per-column section on the **Style** tab, use the **Display as** control to add a bar. Each bar's length reflects the value's magnitude within the column's range.
78+
79+
| Option | Description |
80+
|---|---|
81+
| **Display as** | Choose **Value**, **Bar**, or both. Checking **Bar** reveals the bar options below; keeping **Value** checked shows the number alongside the bar (uncheck it for a bar-only cell). |
82+
| **Positive bar color** | Fill color for non-negative bars |
83+
| **Negative bar color** | Fill color for negative bars (used when the column contains both positive and negative values) |
84+
| **Bar scale** | **Auto** anchors each bar at zero and scales to the column's largest value, so even the smallest value still shows a bar; **Manual** scales against the bounds you set |
85+
| **Lower / Higher bound** | The minimum and maximum (in the column's raw units) used when **Bar scale** is **Manual**. Pre-filled to match the Auto range, so switching modes doesn't shift the bars. |
86+
87+
When a column contains both positive and negative values, bars are drawn in both directions from a centered zero baseline — positive values to the right, negative to the left — using the positive and negative bar colors. Values outside the scale are clamped to a full or empty bar, but the displayed number is always the true value.
7888

7989
{/* TODO screenshot: table with inline bar column (hidden — replace this comment with <Frame><img src="..." /></Frame> when image is ready) */}
8090

0 commit comments

Comments
 (0)