Consider the following statements in respect of a histogram:
1. The histogram consists of vertical rectangular bars with a common base such that there is no gap between consecutive bars.
2. The height of the rectangle is determined by the frequency of the class it represents.
Which of the statement given above is/are correct?