PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Title of a graph
  • Font initialization
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
Modifies the font used for the titles of the chart axes.
Example of titles for the axes:
Title of axes
Example
// Modification de la police utilisée pour
// les titre des axes du graphe "GRF_MonGraphe".
MaPolice is Font
MaPolice.Name = "Arial"
MaPolice.Size = 12
MaPolice.Bold = True
grAxisTitleFont(GRF_MonGraphe, MaPolice)
Syntax

Defining the font used for the title of the chart axes Hide the details

grAxisTitleFont(<Chart name> , <Font used>)
<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 Chart control found in the window editor, page editor or report editor.
<Font used>: Font
Font to use. This parameter corresponds to an Variable of type Font. The font characteristics have been defined by FontCreate or via the properties for font management.

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

grAxisTitleFont(<Chart name> , <Policy ID>)
<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 Chart control found in the window editor, page editor or report editor.
<Policy ID>: entier
Policy identifier, defined with the grCreateFont function. A WLanguage error occurs if this font does not exist.
Remarks

Title of a graph

The title of chart axes can be displayed for the different axes.
Title of axes
The title of the chart axes is defined by grAxisTitle. This function can also be used to position this title.
The font used for the chart title can be modified by grAxisTitleFont.

Font initialization

The default font used for the title of the axes has the following characteristics:
  • Font name: Arial,
  • Size: 14,
  • Style: Normal,
  • Color: Black.
When using grCreate, the font used for the titles of axes 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, ...)
Component: wd270grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment