PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

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
Indicates the color for a type of category in a Waterfall chart.
Note: If this function is not used, the chart is displayed with the colors selected by default.
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
grWaterfallColor(CHART_Waterfall, grTotal, RGB(83,129,179))
grWaterfallColor(CHART_Waterfall, grSubTotal, RGB(103,89,159))
grWaterfallColor(CHART_Waterfall, grPositive, RGB(115,179,83))
grWaterfallColor(CHART_Waterfall, grNegative, RGB(179,84,92))
Syntax
grWaterfallColor(<Chart Name> , <Type of Category> , <Color>)
<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 the Chart control found in the window editor, report editor or page editor.
PHP Only the interactive Chart controls are available.
<Type of Category>: Integer constant
Type of the category for which the color must be defined:
grPositivePositive values of the chart.
grNegativeNegative values of the chart.
grSubTotalSub-total values of the chart.
grTotalTotal values of the chart.
<Color>: Integer or Integer constant
Color for the specified type of category. This color corresponds to:
  • an RGB color (returned by RGB),
  • an HSL color (returned by HSL),
  • a preset color (see the preset colors of WLanguage).
  • the DefaultColor constant:
    • If the DefaultColor constant is used for the grPositive and grNegative types of category, the default colors of series will be used.
    • If the DefaultColor constant is used for the grSubTotal type of category and if specific colors are used for the grPositive and grNegative types of category, these specific colors will be used for the sub-total.
Remarks
  • The colors defined for the categories by grCategoryColor have priority over the colors defined by grWaterfallColor.
  • This function applies to the Waterfall charts only.
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 19
This page is also available for…
Comments
Click [Add] to post a comment