ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Initializes the color of a series in a "Scatter" chart.
Reminder By default, series colors (or sector shares) are selected in a predefined order from a range of 13 colors.
New in SaaS
Android This function is now available for Android applications.
Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 2. For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Example
// Ajoute une donnée dans le graphe "MonGraphe" de type "Nuage de points".
// Cette valeur (10, 20) est ajoutée à la fin de la première série.
grScatterAddDataXY("MonGraphe", 1, 10, 20)
// La série 1 du graphe "MonGraphe" est de couleur jaune
grScatterSeriesColor("MonGraphe", 1, LightYellow)
// Ajoute une donnée dans le champ GRF_MonGraphe de type "Nuage de points".
// Cette valeur (20, 20) est ajoutée à la fin de la première série.
grScatterAddDataXY(GRF_MonGraphe, 1, 20, 20)
// La série 1 du graphe GRF_MonGraphe est de couleur verte
grScatterSeriesColor(GRF_MonGraphe, 1, LightGreen)
Syntax
grScatterSeriesColor(<Chart name> , <Series number> , <Color>)
<Chart name>: Control name or character string
Name of the chart to be used. This name can correspond to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window, page or report editor.
<Series number>: Integer
Number of the series to use.
<Color>: Integer or constant
Color of the specified series. This color can correspond to:
Remarks
  • The data defined by grScatterSeriesColor will be taken into account during the next call to grDraw.
  • To display the color gradients, use grGradient.
  • grScatterSeriesColor and grSeriesColor are equivalent.
    The syntax of grSeriesColor used with "Scatter" charts is:
    grSeriesColor(<Chart name>, 2*<Index>-1, <Color>)
Related Examples:
The Chart functions Unit examples (WINDEV): The Chart functions
[ + ] Using the main chart designer features of WINDEV:
- Create a Pie, Column or Line chart
- Define the display area of a chart
- Define the chart options (legend, percentage, ...)
- Draw a line on a chart
Component: wd300grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help