locked
Rotate Graph RRS feed

  • Question

  • Hello,

    I am trying to align a graph from Left to Right, not from Top to Bottom.

    Using a a GeometryGraph this seems to work fine, when I use a regular Graph i don't see how i can achieve this.

    Thanks,

    Niko

    Thursday, October 20, 2011 9:53 AM

Answers

  • Hi Niko,

    This should work.

    var graph = new Microsoft.Msagl.Drawing.Graph("graph");
     graph.Attr.LayerDirection = LayerDirection.LR;
    //fill the graph
    //...
    
    //display the graph in the viewer
    viewer.Graph=graph;
                

    Thanks,

    Lev


    Lev Nachmanson
    • Marked as answer by Lev Nachmanson Thursday, October 20, 2011 7:02 PM
    Thursday, October 20, 2011 7:01 PM