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
  • Adding data into a Scatter chart
  • Adding data into a chart
  • Equivalence
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 "Scatter" chart.
Reminder By default, a graph has no data.
Linux Caution: In Linux, this function requires a specific configuration. For more details, see The charts.
New in SaaS
Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 2. For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
Ejemplo
// Adds a data into the CHART_MyChart control ("Scatter" chart).
// This value (20, 10) is added at the end of the first series.
CHART_MyChart.ScatterAddDataXY(1, 20, 10)
Sintaxis
<Chart control>.ScatterAddDataXY(<Series number> [, <Subscript>] , <X value> , <Y value>)
<Chart control>: Control name
Name of the Chart control to use (in the window, page or report editor).
PHP Only interactive Chart controls are available.
<Series number>: Integer
Number of the series in which a point must be initialized. If the specified series does not exist, the chart designer creates as many series as necessary in order to get a consistent matrix. All the created series are initialized to 0.
<Subscript>: Optional integer
Index of the data to initialize in the series. If this parameter is not specified, the value is added at the end of the series.
<X value>: Real
Horizontal coordinate (X-coordinate) of the point to add.
<Y value>: Real
Vertical coordinate (Y-coordinate) of the point to add.
Observaciones

Adding data into a Scatter chart

The data defined by <Chart>.ScatterAddDataXY will be taken into account during the next call to <Chart>.Draw.

Adding data into a chart

<Chart>.AddData 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 <Chart>.IncreaseData function.

Equivalence

We recommend that you use <Chart>.ScatterAddDataXY to add data into the "Scatter" charts. However, you can also use <Chart>.AddData.
The following syntax:
CHART_MyChart.ScatterAddDataXY(I, 1, 10, 20)
est is equivalent to the syntax:
CHART_MyChart.AddData(i*2-1, 1, 10)
CHART_MyChart.AddData(i*2, 1, 20)
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 23
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