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
  • Creating and drawing a chart programmatically
  • Drawing several charts at the same time
  • Charts and threads
  • Default values of a chart created programmatically
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
Creates a specific type of chart.
Remarks:
  • It is recommended to create a Chart control directly rather than using grCreate. Indeed, the Chart control offers many more features.
  • This function can only be used to create a chart programmatically. This function cannot be used in the window editor, page editor or report editor.
Ejemplo
// Create a column chart 
// (and save the parameters modified by the user)
grCreate("MyChart", grColumn)
Sintaxis
grCreate(<Chart name> , <Chart type> [, <Persistence>])
<Chart name>: Character string
Name of chart to create. This name will be used by all functions for chart management. Warning: this name must not correspond to the name of a Chart control field..
<Chart type>: Constant
Specifies the type of chart to create:
gr3DSAreaStacked3D chart of stacked areas.
gr3DSAreaDepth3D chart of areas shown one behind the other.
gr3DSLine3D line chart.
gr3DSCylinderColStacked3D stacked bar chart.
The bars are represented by cylinders.
gr3DSCylinderColClustered3D clustered column chart
The bars are represented by cylinders.
gr3DSCylinderColDepth3D depth column chart: series are displayed one behind the other.
The bars are represented by cylinders.
gr3DSColumnStacked3D stacked bar chart.
The bars are represented by 3D rectangles. This type of chart does not support negative values.
gr3DSColumnClustered3D clustered column chart.
The bars are represented by 3D rectangles.
gr3DSColumnDepth3D depth column chart: series are displayed one behind the other.
The bars are represented by 3D rectangles.
gr3DSMinMax3D Stock chart displaying the difference between the minimum stock value and the maximum stock value
gr3DSScatter3D Scatter chart.
gr3DSPie3D Pie chart.
grAreaArea chart (see example of Area chart).
grPolarAreaPolar Area chart (see example of Polar Area chart).
grBarChartsStock chart (see example of Stock chart).
grCandlestickCandlestick stock chart (see example of Stock chart).
grRadialBarRadial Bar chart.
grLineLine chart (see example of Line chart).
grDonutDonut chart. See example of Donut chart.
grFunnelFunnel chart. See example of Funnel chart.
grBubbleChartBubble chart (see example of bubble chart).
grHeatMapHeatmap chart (see example of Heatmap chart).
grSemiCircularSemi-circular chart (see example of Semi-circular chart).
grColumnColumn chart (see example of Column chart).
grColumnStackedStacked Column chart. This type of chart does not support negative values.
grMinMaxStock chart displaying the difference between the minimum stock value and the maximum stock value (see example of Stock chart)
grScatterScatter chart (see example of Scatter chart).
grScatter3D3D Scatter chart (see example of 3D Scatter chart).
Novedad versión 2025
grPercentageImaged
Percentage graph (see example of a Percentage graph illustrated).
grPyramidPyramid chart (see example of Pyramid chart).
grRadarRadar chart (see example of Radar chart).
grPiePie chart (see example of Pie chart).
grSunburstSunburst chart. See example of Sunburst chart.
grSurfaceSurface chart (see example of Surface chart).
grWaffleChartWaffle chart (see example of Waffle chart).
grWaterfallWaterfall chart (see example of Waterfall chart).
grRangeAreaRange Area chart (see example of Range Area chart).

The type of chart can be modified later by grType.
<Persistence>: Optional boolean
  • True (default) to save graph modifications made by the user via the context menu,
  • False not to save these modifications.
Observaciones

Creating and drawing a chart programmatically

To create and draw a chart:

Drawing several charts at the same time

Several charts with the same name cannot exist at the same time.
To draw several charts at the same time (in one or more windows for example), different chart names must be specified.

Charts and threads

A single chart can be handled in a thread.
Consequences:
  • Two threads cannot handle the same chart.
  • A chart created in a thread is automatically destroyed at the end of this thread. The chart exists in the thread that contains the call to grCreate.

Default values of a chart created programmatically

The default values of a chart are as follows:
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

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