This class is used to set which column relation to use when there are more than one column relation in the data manager
that matches an expression.
The ColumnRelation must exist in the ColumnRelationCollection in the data manager in order
to be set as preferred.
Inheritance Hierarchy
Spotfire.Dxp.Framework.DocumentModelNode
Spotfire.Dxp.Framework.DocumentModelDocumentNode
Spotfire.Dxp.Application.VisualsVisualizationRelations
Namespace: Spotfire.Dxp.Application.Visuals
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
Syntax
C#
[SerializableAttribute] [PersistenceVersionAttribute(12, 0)] public sealed class VisualizationRelations : DocumentNode
The VisualizationRelations type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ResetAllPreferred |
Reset all preferred column relations and use the default column relations instead.
| |
ResetPreferred |
Reset the preferred column relation and use the default column relation instead.
| |
SetPreferred |
Sets the preferred column relation. The relation must be a reference to a column relation in the data manager.
|
Properties
Name | Description | |
---|---|---|
Context |
Gets the context of this node.
(Inherited from DocumentNode.) | |
IsAttached |
Gets a value indicating whether this node is attached.
(Inherited from DocumentNode.) | |
Transactions |
Gets a collection of methods for executing transactions on the document.
(Inherited from DocumentNode.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IServiceProviderGetService |
Implements IServiceProvider.
(Inherited from Node.) | |
INodeContextGetAncestorT |
Implements GetAncestorT.
(Inherited from DocumentNode.) | |
INodeContextGetServiceT |
Implements GetServiceT.
(Inherited from DocumentNode.) | |
INodeContextIsDescendantOf |
Implements IsDescendantOf(DocumentNode).
(Inherited from DocumentNode.) | |
ITransactionsBeginAggregatedTransaction |
Implements BeginAggregatedTransaction.
(Inherited from DocumentNode.) | |
ITransactionsExecuteInvisibleTransaction |
Implements ExecuteInvisibleTransaction(Executor).
(Inherited from DocumentNode.) | |
ITransactionsExecuteStickyTransaction |
Implements ExecuteStickyTransaction(Guid, Executor).
(Inherited from DocumentNode.) | |
ITransactionsExecuteTransaction |
Implements ExecuteTransaction(Executor).
(Inherited from DocumentNode.) |
Examples
var columnRelationExport = new ColumnRelation("[CountryCapita].[Country]", "[ExportImportAmount].[Export Country]"); var columnRelationImport = new ColumnRelation("[CountryCapita].[Country]", "[ExportImportAmount].[Import Country]"); dataManager.ColumnRelations.Add(columnRelationExport); dataManager.ColumnRelations.Add(columnRelationImport);
plot.XAxis.Expression = "<Country>"; plot.YAxis.Expression = "Sum([ExportImportAmount].[Amount]) / Sum([CountryCapita].[Capita]) AS [Amount per Capita]"; plot.ColorAxis.Expression = "<[Axis.Default.Names]>";
plot.Data.Relations.SetPreferred(columnRelationExport);
plot.Data.Relations.SetPreferred(columnRelationImport);
Version Information
See Also