PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Chart title
  • Initializing fonts
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
Modifies the font used for the chart title.
Example of title in a chart:
Chart title
Versions 15 and later
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
New in version 15
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
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
// Modify the font used for the title of "MyChart".
// The identifier of the font used is 7.
grTitleFont("MyChart", 7)
Syntax

Defining the font used for the chart title Hide the details

grTitleFont(<Chart Name> , <Font Used>)
<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 Chart control found in the window editor, page editor or report editor.
PHP Only the interactive Chart controls are available.
<Font Used>: Font
Font to use. This parameter corresponds to a Font variable. The font characteristics have been defined by FontCreate or via the properties for font management.

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

grTitleFont(<Chart Name> , <Font Identifier>)
<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 Chart control found in the window editor, page editor or report editor.
PHP Only the interactive Chart controls are available.
<Font Identifier>: Integer
Identifier of font, 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 chart title is defined by grTitle. This function can also be used to position this 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 using grCreate, the font used for the chart title is the default font.
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, ...)
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
Linux wd230grf.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment