dc-js / dc.graph.js

interactive network visualization
Apache License 2.0
97 stars 24 forks source link

Rendering of nested subgraphs fails. #118

Open OlegJakushkin opened 4 years ago

OlegJakushkin commented 4 years ago

Example graph:

digraph D {

  subgraph cluster_p {
    label = "Parent";

    subgraph cluster_c1 {
      label = "Child one";
      a;

      subgraph cluster_gc_1 {
        label = "Grand-Child one";
         b;
      }
      subgraph cluster_gc_2 {
        label = "Grand-Child two";
          c;
          d;
          c->d;
      }

    }

    subgraph cluster_c2 {
      label = "Child two";
      e;
    }
  }
} 

Application example: Simple graph viewer sample

How it renders in Viz.JS : image

Errors we get in Simple graph viewer sample (and it does not render data correctly): image

Code context image

gordonwoodhull commented 4 years ago

Hi @OlegJakushkin, thanks for the report and the example input!

I can reproduce this. It looks like it should be supported, but clearly something is going wrong.

I'll try to take a look sometime in the next week.