ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Image control
  • Overview
  • How to draw?
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
Drawing charts in an Image control
Overview
WINDEV, WINDEV Mobile and WEBDEV propose several functions for creating and handling charts.
Several types of charts can be created: Pie, Column, Line and Scatter charts, ... The display options are used to produce different visual effects for each type of chart.
These charts can be drawn:
  • in an image file,
  • in an Image control.
  • WINDEV in a window,
  • WEBDEV - Server code in an Image control or clickable image (generated image).
  • in a variable of type Image.
How to draw?
To draw a chart in an Image control, some rules must be complied with:
  1. Create the chart with grCreate.
  2. Initialize the chart data with the grAddData and grScatterAddDataXY functions.
  3. Choose an Image control as destination of the chart (grDestinationControl)
  4. Draw the chart with grDraw.
Example:
grCreate("Chart1",grPie)
grAddData("Chart1",1,50)
grAddData("Chart1",1,90)
grAddData("Chart1",1,500)
grDestinationControl("Chart1", IMG_Image1)
grDraw("Chart1")
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help