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
Enables or disables the display of color gradients in a chart.
Reminder: By default, the colors displayed in a chart are gradient colors.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The charts.
Example
// Chart created through programming
grCreate("MyChart", grCandleStick)
...
// Disables the color gradients
grGradient("MyChart", False)
// Chart control
// Disables the color gradients
grGradient(CHART_MyChart, False)
Syntax
grGradient(<Chart name> , <Gradient>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the chart name defined through programming with grCreate.
  • the name of the Chart control in the window, page or report editor.
Android Only Chart controls are available.
PHP Only the interactive Chart controls are available.
<Gradient>: Boolean
  • True to display the chart by using the color gradients,
  • False otherwise.
Remarks
  • The charts display the color gradients by default. The color gradients can be displayed by all the types of charts.
  • The settings defined with grGradient will be taken into account next time grDraw is called.
  • During the print, the gradient mode will not be taken into account for the Pie charts.
Component: wd290grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help