|
|
|
|
|
- Changing the type of chart
grType (Function) In french: grType Identifies or modifies the type of chart.
grType("MonGraphe", grPie)
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: 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|