AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de gráficos
  • Surface chart
  • Adding data into a chart
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds a data into a Surface chart.
x, y, z are real
wImage is Image

// Load the photo found in memory in an Image variable
wImage = "sunset.jpg" 


// Scan the image and all the points
// to define the rate of lightness for the point
// via ColorLightness
FOR I = 0 _TO_ wImage.Width STEP 4
	FOR j = 0 _TO_ wImage.Height STEP 4
		x = I
		y = j
		z = ColorLightness(dPixelColor(wImage, x, y))
		grSurfaceAddData(CHART_Surface, x, y, z)
	END
END

// Draw the chart in the Chart control
grDraw(CHART_Surface)
Sintaxis
grSurfaceAddData(<Chart name> , <X> , <Y> , <Z>)
<Chart name>: 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 Chart control (found in the window editor or in the report editor).
<X>: Real
X-coordinate of the point to add.
<Y>: Real
Y-coordinate of the point to add.
<Z>: Real
Z coordinate of the point to add.
Observaciones

Surface chart

For the data in a Surface chart, the XY plane constitutes the base of the surface while Z indicates the height of the point.

Adding data into a chart

grAddData is used to add data into a chart (pie, column, ...).
Depending on the type of chart, specific functions can also be used to add data:
Reminder: To add a value to a data item on a graph, use the grIncreaseData function.
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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