ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Indicates the color for a type of category in a Waterfall chart.
Remark: If this function is not used, the chart is displayed with the colors selected by default.
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>: Control name or character string
Name of the chart to be used. This name can correspond to:
  • the chart name defined through programming with grCreate.
  • the name of the Chart control in the window, page or report editor.
<Type of category>: Integer constant
Type of the category for which the color must be defined:
grNegativeNegative values of the chart.
grPositivePositive 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 can correspond to:
  • an RGB color (returned by RGB),
  • an HSL color (returned by HSL),
  • a preset color (see the preset colors of WLanguage).
  • the ColorDefault 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 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.
Component: wd300grf.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help