ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
Displays or hides the chart gridlines.
Example of gridlines:
Gridlines of a chart
Reminder By default, a graph's gridlines are invisible.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
Example
// Affichage du quadrillage vertical du graphe "MonGraphe"
grGridlines("MonGraphe", True, grYCoordinate)
// Affichage du quadrillage horizontal du graphe GRF_MonGraphe
grGridlines(GRF_MonGraphe, True, grXCoordinate)
Syntax
grGridlines(<Chart name> , <Display> , <Axis direction>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window, page or report editor.
Android Only Chart controls are available.
PHP Only interactive Chart controls are available.
<Display>: Boolean
  • True if the grid must be displayed,
  • False otherwise.
<Axis direction>: Integer constant (or combination of constants)
Axis used for the gridlines:
grXCoordinate
(default value)
Marks on X-axis (horizontal axis).
grYCoordinateMarks on Y-axis (vertical axis).

The combination of these two constants is used to get a full gridlines (vertical and horizontal).
Remarks
  • The gridlines are taken into account:
    • in Column charts (grColumn and grColumnStacked constants), Scatter charts (grScatter constant), Line charts (grLine constant) and Stock charts (grCandleStick, grBarCharts and grMinMax constants) when <Axis direction> corresponds to grXCoordinate.
    • in Scatter charts (grScatter constant), Line charts (grLine constant) and Stock charts (grCandleStick and grBarCharts constants) when <Axis direction> corresponds to grYCoordinate.
  • The gridlines have no effect on Pie charts (grPie constant) and Funnel charts (grFunnel constant).
  • The data defined by grGridlines will be taken into account during the next call to grDraw.
Business / UI classification: Neutral code
Component: wd300grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help