AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Imagen
  • 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")
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local