ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
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
Allows you to specify the maximum graph value for automatic calculation of percentages in a "Percentage imaged" graph.
Example
ImageGraphe is Image = "rocket.png"
grDeleteSeries(GRF_Percentage, 1)
nSum is an integer
FOR ALL TABLE LINES_Series
	nValue is an integer = COL_Data
	nSum += nValue
	grAddData(GRF_Percentage, 1, nValue)
END
grPIVMaximumValue(GRF_Percentage, nSum)
grPPCImage(GRF_Percentage, ImageGraph)
grDraw(GRF_Percentage)
Syntax
grPPCMaximumValue(<Chart> , <Maximum value>)
<Chart>: 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 or page editor.
Android Only Chart controls are available.
<Maximum value>: Real
New maximum value to be applied. This value must be positive.
This value is set to 100 by default, so the data is expressed as a percentage. When this value is changed, the chart data is automatically recalculated.
Business / UI classification: Business Logic
Component: wd300grf.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/20/2024

Send a report | Local help