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.
  • Handling legends
  • Initializing fonts
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 chart legend.
Example of legend in a chart:
Chart legend
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for 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.
Example
// Modification de la police utilisée pour la légende du champ GRF_MonGraphe.
// L'identifiant de la police utilisée est 7.
grLegendFont(GRF_MonGraphe, 7)
Syntax

Defining the font used for the chart legend Hide the details

grLegendFont(<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 chart legend (syntax kept for backward compatibility) Hide the details

grLegendFont(<Chart name> , <Font identifier>)
<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 identifier>: Integer
Policy identifier, defined with the grCreateFont function. A WLanguage error occurs if this font does not exist.
Remarks

Handling legends

The set of series labels correspond to the chart legend.
Chart legend
The series labels are defined by grSeriesLabel.
The legend font can be modified by grLegendFont.
The grLegend function is used to indicate the presence and position of the legend (i.e. the set of serial labels).

Initializing fonts

The default font used for the chart legends has the following characteristics:
  • Font name: Arial,
  • Size: 14,
  • Style: Normal,
  • Color: Black.
When using grCreate, the font used for the legends is the default font.
The data defined by grLegendFont will be taken into account during the next call to grDraw.
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