- Consistency of values
- Adding data
- Adding data into the different types of charts
grStockAddData (Function) In french: grBourseAjouteDonnée Adds data into a stock chart (candlestick, barcharts or minmax).
// Chart created by programming grCreate("MyChart", grCandleStick) ... // Add data into "MyChart" grStockAddData("MyChart", 1, 5.4, 6.8, 6.1, 6.3)
// Chart control // Add data into "CHART_MyChart" grStockAddData(CHART_MyChart, 1, 5.4, 6.8, 6.1, 6.3)
Syntax
grStockAddData(<Chart name> , <Series number> [, <Subscript>] , <Minimum value> , <Maximum value> , <First value> , <Last value>)
<Chart name>: Character string (with or without quotes) Name of chart to use. This name corresponds to:- the chart name defined by programming with grCreate.
- the name of Chart control found in the window editor, page editor or report editor.
<Series number>: Integer Number of the series into which a value will be added. If the specified series does not exist, the chart designer creates as many series as necessary in order to get a consistent matrix. All the created series are initialized to 0.Caution: Only the first series will be drawn. <Subscript>: Optional integer Subscript of data in the series into which the values will be added. If this parameter:- is not specified: the values are added at the end of series.
- is specified: the former value is replaced.
<Minimum value>: Integer or real Minimum value for the day. <Maximum value>: Integer or real Maximum value for the day. <First value>: Integer or real First value for the day. <Last value>: Integer or real Last value for the day. Remarks Consistency of values If the values are not consistent, the data will not be displayed in the chart: - <First value>, <Last value> and <Minimum value> must be less than <Maximum value>.
- <First value>, <Last value> and <Maximum value> must be greater than <Minimum value>.
Adding data - The data added by grStockAddData will be taken into account during the next call to grDraw.
- Only the first series will be drawn.
- By default, a stock chart created by grCreate contains no data.
Adding data into the different types of charts - To add data into the standard charts (line, pie, ...), use grAddData.
- For the Scatter charts, we recommend that you use grScatterAddDataXY.
Versions 21 and laterFor the HeatMap charts, we recommend that you use grHMAddData. New in version 21For the HeatMap charts, we recommend that you use grHMAddData. For the HeatMap charts, we recommend that you use grHMAddData. Versions 20 and laterFor the Sunburst charts, we recommend that you use grSunburstAddData. New in version 20For the Sunburst charts, we recommend that you use grSunburstAddData. For the Sunburst charts, we recommend that you use grSunburstAddData. Versions 18 and laterFor the Surface charts, we recommend that you use grSurfaceAddData. New in version 18For the Surface charts, we recommend that you use grSurfaceAddData. For the Surface charts, we recommend that you use grSurfaceAddData.- To add a value to a chart data, use grIncreaseData.
This page is also available for…
|
|
|