Data Bars vs. Status Badges in TableCrafter: Which to Use When

Updated July 2026 • 6 min read • By Fahad Murtaza • By Fahad Murtaza

TableCrafter table builder, connect Gravity Forms, Google Sheets, Airtable, CSV, or JSON data sources
TableCrafter table builder, connect Gravity Forms, Google Sheets, Airtable, CSV, or JSON data sources

TableCrafter gives you two powerful visual tools for making numeric and categorical data scannable at a glance: data bars and status badges. Data bars are a Pro feature for numeric magnitude visualization. Status badges are a Free feature for color-coding categorical text values. They serve fundamentally different purposes. Knowing which to reach for, and when to combine them, will make your tables clearer without adding clutter. WordPress powers 43% of all websites globally (W3Techs, July 2026), and TableCrafter bridges the gap between the data you collect and the tables your users need to see, no custom PHP, no dashboard access required for viewers. The free version on WordPress.org supports CSV, JSON, Google Sheets, and Excel. Pro adds Gravity Forms, Airtable, Notion, WooCommerce, REST APIs, inline cell editing, export to CSV and Excel, role-based column visibility, and auto-refresh. Every table embeds on any page with a [tablecrafter] shortcode or the native Gutenberg block.

How Do What Data Bars Do and When They Help Work?

Data bars render an inline bar chart inside a numeric cell. The bar fills a proportion of the cell width based on the value relative to the column's min and max range. This gives readers an immediate visual sense of magnitude without forcing them to compare raw numbers mentally.

Data bars are the right choice when:

A practical trucking example: a Miles Driven column with data bars lets a dispatcher instantly spot which drivers are approaching their hour limits without reading every cell. The exact number is still visible; the bar adds context.

Note: Data bars are applied per column in the table builder. The bar scale is computed automatically from the column's maximum value across the current page of rows. There is no user-configurable min/max setting: the bar always fills relative to the highest value visible in the current filtered view.

How Do What Status Badges Do and When They Help Work?

Status badges convert a text value into a colored pill or label. You define a mapping, for example, Active → green, Pending → yellow, Cancelled → red, and TableCrafter renders the matching badge instead of raw text. The result is a color-coded legend that readers can scan vertically down a column in milliseconds.

Status badges are the right choice when:

An order management example: a Fulfillment Status column with badges turns a wall of text into an at-a-glance dashboard. Rows with Awaiting Shipment get a yellow badge; Delivered gets green; Returned gets red. Staff can triage without reading a word.

Tip: Badge matching is case-sensitive. If your data source stores awaiting_shipment (lowercase), the badge rule value must be awaiting_shipment exactly. The badge displays the raw cell value as its text, so the badge for awaiting_shipment shows the text "awaiting_shipment" in the badge. If you want human-readable display text, normalize the stored values in your data source (e.g., use a Gravity Forms choice label like "Awaiting Shipment" instead of a slug).

How Do I Configure Data Bars in the Table Builder?

Data bars are configured at the column level inside the TableCrafter admin. Navigate to TableCrafter → Tables, open your table, and find the column you want to enhance.

  1. Set the column Display Type to Data Bar.
  2. Choose a Bar Color using the hex color picker. The color must be a valid hex value (e.g., #3b82f6). Named colors and rgb() values are not supported; invalid values fall back to the default blue #3b82f6.
  3. Optionally enable Show Label to display the raw numeric value alongside the bar, or disable it to show the bar alone.
  4. Optionally enable Gradient or Bipolar modes for more advanced visualizations.

The bar scale is computed automatically from the column's maximum value across the currently visible page of data. There are no user-configurable Min Value or Max Value fields: the bar fill is always proportional to the page-scoped maximum, so the widest bar always belongs to the largest value visible. Save the table and embed with [tablecrafter id="42"].

Pro feature: Data bars require a Pro license. On the free tier, the column renders as plain numeric text and the bar configuration is saved but dormant until you upgrade.

How Do I Configure Status Badges in the Table Builder?

Badge configuration lives in the same column settings panel. Set the Display Type to Status Badge, then build your value-to-color mapping. Status badges are a Free feature; no Pro license is required.

  1. Click Add Mapping for each distinct value in the field.
  2. Enter the stored value exactly as it appears in the data source. Matching is case-sensitive: "Active" and "active" are different.
  3. Pick a background color hex and a text color hex. Both are required. If either is missing or not a valid hex, TC_Badge_Service::sanitize_map() drops the entire rule.

The badge displays the raw cell value as its text label. There is no separate display label field. There is also no wildcard fallback (*) mapping: unmapped values render as plain text, not inside a badge. A complete badge mapping for an order status column might look like this:

active      → bg: #22c55e  text: #ffffff
pending     → bg: #f59e0b  text: #ffffff
cancelled   → bg: #ef4444  text: #ffffff
on-hold     → bg: #6b7280  text: #ffffff
Inline editing note: When Pro inline editing is enabled and a user clicks a badge cell, the cell switches to an editable input or dropdown (depending on the underlying field type). The badge re-renders after the AJAX save completes, updating to reflect the newly saved value's color mapping.

What Is Choosing Between Them: A Quick Decision Framework?

The core distinction is simple: data bars are for magnitude; status badges are for categories. A few edge cases are worth calling out explicitly.

When in doubt, ask: "Does the size of this value relative to other values matter?" If yes, use a data bar. If the value is a label that happens to be stored as text or a number, use a badge.

How Does Combining Both in the Same Table Work?

Data bars and status badges are not mutually exclusive. A well-designed TableCrafter table often uses both in different columns. Consider a delivery management table:

This combination gives dispatchers a scannable dashboard from a single shortcode embed. The data bars handle the quantitative columns while badges handle the qualitative state columns. Role-based column visibility (another Pro feature) can then hide the compliance column from drivers while keeping it visible to managers, no separate table required.

Performance note: Both display types are rendered server-side at query time and cached with the table output. Neither adds extra AJAX requests. Auto-refresh (configurable interval) is a Free feature and will re-render bars and badges with fresh data on each refresh cycle without any extra configuration.

Frequently Asked Questions

How Do What Data Bars Do and When They Help Work?

Data bars render an inline bar chart inside a numeric cell. The bar fills a proportion of the cell width based on the value relative to the column's min and max range. This gives readers an immediate visual sense of magnitude without forcing them to compare raw numbers mentally.

Data bars vs. status badges: which should you use and when?

Data Bars vs. Status Badges in TableCrafter: Which to Use When is a capability provided by TableCrafter, a WordPress plugin that displays data from Gravity Forms, Google Sheets, Airtable, Notion, REST APIs, CSV, JSON, and WooCommerce as interactive, searchable, sortable frontend tables, without writing code.

Does this require PHP or developer skills?

No. TableCrafter is configured entirely through the WordPress admin interface. You choose your data source, map fields to columns, and set display preferences using point-and-click controls. Embedding uses the [tablecrafter] shortcode or the native Gutenberg block.

Is the free version sufficient or do I need Pro?

The free plugin on WordPress.org supports CSV, JSON, Google Sheets, and Excel sources with unlimited tables, rows, and columns. Pro adds Gravity Forms, Airtable, Notion, WooCommerce, REST API sources, inline cell editing, bulk row actions, export to CSV and Excel, role-based column visibility, and auto-refresh every N seconds.

Ready to try it?

TableCrafter is free on WordPress.org. Pro unlocks inline editing, role-based permissions, and advanced data sources.