|
|
|
|
|
- Surface chart
- Adding data into a chart
<Chart>.SurfaceAddData (Function) In french: <Graphe>.SurfaceAjouteDonnée Adds a data into a Surface chart. x, y, z are real
wImage is Image
wImage = "sunset.jpg"
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))
CHART_Surface.SurfaceAddData(x, y, z)
END
END
CHART_Surface.Draw()
Syntax
<Chart control>.SurfaceAddData(<X> , <Y> , <Z>)
<Chart control>: Control name Name of Chart control (present in window or 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. Remarks 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 Depending on the type of chart, specific functions can also be used to add data:
Related Examples:
|
Training (WINDEV): WD Chart
[ + ] This example presents the different uses of the Chart control. Different types of charts are presented: - Pie - Sunburst - Line - Scatter - Column - Area - etc. The main features presented here are the possibility to customize of charts from the code, as well as to fill the chart from an HFSQL data file, or in the editor.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|