ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
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 for a Pictorial Percentage chart.
Note: All image formats are supported, but it is recommended to use a vector image file.
Example
ChartImage is Image = "rocket.png"
grDeleteSeries(CHART_Percentage, 1)
nSum is int
FOR EACH ROW OF TABLE_Series
	nValue is int = COL_Data
	nSum += nValue
	grAddData(CHART_Percentage, 1, nValue)
END
grPPCMaximumValue(CHART_Percentage, nSum)
grPPCImage(CHART_Percentage, ChartImage)
grDraw(CHART_Percentage)
Syntax
grPPCImage(<Chart> , <Image> [, <Opacity>])
<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.
<Image>: Character string or Image variable
Category image. This image can correspond to:
  • a memo item,
  • the path of an image file (or just the file name if the image is located in the same directory as the executable),
  • the name of an Image control containing image.
  • a variable of type Image.
<Opacity>: Optional integer
Opacity for the portion of the image that is not part of the percentages. This parameter is a number between 0 (fully transparent, default) and 100 (fully opaque). This parameter is only taken into account for the last part of the chart, if the sum of the values does not reach 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: 02/13/2025

Send a report | Local help