---
title: Shortcode to Display Product Statistics
description: "Use the [rvx-stats] shortcode to show a star-by-star rating distribution bar for any product or post."
url: "https://reviewx.io/docs/shortcode-to-display-product-statistics/"
updated: "2026-09-22"
category: Shortcodes
---

# Shortcode to Display Product Statistics

The `[rvx-stats]` shortcode renders ReviewX's 5-star rating distribution breakdown bar. It illustrates the exact proportion of 5-star, 4-star, 3-star, 2-star, and 1-star reviews submitted by your customers, complete with interactive hover tooltips and instant click-to-filter capability.

![ReviewX Rating Statistics Component](https://reviewx.io/wp-content/uploads/2026/09/shortcode_rvx_stats.png)
The star distribution breakdown rendered by [rvx-stats], featuring interactive progress bars, review counts, and hover tooltips.

## Shortcode Syntax

To render the rating statistics bar for the current product:

```
[rvx-stats]
```

To display rating distribution for an external or specific product:

```
[rvx-stats post_id="123"]
```

## Interactive Shopper Capabilities

- **Hover Tooltips:** Hovering over any star row reveals an interactive tooltip with the exact percentage and total review count (e.g. "83% (15 reviews)").
- **Click-to-Filter:** When placed alongside `[rvx-review-list]`, clicking a star rating bar automatically filters the reviews list below to show only reviews matching that rating level.

## Block Editor Alternative

You can also insert the native **ReviewX Stats** Gutenberg block (`reviewx/stats`) from the block library.

## Related Articles

- [How Rating Graph Tooltip and Click-to-Filter Work](https://reviewx.io/docs/tooltip-on-rating-graph-and-filter-based-on-rating-graph-value/)
- [Shortcode to Display Product Review Summary](https://reviewx.io/docs/shortcode-to-display-product-review-summary/)
