AddDurovGraph Method
The AddDurovGraph method creates a new Durov plot. Returns an AutoGraph object.
Syntax
object.AddDurovGraph( worksheet, xCationCol, yCationCol, zCationCol, xAnionCol, yAnionCol, zAnionCol, id )
Parameter | Type | Description |
worksheet | String | required, full path and file name of the data |
xCationCol | Variant | optional, default = 1 (column A) |
yCationCol | Variant | optional, default = 2 (column B) |
zCationCol | Variant | optional, default = 3 (column C) |
xAnionCol | Variant | optional, default = 4 (column D) |
yAnionCol | Variant | optional, default = 5 (column E) |
zAnionCol | Variant | optional, default = 6 (column F) |
id | Variant | optional, graph name |
Remarks
The AddDurovGraph method creates a Durov plot, which consists of two ternary plots and a square plot. The example shows how to set the references to the AutoTernaryPlot objects.
Example
This example shows how to create a Durov plot and set the references to the component plots.
'Create Durov reference
Dim Durov as Object
'Create the Durov plot and set the reference
Set Durov = Shapes.AddDurovGraph(GrapherApp.Path + "\samples\DurovdData.xlsx",2,3,4,5,6,7)
'Set the Cation plot reference
Dim Cation as Object
Set Cation = Durov.Plots.Item(1)
'Set the Anion plot reference
Dim Anion as Object
Set Anion = Durov.Plots.Item(2)
'Set the Square plot reference
Dim Square as Object
Set Square = Durov.Plots.Item(3)
Used by: AutoShapes collection