DataPI.

What would you like to understand?

Preparing search…
    All results and search filters →

    Chart guide

    Stacked bars: composition and totals

    Show how non-overlapping parts contribute to a total, and distinguish absolute counts from normalized percentages.

    Educational reference; check the operation contract for executable availability.

    When this chart is useful

    Use stacked bars when each item has meaningful parts that add to a declared whole: classified comment labels by week or collection outcomes by source. Choose ordinary grouped bars if the main task is comparing a middle segment precisely across categories.

    How the chart is built

    Assign each observation to one mutually exclusive segment. Absolute stacking adds segment counts; the full bar is the total. Percentage stacking divides every segment by that bar’s total and gives each bar 100%. Preserve an unknown segment where records lack a label instead of silently shrinking the denominator.

    How to read it

    Read total height first for absolute bars, then segment sizes. In percentage bars, compare composition while checking the printed sample count: a week of ten comments and a week of a thousand both reach 100%. Only the lowest segment shares a common baseline for exact length comparison.

    Useful combinations

    Pair sentiment composition with absolute comment volume and representative comments. Pair collection outcomes with the failure-reason table. Keep colors and segment order consistent between pages and retain text labels so the meaning does not depend on color alone.

    Common mistakes and limits

    Overlapping categories cannot be added into a meaningful total. A post can contain several hashtags, so hashtag counts generally should not be stacked as a partition of posts. A normalized chart can hide a collapse in volume; always show the denominator.

    A worked example

    Illustrative sentiment composition with unknowns retained

    Drawn from the example table; illustrative data
    050201202

    Exact values and column meanings are available in the table below.

    Illustrative sentiment composition with unknowns retained
    WeekPositiveNeutralNegativeUnknown
    12020100
    220201050

    Negative count is unchanged at 10. Its share of all observed comments falls from 20% to 10% only because unknowns increased; this is not evidence of improved sentiment.

    Put this information to work

    Sources and method

    Updated: 2026-10-31