The p chart is used when the data can only be whole numbers, as in counting, it is known as discrete (also known as attribute data). Every item in the sample is evaluated for only the number of defects, flaws, or occurrences, etc.
Use: The p chart is used with a varying sample size where you are counting the number of defectives in the sample. If you remember, the difference between a defect and a defective is this. A defect can be found on an otherwise acceptable product; whereas, a defective means that the whole item is unacceptable. For example, you might have some minor defects in the fabrication of the windshield. The windshield passes inspection even though there are some minor defects. Defects are still undesirable, but there are an insufficient number of defects to render the windshield unusable. If, however, the windshield is cracked, the windshield would be rendered defective, and totally unusable. With the p chart, we are looking at defectives – not defects, and remember that were looking at a varying (as opposed to constant) sample size. If it was a constant sample size and we were evaluating defectives, we would instead be using a np chart.