This chart type is mainly used to plot stock prices and thus we have named it Stock Chart. It is also know as a bar chart by stock brokers. The chart shows the stocks high, low, open and close prices for each day. It also shows the traded volume of the stock for each day as a bar. The "bar" is colored green if the stock went up (the closing prices was higher than the opening price) and red if it went down (the closing price was lower than the opening price). ![]() Source code for this chart: <APPLET CODE="HanengCharts.class" ARCHIVE="HanengCharts3.jar" WIDTH=400 HEIGHT=350> <PARAM NAME="LicenseKey" VALUE="DEMO-DTKTG2s3R8xNVzNVFxN"> <PARAM NAME="ChartType" VALUE="StockWithVolumes"> <PARAM NAME="Title" VALUE="Google Inc. Stock Price"> <PARAM NAME="Prefix" VALUE="$"> <PARAM NAME="Text_1" VALUE="May-02-05"> <PARAM NAME="Text_2" VALUE="May-03-05"> <PARAM NAME="Text_3" VALUE="May-04-05"> <PARAM NAME="Text_4" VALUE="May-05-05"> <PARAM NAME="Text_5" VALUE="May-06-05"> <PARAM NAME="Text_6" VALUE="May-09-05"> <PARAM NAME="Text_7" VALUE="May-10-05"> <PARAM NAME="Text_8" VALUE="May-11-05"> <PARAM NAME="Text_9" VALUE="May-12-05"> <PARAM NAME="Text_10" VALUE="May-13-05"> <PARAM NAME="Value_a_1" VALUE="223.70:220.21:222.05:222.29:9767400"> <PARAM NAME="Value_a_2" VALUE="228.15:221.32:221.85:226.19:17780200"> <PARAM NAME="Value_a_3" VALUE="229.88:227.00:227.23:228.50:12083500"> <PARAM NAME="Value_a_4" VALUE="228.62:225.88:228.62:226.98:7509600"> <PARAM NAME="Value_a_5" VALUE="229.25:226.47:228.40:228.02:6763900"> <PARAM NAME="Value_a_6" VALUE="228.50:225.43:228.00:226.02:5536800"> <PARAM NAME="Value_a_7" VALUE="227.80:224.72:225.47:227.80:6345800"> <PARAM NAME="Value_a_8" VALUE="231.98:227.93:228.97:231.29:11478800"> <PARAM NAME="Value_a_9" VALUE="232.23:228.20:230.81:228.72:8948200"> <PARAM NAME="Value_a_10" VALUE="231.09:227.32:229.18:229.24:7415500"> </APPLET> Short Explanation of the Code: Each Value_x_y value consists of a string of values separated by ":". The values are High:Low:Open:Close:Volume where: High = The highest stock price for that day. Low = The lowest stock price for that day. Open = The opening price of the stock for that day. Close = The closing price of the stock for that day. Volume = The traded volume of this stock for that day. So: <PARAM NAME="Value_a_1" VALUE="223.70:220.21:222.05:222.29:9767400"> means that the highest price of the stock was 223.70, the lowest price was 220.21, it opened at 222.05 and closed at 222.29 and 9767400 stocks was traded. |