dagrejs / graphlib-dot

A DOT language parser and writer for graphlib
MIT License
226 stars 42 forks source link

Reverse graph direction #26

Open anilsamuel opened 8 years ago

anilsamuel commented 8 years ago

Hi

  1. http://d3js.org/d3.v3.js
  2. http://cpettitt.github.io/project/graphlib-dot/v0.5.2/graphlib-dot.js
  3. http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.js

I am using the scripts above to draw ER diagrm as below. I like the grah direction to be reversed. Is that possible ?

image

cmdcolin commented 8 years ago

I believe you can pass parameters to configure the layout in dagre-d3, which are passed as parameters to the dagre library https://github.com/cpettitt/dagre/wiki#configuring-the-layout