PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

  • Overview
  • Chart filled by programming
  • Notes
  • Special case
  • Chart control in a window or in a page based on a Table control built by BuildBrowsingTable
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Filling a Chart control
Overview
The data that will be displayed in the Chart control can come from:
  • an item of a data file or a query.
  • a column of a Table control found in the current window or page.
  • a List Box control found in the current window or page.
  • a WLanguage array.
  • data specified in the description window of the control or by programming.
  • a control of the current report (only for a report).
The mode for filling the chart is specified in the wizard for control creation and in the description window of control ("Series" tab).
Versiones 21 y posteriores
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 21
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
Chart filled by programming
The programming required to fill the chart is performed by the following functions:
Versiones 09 y posteriores
grAddData
Nueva funcionalidad versión 09
grAddData
grAddData
Adds a data into a chart.
Versiones 21 y posteriores
grHMAddData
Nueva funcionalidad versión 21
grHMAddData
grHMAddData
Agrega un dato a un gráfico de Heatmap.
Versiones 09 y posteriores
grIncreaseData
Nueva funcionalidad versión 09
grIncreaseData
grIncreaseData
Agrega un valor a un dato en un gráfico.
Versiones 09 y posteriores
grScatterAddDataXY
Nueva funcionalidad versión 09
grScatterAddDataXY
grScatterAddDataXY
Añade un dato a un gráfico "Scatter".
Versiones 09 y posteriores
grStockAddData
Nueva funcionalidad versión 09
grStockAddData
grStockAddData
Añade datos en un gráfico de existencias (candelabros, gráficos de barras o minmax).
Versiones 20 y posteriores
grSunburstAddData
Nueva funcionalidad versión 20
grSunburstAddData
grSunburstAddData
Agrega un dato a una carta de Sunburst.
Versiones 18 y posteriores
grSurfaceAddData
Nueva funcionalidad versión 18
grSurfaceAddData
grSurfaceAddData
Agrega un dato a un gráfico de superficie.
For example:
  • Chart control in a window or page:
    The "CHART_MySalary" Chart control is used to view the evolution of a salary over the last four years in a Line chart.
    The "EDT_Salary1", "EDT_Salary2", "EDT_Salary3" and "EDT_Salary4" edit controls are used to type the salary for the corresponding year.
    In this example, enter the following code in the "Initialization" process of Chart control:
    // Add data into the chart
    grAddData(CHART_MySalary, 1, EDT_Salary1)
    grAddData(CHART_MySalary, 1, EDT_Salary2)
    grAddData(CHART_MySalary, 1, EDT_Salary3)
    grAddData(CHART_MySalary, 1, EDT_Salary4)
  • Chart control in a report:
    The "RPT_MyReport" report prints the details (last name, first name, turnover) of the 10 best customers.
    The "CHART_MyChart" chart displays the turnover of each customer in a pie chart.
    In this example, type the following code in the "Before printing" process of Body block:
    // Add data into the chart
    grAddData(CHART_MyChart, 1, MySource.Turnover)

Notes

Special case
WINDEV

Chart control in a window or in a page based on a Table control built by BuildBrowsingTable

If you are creating a new chart whose source is a Table control filled by BuildBrowsingTable from a query, you must specify that the columns correspond to _COL1, _COL2, ...
You also have the ability to use grSourceSeries to modify the source of the series.
Versión mínima requerida
  • Versión 14
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario