|
|
|
|
|
- Changing the type of chart
grType (Function) In french: grType Identifies or modifies the type of chart. Syntax <Result>: Constant Indicates the type of chart: <Chart name>: Control name or character string Name of the chart to be used. This name corresponds to:- the name of the chart defined programmatically with grCreate.
- the name of the Chart control in the window, page or report editor.
Modifying the type of chart Hide the details
grType(<Chart name> , <Type of chart>)
<Chart name>: Control name or character string Name of the chart to be used. This name corresponds to:- the name of the chart defined programmatically with grCreate.
- the name of the Chart control in the window, page or report editor.
<Type of chart>: Constant Specifies the new type of chart: | | gr3DSAreaStacked | 3D chart of stacked areas. | gr3DSAreaDepth | 3D chart of areas shown one behind the other. | gr3DSLine | 3D line chart. | gr3DSCylinderColStacked | 3D stacked bar chart. The bars are represented by cylinders. | gr3DSCylinderColClustered | 3D clustered column chart. The bars are represented by cylinders. | gr3DSCylinderColDepth | 3D column chart in depth: the series are represented in perspective. The bars are represented by cylinders. | gr3DSColumnStacked | 3D stacked bar chart. The bars are represented by 3D rectangles. This type of chart does not support negative values. | gr3DSColumnClustered | 3D clustered column chart. The bars are represented by 3D rectangles. | gr3DSColumnDepth | 3D column chart in depth: the series are represented in perspective. The bars are represented by 3D rectangles. | gr3DSMinMax | 3D Stock chart displaying the difference between the minimum and maximum stock values. | gr3DSScatter | 3D Scatter chart. | gr3DSPie | 3D Pie chart. | grArea | Area chart (see example of Area chart). | grPolarArea | Polar Area chart (see example of Polar Area chart). | grBarCharts | Stock chart (see example of Stock chart). | grCandlestick | Candlestick stock chart (see example of Stock chart). | grRadialBar | Radial Bar chart. See example of Radial Bar chart. | grLine | Line chart (see example of Line chart). | grDonut | Donut chart. See example of Donut chart. | grFunnel | Funnel chart. | grBubbleChart | Bubble chart (see example of Bubble chart). | grHeatMap | Heatmap chart. | grSemiCircular | Semi-circular chart (see example of Semi-circular chart). | grColumn | Column chart (see example of Column chart). | grComparativeHistogram | Comparative Histogram chart. | grColumnStacked | Stacked Column chart. This type of chart does not support negative values. | grMinMax | Stock chart displaying the difference between the minimum stock value and the maximum stock value (see example of Stock chart). | grScatter | Scatter chart (see example of Scatter chart). | grScatter3D | 3D Scatter chart (see example of 3D Scatter chart). | grPyramid | Pyramid chart (see example of Pyramid chart). | grRadar | Radar chart (see example of Radar chart). | grPie | Pie chart (see example of Pie chart). | grSunburst | Sunburst chart. See example of Sunburst chart. | grSurface | Surface chart (see example of Surface chart). | grWaffleChart | Waffle chart (see example of Waffle chart). | grWaterfall | Waterfall chart (see example of Waterfall chart). | grRangeArea | Range Area chart (see example of Range Area chart). |
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 the 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 in the context 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:
|
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
|
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|