Pie plot VS Bar plot

Example of famous dataset

The Iris data set:

First data plot

Example on simulated data

Empirical CDF

Histogram

Different bin number

Same area histogram: 'box' in the histogram contains the same number of sample points and all boxes have the same area

Relative Frequency

Kernel density estimate

The histogram is one type of pdf estimate. Kernel density estimate is another type (more generic since you can recover histograms for uniform Kernels $K(x)$