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
Defines the image used to illustrate data in a "Percentage imaged" graph.
Note All image formats are supported, but we recommend using a vector format.
Example
ImageGraphe is Image = "rocket.png"
GRF_Percentage.deleteSeries(1)
nSum is an integer
FOR ALL TABLE LINES_Series
	nValue is an integer = COL_Data
	nSum += nValue
	GRF_Percentage.AddData(1, nValue)
END
GRF_Percentage.PIVMaximumValue(nSum)
GRF_Percentage.PIImage(ImageGraph)
GRF_Percentage.Draw()
Syntax
<Chart control>.PIImage(<Image> [, <Opacity>])
<Chart control>: Control name
Name of Chart control in window or page editor.
Android Only Chart controls are available.
<Image>: Character string or Image variable
Category image. This image can correspond to:
  • a memo section,
  • the path of an image file (or just its name if the image is present in the executable directory),
  • an image field name containing an image.
  • a variable of type Image.
<Opacity>: Optional integer
image opacity not included in percentages. This parameter ranges from 0 (transparent image, default) to 100 (visible image). This parameter is only taken into account for the last part of the graph, if the sum of the values used in the graph does not correspond to 100%.
Business / UI classification: UI Code
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