I have a website that uses GoDiagram. For some pages, I create org charts, and for other pages, I have just implemented flow charts.
On my development machine, the flow charts appear as they should. This is true whether I am working from source code, or a compiled version of my site. But, when I copy the compiled code to our testing/development server, the flow charts do not work correctly…while the org charts continue to work just fine.
The flow charts appear to have all the nodes and links on them but, they are all “stacked” on top of each other in the top left corner of the diagram.
Here is the code I use to create the flowchart:
If xmlDoc.HasChildNodes() Then GoView2.Document.Clear() GoView2.DataRenderer.LabeledNodeSingleClick = "NodeClicked('" & Target & "')" GoView2.DataRenderer.Cursors = True GoView2.Document.MaintainsPartID = True If UseColor Then GoView2.BackColor = Color.LightCyan End If Dim sz As New Size(0, 0) GoView2.ScrollMarginSize = sz Dim r As New GoXmlReader() Dim tbn As New XMLTransformFlowChartNode() tbn.UseColor = UseColor tbn.FeaturedNodeID = CLng(Session("SceneID")) r.AddTransformer(tbn) r.AddTransformer(New XMLTransformFlowChartLinks()) r.RootObject = GoView2.Document GoView2.StartTransaction() r.Consume(xmlDoc) GoView2.FinishTransaction("load xml source") End If GoView2.StartTransaction() Dim layout As New GoLayoutLayeredDigraph() layout.Document = GoView2.Document layout.DirectionOption = GoLayoutDirection.Down layout.AggressiveOption = GoLayoutLayeredDigraphAggressive.More layout.LayerSpacing = 20 layout.ColumnSpacing = 50 layout.LayeringOption = GoLayoutLayeredDigraphLayering.OptimalLinkLength layout.PerformLayout() GoView2.ScrollMarginBackgroundColor = Color.White GoView2.ScrollMarginForegroundColor = Color.White GoView2.ShowsHorizontalScrollButtons = False GoView2.ShowsVerticalScrollButtons = False 'CreateLegend(UseColor) GoView2.Height = Unit.Pixel(GoView2.DocumentSize.Height) GoView2.Width = Unit.Pixel(GoView2.DocumentSize.Width) GoView2.FinishTransaction("tree autolayout")
Does anyone have any suggestions as to how to debug this?
Again, Flow Charts AND Org Charts look great when I run locally, whether from source code or in a compiled version.
On our server, Org Charts still look great but, flow charts don’t work…using the compiled files copied from my local machine.
Thanks for any help you can give.