magjac / d3-graphviz

Graphviz DOT rendering and animated transitions using D3
BSD 3-Clause "New" or "Revised" License
1.67k stars 103 forks source link

The graph is not being displayed #281

Closed swym3344 closed 1 year ago

swym3344 commented 1 year ago

Hi, I am currently using the d3-graphviz library for visualizing graphs in my project. However, I am encountering an issue.The problem I am facing is that the graph is not being displayed when using the d3-graphviz library. I have followed the documentation and examples provided, but the graph does not appear on the screen.Here is dot:

digraph {
                graph [style="filled",fillcolor="#edf0f7",color="grey50"]
                node [style="filled",fillcolor="#a2b4d6",color="#000000",fontname="Helvetica",fontsize="10",shape="polygon"]
                edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]
                subgraph "cluster_oam_a1a9"{ 
                    id="oam_a1a9" style="filled, dashed" label="oam" "common_adfb" "lldp_07c4"
                    subgraph "cluster_common_adfb"{ 
                        id="common_adfb" style="filled, bold" label="common" "data_thread_d165" "dwn_thread_dc59" "init_da14" "sync_thread_8499"
                    }
                }
                "common_adfb" [id="common_adfb" label="common" tooltip="src/oam/common/"];
                "init_da14" [id="init_da14" label="init" tooltip="src/oam/common/init/"];
                "sync_thread_8499" [id="sync_thread_8499" label="sync_thread" tooltip="src/oam/common/sync_thread/"];
                "lldp_07c4" [id="lldp_07c4" label="lldp" tooltip="src/oam/lldp/"];
                "data_thread_d165" [id="data_thread_d165" label="data_thread" tooltip="src/oam/common/data_thread/"];
                "dwn_thread_dc59" [id="dwn_thread_dc59" label="dwn_thread" tooltip="src/oam/common/dwn_thread/"];
                "common_adfb" -> "init_da14" [id="common_adfb^init_da14" label="13" color="red"];
                "common_adfb" -> "sync_thread_8499" [id="common_adfb^sync_thread_8499" label="3" color="red"];
                "common_adfb" -> "lldp_07c4" [id="common_adfb^lldp_07c4" label="7" color="red"];
                "common_adfb" -> "data_thread_d165" [id="common_adfb^data_thread_d165" label="4" color="red"];
                "common_adfb" -> "dwn_thread_dc59" [id="common_adfb^dwn_thread_dc59" label="2" color="red"];
                "init_da14" -> "common_adfb" [id="init_da14^common_adfb" label="10" color="red"];
                "init_da14" -> "lldp_07c4" [id="init_da14^lldp_07c4" label="3" color="red"];
                "init_da14" -> "data_thread_d165" [id="init_da14^data_thread_d165" label="1" color="red"];
                "init_da14" -> "dwn_thread_dc59" [id="init_da14^dwn_thread_dc59" label="1" color="red"];
                "init_da14" -> "sync_thread_8499" [id="init_da14^sync_thread_8499" label="1" color="red"];
                "sync_thread_8499" -> "common_adfb" [id="sync_thread_8499^common_adfb" label="7" color="red"];
                "sync_thread_8499" -> "init_da14" [id="sync_thread_8499^init_da14" label="4" color="red"];
                "sync_thread_8499" -> "data_thread_d165" [id="sync_thread_8499^data_thread_d165" label="1" color="red"];
                "sync_thread_8499" -> "lldp_07c4" [id="sync_thread_8499^lldp_07c4" label="1" color="red"];
                "lldp_07c4" -> "common_adfb" [id="lldp_07c4^common_adfb" label="29" color="red"];
                "lldp_07c4" -> "init_da14" [id="lldp_07c4^init_da14" label="21" color="red"];
                "lldp_07c4" -> "sync_thread_8499" [id="lldp_07c4^sync_thread_8499" label="2" color="red"];
                "lldp_07c4" -> "data_thread_d165" [id="lldp_07c4^data_thread_d165" label="5" color="red"];
                "lldp_07c4" -> "dwn_thread_dc59" [id="lldp_07c4^dwn_thread_dc59" label="1" color="red"];
                "data_thread_d165" -> "common_adfb" [id="data_thread_d165^common_adfb" label="2" color="red"];
                "data_thread_d165" -> "init_da14" [id="data_thread_d165^init_da14" label="1" color="red"];
                "data_thread_d165" -> "lldp_07c4" [id="data_thread_d165^lldp_07c4" label="2" color="red"];
                "dwn_thread_dc59" -> "common_adfb" [id="dwn_thread_dc59^common_adfb" label="3" color="red"];
                "dwn_thread_dc59" -> "init_da14" [id="dwn_thread_dc59^init_da14" label="1" color="red"];
                "dwn_thread_dc59" -> "lldp_07c4" [id="dwn_thread_dc59^lldp_07c4" label="1" color="red"];
                "dwn_thread_dc59" -> "data_thread_d165" [id="dwn_thread_dc59^data_thread_d165" label="1" color="red"];
            }

I kindly request your guidance and expertise in resolving this issue. If there are any specific steps or configurations that I may have overlooked, please let me know. Any insights or suggestions you can provide would be highly appreciated.

Thank you for your time and consideration. I look forward to your response.