GraphSetGraphType method (WinStudio scripts)
Remarque: This topic applies to the graphing tool, which is supported for
backward compatibility. We recommend that, if you want to add charts or gauges
to a form, use the newer FusionCharts tool instead. See
About charts and gauges.
Applies To
IWSFormComponent interface, graph objects
Definition
Sets the graph type.
Syntax
object.GraphSetGraphType( integer )
Part | Description |
---|---|
object | Required. A reference to a valid graph component object. |
integer | Required. Use one of the integer values from the following table. |
Settings
This table lists and describes valid values for the graph type.
Setting | Description |
---|---|
10 | 2D column chart |
20 | 3D column chart |
30 | 2D line chart |
40 | 2D area chart |
50 | 2D bar chart |
60 | 2D pie chart |
70 | 3D pie chart |
80 | 2D doughnut chart |
90 | 3D doughnut chart |
100 | 2D pareto chart |
110 | 3D pareto chart |
120 | spline chart |
130 | area spline chart |
140 | 2D waterfall chart |
150 | funnel chart |
160 | pyramid chart |
170 | spark line chart |
180 | spark column chart |
190 | multi-series 2D column chart |
200 | multi-series 3D column chart |
210 | multi-series line chart |
220 | multi-series 2D bar chart |
230 | multi-series 3D bar chart |
240 | multi-series area chart |
250 | marimekko chart |
260 | zoom line chart |
270 | 2D scroll column chart |
280 | 2D scroll line chart |
290 | 2D scroll area chart |
300 | 2D stacked column chart |
310 | 3D stacked column chart |
320 | 2D stacked bar chart |
330 | 3D stacked bar chart |
340 | 2D stacked area chart |
350 | multi-series spline chart |
360 | multi-series spline area chart |
370 | multi-series logarithmic 2D column chart |
380 | multi-series logarithmic line chart |
390 | multi-series inverse area chart |
400 | multi-series inverse 2D column chart |
410 | multi-series inverse line chart |
420 | 2D radar chart |
430 | multi-series step line chart |
440 | multi-series 2D combination chart |
450 | multi-series 3D combination chart |
460 | multi-series 3D column line chart |
Example
'Setting the graph type to "2D Area Chart"
ThisForm.Components("graph1").GraphSetGraphType(10)
ThisForm.Components("graph1").GraphDraw()