PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
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.
Versions 23 and later
PHP This function is now available for PHP sites.
New in version 23
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Example
// Modifies the color of series 2 in the "CHART_MyChart" control
CHART_MyChart.SeriesColor(2, LightYellow)
 
Syntax
<Chart control>.SeriesColor(<Series number> , <Color>)
<Chart control>: Control name
Name of the Chart control used (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 to use.
For a Pie chart (grPie constant), this parameter corresponds to the subscript of data in the series (the section number).
Versions 17 and later
For a Funnel chart (grFunnel constant), this parameter corresponds to the subscript of the data in the series (the section number).
New in version 17
For a Funnel chart (grFunnel constant), this parameter corresponds to the subscript of the data in the series (the section number).
For a Funnel chart (grFunnel constant), this parameter corresponds to the subscript of the data in the series (the section number).
<Color>: Integer or Integer constant
Color of 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, we recommend that you use <Chart>.ScatterSeriesColor.
  • SeriesColor is used to initialize the color of a series or section (identical to <Chart>.SeriesColor) and it can also be used to find out the current color of a series or section.
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: wd260grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment