Login Register Wishes Forum About
Language Reference » Stock charts » Stocks basics
Help topics
Latest updates
4699d  replaceImageMapTitle
4699d  replaceImageMapValues
4699d  createFunctionSerie
4699d  setAbsicssaPosition
4699d  negateValues
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
Stock charts basics

Require pChart 2.0.11

The pStock extension allows you to create stock charts. As one data point is characterized by 4 values, you‘ll have to use your datasets in a different way than when you‘re drawing standard charts. Each data points is defined by the following states :

The Max value as a the 1st boundary.
The Min value as a 2nd boundary.
The Open value.
The Close value.

All this values have to be listed in dedicated datasets. You can also use an extra dataset to put your X axis labels.


Let‘s assume that we got the data represented in the table bellow :

This will lead to the following declaration with the pData object structure :
 /* Create the pData object */
 $MyData = new pData();  

 /* Populate the data series */

 /* Populate the X lables serie */
That can be charted this way :

Last updated on 01/05/2011 
by Jean-Damien 
Linked resources
Community comments
Message from CloudCoder1 on 05/01/2011
This example does not work with the current version that is available for download. Where can I get a copy of the pStock.class file?
Message from Jean-Damien on 06/01/2011
As stated on the top of this page, this extension is part of the 2.0.11 subrelease that will be published shortly. I‘m keeping the documentation up to date with all changes I make even on non published subreleases.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered. This page has been rendered in 0,01 seconds. Wiki revision 1.37.