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.DocumentModel Node
Spotfire.Dxp.Framework.DocumentModel DocumentNode
Spotfire.Dxp.Application.Visuals VisualizationRelations
Namespace: Spotfire.Dxp.Application.Visuals
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
Syntax
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