Candlestick Chart > Overview |
The candle stick chart from FusionCharts v3 PowerCharts suite offers your a powerful and interactive interface to plot your stock data. It offers the following features: Features:
Shown below is a basic candlestick chart: |
![]() |
| The above candlestick chart shows a basic price and volume plot. Given below is the XML data for it: |
<chart palette='1' numPDivLines='5' caption='XYZ - 3 Months' numberPrefix='$' bearBorderColor='E33C3C' bearFillColor='E33C3C' bullBorderColor='1F3165' PYAxisName='Price' VYAxisName='Volume (In Millions)'> <dataset> </dataset> |
The <chart> element is the root element of the candlestick chart, like any other chart in FusionCharts v3 framework. It has a lot of properties that set the functional and cosmetic behavior of the chart. You can find the complete list of properties in Chart XML Sheet section. Next, you've the <categories> and <category> element which define the x-axis labels for the chart. Each label needs to have a x position value and label. You can also opt to show a vertical line for each category label. FusionCharts Candlestick chart has both x-axis and y-axis as numeric. This chart doesn't directly accept dates for the data and category labels. Instead, it accepts a x-value for each data. This allows for greater flexibility as you can plot days, hours, weeks, months, years etc. using this chart. Converting your dates into x-values is very simple. Using your server side script, select the first date in your chart as base date. Now, use date difference function (w.r.t to this base date) to get the x-values for each date. So, if you want to show daily quotes on the chart, you can use "day" as the date difference parameter. Similarly, if you want to show weekly quote, you can use weeks as the date difference parameter and so on. Now, for each data, you need to provide the x-value, opening price, closing price, high and low price for the given time frame. If you're plotting a line chart for the price, you can choose which price to plot - opening or closing. Also, high and low prices are not required in case of line plot. You can additionally provide the volume figure if you also want a volume chart to be plotted. Advanced features in this chart include plotting of trend lines, trend sets (indicators) etc. as shown below: |
![]() |