Cumulative Histogram (GPL)

Figure 1. GPL for cumulative histogram
* Open sample file Employee Data.sav.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=salary
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: salary=col(source(s), name("salary"))
  GUIDE: axis(dim(2), label("Cumulative Percent"))
  GUIDE: axis(dim(1), label("Salary"))
  ELEMENT: interval(position(summary.percent.count.cumulative(bin.rect(salary))))
END GPL.
Figure 2. Cumulative histogram
Cumulative histogram