KavaChart in Action - Examples and Documentation - AlaCarte
[ Back ] Finance Applet Collection
KavaChart AlaCarte's Finance collection includes the following applets:
KavaChart Enterprise adds specialty charts from the "kcfinance" package for highly customized solutions, and also includes a number of "contrib" charts that create finance-specific combinations that can be zoomed interactively. |
Candlestick charts are used in finance applications to combine a lot of information at a glance. The top and bottom "whiskers" on the candlestick show the high and low value for the day. The open and close values are shown by the center box. Depending on whether the box is solid or hollow, you can tell at a glance whether the opening price was higher or lower than the closing price. |
This chart uses a simple set of params to create a readable and professional style. Data comes from special params used by candlesticks and OHLC: dataset0HighValues, dataset0LowValues, dataset0OpenValues, and dataset0CloseValues. You can also read your data from a URL or file, using the "customDatasetHandler" param. The file or stream at this location should contain 5 columns: dates, high, low, open, and close values. Date values are defined with a timestamp string. Use "inputDateFormat" to describe the format of the string to the applet. In this sample, we're using "yyyy-MM-dd", which is appropriate for our dates, which look like this: "1999-06-01". Although the data in this sample is fixed, you will probably use JSP, ASP, or some other dynamic page generation technique to create your date and price params, which will result in a dynamic chart. |
Another variant of this type of chart is the OHLC chart, implemented with hLOCApp. This chart uses a left and right whisker to indicate open and closing prices. Some technical traders like to use the various whisker positions to help them predict price movements. Like the candlestick chart, an OHLC chart provides a lot of information at a glance: trends, specific period high-low-open-close price data, and volatility for a particular period. When examining these trends over a long period, a log axis is sometimes appropriate, since investment values compound exponentially. We used a logarithmic axis on this chart, even though it's not really called for by the actual data. |
Since you can combine several applets into a table, sometimes the most convenient way to build a typical price/volume finance chart is to combine a couple of applets into a table like this. Any number of indicators can be combined into a series of charts with the same style and scaling. If you want to combine multiple indicators into the same chart window, use KavaChart's kcfinance package or one of our combination charts. |
For example, this combination uses KavaChart's OHLC applet, together with a variant of bar charts called "stickApp" to create another typical finance chart style. We also added a reference line on the price chart at $50, and changed the labels to currency labels using other applet params. |