Vvidget Code > Extraordinary Dictionary > Stock Chart
This section explains how to form a dictionary for a stock chart such as this:
There is not really anything extraordinary about a stock chart except for the following. The dictionary that forms this chart bears little resemblance to the graphics of the chart. Whereas the normal Dictionary keys directly relate to the graph, the keys for this Stock Chart example relate only to domain specific criterion of the problem at hand. This important distinction between generic and non-generic keys is what distinguishes commodity processing from specialized processing.
Although it is of little value in a generic situation, this capability is of paramount importance in exacting situations where custom programming of the dictionary processing is required.
An example code fragment illustration follows:
/* Start of Illustration Code Fragment */
|
The code fragment above can be inserted into the illustration code section of the Illustration project for an immediate running Cocoa application. For additional information consult the Illustration section.
The symbol form follows:
[constructor VC_append_key:"pvs_version" string_value:@"1"];
|
The following table defines the dictionary key and value pairs:
Chart Specific Entries | |
Key | Value Description |
image_maker | Always stock_chart indicating a Stock Chart. |
image_width | The width of the chart. |
image_height | The height of the chart. |
ticker_symbol | The ticker symbol to process. |
start_month | The start month. |
start_day_of_month | The start day. |
start_year | The start year. |
end_month | The end month. The end date must always be greater than the start date. |
end_day_of_month | The end day. The end date must always be greater than the start date. |
end_year | The end year. The end date must always be greater than the start date. |
If you incorporate this functionality into your own application then please consult Cocoa Programming. If you incorporate this functionality into CLI scripts then please consult Script Programming.
Please help improve this documentation. If a section is hard to understand, there is a typo, you would like a new section added, or you detect any other improvement that can be made then please email support@vvi.com with your information. |