4/9/2003

[click to enlarge]
Below you can download the source code for this charting component I began
writing. I've been toying around with a stock analysis system and wanted
some basic charting. This code is VERY rough. There are things I plan to
toss and things I plan to add. You can clearly see that not a lot of thought
went into the design. I was really prototyping. The screenshot is simply
to prove that it works. There is no sample code for how to use it. Should
be simple enough to figure out, though.
Still, it does do a nice candlestick chart, so I figured if someone else
wanted to play with it, they were welcome to it. If you download the code, I
have a few small requests: If you make any improvements, please send them to me.
This code is released under the GPL (GNU Public License). You may incorporate
it in commercial software, but you may not distribute it commercially or anything
which is based in significant portion on this code. In other words, if you
write and sell a stock analysis program and you do some charting with this code, that's
fine. If you sell a stock charting component that's based on this code, that's
not okay. If you're unclear on whether or not your idea infringes on this, then
just ask.
Really, I was hoping someone might be inspired to finish this up for me, which
is why I'm really releasing it. Anyway, enjoy.
Got questions? E-mail me at: pete@petedavis.net
Download the chart