ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / KnowledgeLinkChartLayoutAlgorithm Enumeration
Example Example

In This Topic
    KnowledgeLinkChartLayoutAlgorithm Enumeration
    In This Topic
    Specifies a Knowledge Link Chart layout algorithm.
    Syntax
    Members
    MemberDescription
    Basic_Grid Basic Grid.
    Geographic_Organic_Standard A Geographic layout that positions entities geographically using their geometry. Spatial entities that have a null geometry and non-spatial entities are arranged using the Organic Standard layout.
    Hierarchical_BottomToTop Hierarchical Bottom To Top.
    Hierarchical_TopToBottom Hierarchical Top To Bottom.
    Organic_Community Organic Community.
    Organic_Fusiform Organic Fusiform.
    Organic_LeafCircle Organic Leaf Circle.
    Organic_Standard Organic Standard.
    Radial_NodeCentric Radial Node Centric.
    Radial_RootCentric Radial Root Centric.
    Tree_BottomToTop Tree Bottom To Top.
    Tree_LeftToRight Tree Left To Right.
    Tree_RightToLeft Tree Right To Left.
    Tree_TopToBottom Tree Top To Bottom.
    Example
    Get and set the link chart layout
    var mv = MapView.Active;
    
    // a MapView can encapsulate a link chart IF it's map
    // is of type MapType.LinkChart
    var map = mv.Map;
    var isLinkChart = map.MapType == MapType.LinkChart;
    // or use the following
    // var isLinkChart = map.IsLinkChart;
    
    QueuedTask.Run(() =>
    {
      if (isLinkChart)
      {
        // get the layout algorithm
        var layoutAlgorithm = mv.GetLinkChartLayout();
    
        // toggle the value
        if (layoutAlgorithm == KnowledgeLinkChartLayoutAlgorithm.Geographic_Organic_Standard)
          layoutAlgorithm = KnowledgeLinkChartLayoutAlgorithm.Organic_Standard;
        else
          layoutAlgorithm = KnowledgeLinkChartLayoutAlgorithm.Geographic_Organic_Standard;
    
        // set it
        mv.SetLinkChartLayoutAsync(layoutAlgorithm);
    
        // OR set it and force a redraw / update
        // await mv.SetLinkChartLayoutAsync(layoutAlgorithm, true);
      }
    });
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.CIM.KnowledgeLinkChartLayoutAlgorithm

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also