PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE


  • Adding data into a Scatter chart
  • Adding data into a chart
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a data into a "Scatter" chart.
Reminder: By default, a chart contains no data.
Versions 15 and later
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
New in version 15
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
PHP This function is now available for the PHP sites.
New in version 23
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Example
// Adds a data into the "Scatter" chart named "MyChart".
// This value (10, 20) is added at the end of the first series.
grScatterAddDataXY("MyChart", 1, 10, 20)
// Adds a data into the CHART_MyChart control ("Scatter" chart).
// This value (20, 10) is added at the end of the first series.
grScatterAddDataXY(CHART_MyChart, 1, 20, 10)
Syntax
grScatterAddDataXY(<Chart Name> , <Series Number> [, <Subscript>] , <X Value> , <Y 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.
PHP Only the interactive Chart controls are available.
<Series Number>: Integer
Number of the series in which a point must be initialized. 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.
<Subscript>: Optional integer
Subscript of the data to initialize in the series. If this parameter is not specified, the value is added at the end of the series.
<X Value>: Real
Horizontal coordinate (X coordinate) of the point to add.
<Y Value>: Real
Vertical coordinate (Y coordinate) of the point to add.
Remarks

Adding data into a Scatter chart

The data defined by grScatterAddDataXY will be taken into account during the next call to grDraw.

Adding data into a chart

grAddData is used to add data into a chart (pie, column, ...)
Depending on the type of chart, specific functions can also be used to add data:
  • For the stock charts, we recommend that you use grStockAddData.
  • Versions 21 and later
    For the Heatmap charts, we recommend that you use grHMAddData.
    New in version 21
    For the Heatmap charts, we recommend that you use grHMAddData.
    For the Heatmap charts, we recommend that you use grHMAddData.
  • Versions 20 and later
    For the Sunburst charts, we recommend that you use grSunburstAddData.
    New in version 20
    For the Sunburst charts, we recommend that you use grSunburstAddData.
    For the Sunburst charts, we recommend that you use grSunburstAddData.
  • Versions 18 and later
    For the Surface charts, we recommend that you use grSurfaceAddData.
    New in version 18
    For the Surface charts, we recommend that you use grSurfaceAddData.
    For the Surface charts, we recommend that you use grSurfaceAddData.
Reminder: To add a value to a chart data, use grIncreaseData.

Equivalence

We recommend that you use grScatterAddDataXY to add data into the "Scatter" charts. However, you also have the ability to use grAddData.
The following syntax:
grScatterAddDataXY(CHART_MyChart, i, 1, 10, 20)
is equivalent to the syntax:
grAddData(CHART_MyChart, i*2-1, 1, 10)
grAddData(CHART_MyChart, i*2, 1, 20)
Related Examples:
WD Chart Training (WINDEV): WD Chart
[ + ] This educational example present different uses of the chart control.
The following charts are presented:
- Semi-circular
- Donut
- Pie
- Sunburst
- Line
- Scatter
- 3D Scatter
- Column
- Area
- Bubble
- Radar
- Funnel
- Surface
- Waterfall
- Composite

The main features presented in this example are the ability to customize the charts by programming as well as the method used to fill a chart from a HFSQL file or in the editor.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
Linux wd230grf.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment