PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Changing the type of chart
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Identifies or modifies the type of chart.
Versions 15 and later
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
New in version 15
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Linux Caution: A specific configuration is required to use this function in Linux. See The charts for more details.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for the Android applications.
New in version 19
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 23 and later
PHP This function is now available for the PHP sites.
New in version 23
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Example
// Modify the type of "MyChart"
grType("MyChart", grPie)
Syntax

Finding out the type of chart Hide the details

<Result> = grType(<Chart Name>)
<Result>: Constant
Indicates the type of chart:
gr3DSAreaStacked3D chart of stacked areas.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSAreaDepth3D chart of areas represented in perspective.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSLine3D line chart.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSCylinderColStacked3D stacked column chart.
The bars are represented by cylinders.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSCylinderColClustered3D grouped column chart.
The bars are represented by cylinders.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSCylinderColDepth3D column chart in depth: the series are represented in perspective.
The bars are represented by cylinders.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSColumnStacked3D stacked column chart.
The bars are represented by 3D rectangles. This type of chart does not support the negative values.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSColumnClustered3D grouped column chart.
The bars are represented by 3D rectangles.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSColumnDepth3D column chart in depth: the series are represented in perspective.
The bars are represented by 3D rectangles.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSMinMax3D stock chart displaying the difference between the minimum stock value and the maximum stock value
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSScatter3D Scatter chart.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSPie3D Pie chart.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
grAreaArea chart (see example of Area chart).
grBarChartsStock chart (see example of Stock chart).
Android This constant is not available.
grCandlestickCandlestick stock chart (see example of Stock chart).
Android This constant is not available.
grCurveLine chart (see example of Line chart)
grDonutDonut chart. See example of Donut chart.
Windows MobileUniversal Windows 10 App This constant is not available.
Versions 17 and later
grFunnel
New in version 17
grFunnel
grFunnel
Funnel chart.
AndroidiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Versions 16 and later
grBubbleChart
New in version 16
grBubbleChart
grBubbleChart
Bubble chart (see example of bubble chart).
Android This constant is not available.
Versions 21 and later
grHeatMap
New in version 21
grHeatMap
grHeatMap
Heatmap chart (see example of Heatmap chart).
WEBDEV - Server codeAndroidWindows Mobile This constant is not available.
AndroidWindows Mobile This constant is not available.
grSemiCircularSemi-circular chart (see example of Semi-circular chart).
AndroidWindows MobileUniversal Windows 10 App This constant is not available.
grColumnColumn chart (see example of column chart)
grColumnStackedStacked Column chart. This type of chart does not support the negative values.
grMinMaxStock chart displaying the difference between the minimum stock value and the maximum stock value (see example of Stock chart).
Android This constant is not available.
grScatterScatter chart (see example of Scatter chart).
Android This constant is not available.
Versions 23 and later
grScatter3D
New in version 23
grScatter3D
grScatter3D
3D Scatter chart (see example of 3D Scatter chart).
AndroidPHP This constant is not available.
grRadarRadar chart (see example of Radar chart).
Android This constant is not available.
grPiePie chart (see example of Pie chart).
Versions 20 and later
grSunburst
New in version 20
grSunburst
grSunburst
Sunburst chart. See example of Sunburst chart.
WEBDEV - Server codeAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppPHP This constant is not available.
Versions 18 and later
grSurface
New in version 18
grSurface
grSurface
Surface chart (see example of Surface chart).
WEBDEV - Server codeLinuxAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppPHP This constant is not available.
Versions 19 and later
grWaterfall
New in version 19
grWaterfall
grWaterfall
Waterfall chart (see example of Waterfall chart).
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor, page editor or report editor.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.

Modifying the type of chart Hide the details

grType(<Chart Name> , <Type of Chart>)
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor, page editor or report editor.
Android Only the Chart controls are available.
PHP Only the interactive Chart controls are available.
<Type of Chart>: Constant
Specifies the new type of chart:
gr3DSAreaStacked3D chart of stacked areas.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSAreaDepth3D chart of areas represented in perspective.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSLine3D line chart.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSCylinderColStacked3D stacked column chart.
The bars are represented by cylinders.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSCylinderColClustered3D grouped column chart.
The bars are represented by cylinders.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSCylinderColDepth3D column chart in depth: the series are represented in perspective.
The bars are represented by cylinders.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSColumnStacked3D stacked column chart.
The bars are represented by 3D rectangles. This type of chart does not support the negative values.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSColumnClustered3D grouped column chart.
The bars are represented by 3D rectangles.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSColumnDepth3D column chart in depth: the series are represented in perspective.
The bars are represented by 3D rectangles.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSMinMax3D stock chart displaying the difference between the minimum stock value and the maximum stock value.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSScatter3D Scatter chart.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
gr3DSPie3D Pie chart.
WINDEVWindowsLinux This constant is available in the WINDEV applications for Windows and Linux only.
grAreaArea chart (see example of Area chart).
grBarChartsStock chart (see example of Stock chart).
Android This constant is not available.
grCandlestickCandlestick stock chart (see example of stock chart).
Android This constant is not available.
grCurveLine chart (see example of line chart).
grDonutDonut chart. See example of Donut chart.
Windows MobileUniversal Windows 10 App This constant is not available.
Versions 17 and later
grFunnel
New in version 17
grFunnel
grFunnel
Funnel chart.
AndroidiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Versions 16 and later
grBubbleChart
New in version 16
grBubbleChart
grBubbleChart
Bubble chart (see example of bubble chart).
Android This constant is not available.
Versions 21 and later
grHeatMap
New in version 21
grHeatMap
grHeatMap
Heatmap chart.
WEBDEV - Server codeAndroidWindows Mobile This constant is not available.
AndroidWindows Mobile This constant is not available.
grSemiCircularSemi-circular chart (see example of Semi-circular chart).
AndroidWindows MobileUniversal Windows 10 App This constant is not available.
grColumnColumn chart (see example of column chart).
grColumnStackedStacked Column chart. This type of chart does not support the negative values.
grMinMaxStock chart displaying the difference between the minimum stock value and the maximum stock value (see example of stock chart).
Android This constant is not available.
grScatterScatter chart (see example of scatter chart).
Android This constant is not available.
Versions 23 and later
grScatter3D
New in version 23
grScatter3D
grScatter3D
3D Scatter chart (see example of 3D Scatter chart).
AndroidPHP This constant is not available.
grRadarRadar chart (see example of Radar chart).
Android This constant is not available.
grPiePie chart (see example of Pie chart).
Versions 20 and later
grSunburst
New in version 20
grSunburst
grSunburst
Sunburst chart. See example of Sunburst chart.
WEBDEV - Server codeAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppPHP This constant is not available.
Versions 18 and later
grSurface
New in version 18
grSurface
grSurface
Surface chart (see example of Surface chart).
WEBDEV - Server codeLinuxAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppPHP This constant is not available.
Versions 19 and later
grWaterfall
New in version 19
grWaterfall
grWaterfall
Waterfall chart (see example of Waterfall chart).
Android This constant is not available.

grType has no action on the chart if this parameter corresponds to the current type of chart.
Remarks

Changing the type of chart

  • When changing the type of chart, the parameters of former chart that cannot be reproduced in the new chart are reinitialized.
  • Changing the type of chart may produce unexpected effects. For example, when a Pie chart (grPie constant) is changed into a Scatter chart (grScatter constant), all the points are aligned on the X axis (horizontal axis).
  • The type of chart can be changed from the popup menu. However, the display options produce different visual effects for each type of chart.
  • The parameters defined by grType will be taken into account during the next call to grDraw.
Related Examples:
The Chart functions Unit examples (WINDEV): The Chart functions
[ + ] Using the main chart designer features of WINDEV:
- Create a Pie, Column or Line chart
- Define the display area of a chart
- Define the chart options (legend, percentage, ...)
- Draw a line on a chart
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Windows Mobile wp230grf.dll
Linux wd230grf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo grType
// Exemplo grType

//Seleciona Combox Grafico

grType(CHART_tecnico,COMBO_grafico)
grDraw(CHART_tecnico)

//Preenhce Combox
ListDeleteAll(COMBO_grafico) // Limpar Combox
ListAdd(COMBO_grafico,"gr3DSAreaStacked")
ListAdd(COMBO_grafico,"gr3DSAreaDepth")
ListAdd(COMBO_grafico,"gr3DSLine")
ListAdd(COMBO_grafico,"gr3DSCylinderColStacked")
ListAdd(COMBO_grafico,"gr3DSCylinderColClustered")
ListAdd(COMBO_grafico,"gr3DSCylinderColDepth")
ListAdd(COMBO_grafico,"gr3DSColumnStacked")
ListAdd(COMBO_grafico,"gr3DSColumnClustered")
ListAdd(COMBO_grafico,"gr3DSColumnDepth")
ListAdd(COMBO_grafico,"gr3DSMinMax")
ListAdd(COMBO_grafico,"gr3DSScatter")
ListAdd(COMBO_grafico,"gr3DSPie")
ListAdd(COMBO_grafico,"grArea")
ListAdd(COMBO_grafico,"grBarCharts")
ListAdd(COMBO_grafico,"grCandleStick")
ListAdd(COMBO_grafico,"grCurve")
ListAdd(COMBO_grafico,"grDonut")
ListAdd(COMBO_grafico,"grFunnel")
ListAdd(COMBO_grafico,"grBubbleChart")
ListAdd(COMBO_grafico,"grHeatMap")
ListAdd(COMBO_grafico,"grSemiCircular")
ListAdd(COMBO_grafico,"grColumn")
ListAdd(COMBO_grafico,"grColumnStacked")
ListAdd(COMBO_grafico,"grMinMax")
ListAdd(COMBO_grafico,"grScatter")
ListAdd(COMBO_grafico,"grRadar")
ListAdd(COMBO_grafico,"grPie")
ListAdd(COMBO_grafico,"grSunburst")
ListAdd(COMBO_grafico,"grSurface")
ListAdd(COMBO_grafico,"grWaterfall")

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/12/aula-986-grafico-005-alterar-tipo.html

https://www.youtube.com/watch?v=t6irf3taKbo
De matos
Dec. 04 2016
Exemplo Alterar Grafico Manualmente
//Varios tipos de gráfico
//Trocado via programação
grType(CHART_Tecnico,gr3DSAreaStacked)
grDraw(CHART_Tecnico)

//Blog com video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/06/windev-grafico-3-alterar-tipo-de.html
https://www.youtube.com/watch?v=Ek7pvVhvBfM
De matos AMARILDO
Jun. 06 2016