The Candle Chart integrates Bar and Line charts to depict a range of values over time. It consists of visual elements known as candles that are further comprised of three elements: body, wick, and tail.
Consider a stock market scenario in which a stock is analyzed for five consecutive days in a particular week. The analysis is done to predict the prospective value of the stock. On the basis of the analysis, the general nature of the stock can be implied as well.
The Candle Chart is appropriate to represent the stock value summary.
Stock Day | Stock Open | Stock High | Stock Low | Stock Close |
---|---|---|---|---|
Monday | 37 | 47 | 22 | 28 |
Tuesday | 52 | 63 | 30 | 38 |
Wednesday | 75 | 77 | 50 | 55 |
Thursday | 65 | 77 | 50 | 76 |
Friday | 26 | 67 | 22 | 55 |
The above chart depicts the stock value summary for five consecutive days in a specific week.
The following code shows the implementation: