ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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, the color of a pie section or the color of a funnel section.
By default, the colors of series (or the colors of sections) are selected according to a preset order among a set of 11 colors.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
Example
// Modifie la couleur de la série 2 dans le champ "GRF_MonGraphe"
GRF_MonGraphe.CouleurSérie(2, LightYellow)
Syntax
<Chart control>.SeriesColor(<Series number> , <Color>)
<Chart control>: Control name
Name of manipulated Chart control (present in window, page or report editor).
WEBDEV - Browser codePHP Only interactive Chart controls are available.
<Series number>: Integer
Number of the series to use.
For a Pie chart (constant grSector), this parameter corresponds to the index of the data in the series (the sector number).
For a Funnel chart (constant grFunnel), this parameter corresponds to the index of the data in the series (the portion number).
<Color>: Integer or Integer constant
Color of the specified series. This color can correspond to:
Remarks
  • The following colors are used by default:
  • The colors defined by <Chart>.SeriesColor will be taken into account during the next call to <Chart>.Draw.
  • To display the color gradients, use <Chart>.Gradient.
  • To define a color for the series in "Scatter" charts, it is recommended to use <Chart>.ScatterSeriesColor.
  • The SeriesColor property allows you to get and initialize the color of a series or a pie section (same as <Chart>.SeriesColor).
Related Examples:
WD Chart Training (WINDEV): WD Chart
[ + ] This example presents the different uses of the Chart control.
Different types of charts are presented:
- Pie
- Sunburst
- Line
- Scatter
- Column
- Area
- etc.

The main features presented here are the possibility to customize of charts from the code, as well as to fill the chart from an HFSQL data file, or in the editor.
Business / UI classification: Neutral code
Component: wd300grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help