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
  • Chart title
  • Initializing fonts
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Modifies the font used for the chart title.
Example of title in a chart:
Chart title
Linux Caution: Using this function under Linux requires a specific configuration.. For more details, see The charts.
Example
// Modification de la police utilisée pour le titre du graphe GRF_MonGraphe
// L'identifiant de la police utilisée est 7.
grTitleFont(GRF_MonGraphe, 7)
Syntax

Defining the font used for the chart title Hide the details

grTitleFont(<Chart name> , <Font used>)
<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.
PHP Only interactive Chart controls are available.
<Font used>: Font
Font to use. This parameter corresponds to a variable of type Font. The font characteristics have been defined with FontCreate or via the font properties.

Defining the font used for the chart title (syntax kept for backward compatibility) Hide the details

grTitleFont(<Chart name> , <Font identifier>)
<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.
PHP Only interactive Chart controls are available.
<Font identifier>: Integer
Font identifier, defined by grCreateFont. A WLanguage error occurs if this font does not exist.
Remarks

Chart title

The chart title can be displayed above or below the chart.
Chart title
The content of the chart title is defined with grTitle. This function can also be used to set the position of the title.
The font used for the chart title can be modified by grTitleFont.
The data defined by grTitleFont will be taken into account during the next call to grDraw.

Initializing fonts

The default font used for the chart title has the following characteristics:
  • Font name: Arial
  • Size: 14
  • Style: Normal
  • Color: Black
When grCreate is used, the default font is used for the chart title.
Related Examples:
The Chart functions Unit examples (WEBDEV): The Chart functions
[ + ] This example presents the main features of the chart designer of WEBDEV and it allows you to:
- Create a chart: Pie, Column or Line
- Define the display area of a chart
- Define the options of the chart (legend, percentage, ...)
The Chart functions Unit examples (WINDEV Mobile): The Chart functions
[ + ] Using the Chart functions:
- create a Pie, Column or Line chart by programming
- define the chart options (legend, percentage, ...)
Component: wd300grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help