PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to draw?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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).
  • Versions 19 and later
    in an Image variable.
    New in version 19
    in an Image variable.
    in an Image variable.
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment