Skip to content
Graph Craft

ECDF Plot

FacebookX
Example: Delivery time of 24 orders: within how many minutes were 90% delivered (made-up data)Apache ECharts

Variant: Standard

Made-up data, for demonstration only

Variants

3 types · click one to see it in the frame above
Difference from standard
The recommended type; use it as a starting point
Use when
See the cumulative share at or below a value

ECDF Plot is a step line that shows what percentage of the data is at or below each value. Each data point lifts the line by one step. Use it to answer questions of the form "what share is below what value", such as: of 24 delivery orders, within how many minutes were 90% delivered?

How to read an ECDF Plot

  • The horizontal axis is the value. In this example it is delivery time in minutes.
  • The vertical axis is the share at or below that value. It runs from 0% to 100%, and the line never goes down.
  • To read from a percentage to a value, start at 50%, go across to the line, then down to the horizontal axis. In this example the step that touches 50% is at 49.6 minutes. If you use the median that averages the two middle values, you get 50.25 minutes.
  • Read 90% the same way. It gives about 63.3 minutes, which means 90% of orders were delivered within about 63 minutes.
  • To read from a value to a percentage, at 60 minutes the line is at about 79%. That is 19 of 24 orders delivered within 60 minutes.
  • Where the line is steep, the data is dense. Where it is flat, there is little data. In this example it is steep from about 40 to 60 minutes.

The chart needs no bin width or bandwidth, and it shows all of the data at once.

When to use it

  • You need to answer percentile questions, such as "90% of jobs finish in X minutes", which is the kind of condition in a service level agreement or service target. You can read the median and the share above a point straight from the chart.
  • You do not want to choose a bin width or bandwidth. It has no parameter to adjust, unlike a histogram or a density plot.
  • You compare two groups. The line of the group further to the left has lower values at almost every level. Try the "Compare two groups" variant.
  • You want the share below a value of interest. The vertical axis is the cumulative share and the horizontal axis is the measured value.

When not to use it

  • Readers are not used to cumulative charts. It is less intuitive than a histogram or a density plot, and it is rarely seen outside technical work. For a general audience, use a Histogram or state the answer in a sentence.
  • The data has a very long tail, such as the populations of US counties, where both a density plot and an ECDF are useless because the line shoots up at 0 and shows almost no detail. Rescale the data before plotting.
  • You want to see whether the distribution has one peak or two. That is harder to read from an ECDF. Use a Density Plot.
  • There is very little data. The step line is coarse. Use a Strip Plot.

Common mistakes

1. Reading steepness as the size of the values

A steep line means dense data, not large values. Read large values from the horizontal axis.

2. Not saying the cumulation runs from low to high

If you flip it to cumulate from high to low, the line turns upside down. Both are valid, but low to high is better known, so label which one you use.

3. Not marking the key percentiles

Readers have to draw the lines themselves. Try the "Show percentiles" variant, which draws dashed lines at 50% and 90% with their values.

4. Cutting the axis so the lowest values disappear

The horizontal axis should cover every value, so the line starts at 0% and ends at 100%.

5. Comparing groups of different sizes without giving n

The steps of a small group are coarser. Give the number of data points in each group.

Compared with similar charts

ChartHow it differsChoose it when
ECDF PlotA cumulative line with no parametersPercentile questions
HistogramBars that count per rangeThe shape of the distribution, easy to explain
Density PlotA smooth curveThe shape, and comparing groups
Q–Q PlotPoints against a theoretical distributionChecking whether the data is normal
Box PlotA box of five valuesA compact summary

Frequently asked questions

How is an ECDF different from a Histogram?

A histogram counts data per range and depends on the bin width you choose. An ECDF shows the cumulative share of every data point, with no parameter to choose, but its shape is harder to read.

How do I read the median from an ECDF?

Go from 50% on the vertical axis across to the line, then down to the horizontal axis. That gives the value at which the cumulative share first reaches 50%. If the number of data points is even and you want the median that averages the two middle values, compute it from those two values as well.

Why is the line a staircase and not smooth?

Each data point makes the cumulative share jump by one step (1 over n). With more data the steps get smaller and the line looks smooth.

What can I use instead for long-tailed data?

Rescale the data before plotting, for example with a logarithmic axis, because the original chart shows almost no detail.

References

  • Fundamentals of Data Visualization, ch. 8: Visualizing distributions: Empirical cumulative distribution functions and q-q plots · Claus O. Wilke · clauswilke.comUsed to confirm: the ECDF and the Q-Q plot

Last updated 28 Nov 2026