Git Product home page Git Product logo

Comments (5)

bumbeishvili avatar bumbeishvili commented on August 11, 2024

Currently, it's not possible and not planned as well, I will keep this issue open though

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

Here is an in-progress example of using horizontal layout - https://observablehq.com/d/e106c59dbd9f6151

You can pass layout options like this:

chart.layout('h') // horizontal
chart.layout('v') // vertical

from org-chart.

darshanagandhi90 avatar darshanagandhi90 commented on August 11, 2024

How can we set this layout option in angular?

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

In the new, dev version (development branch),4 layout types are implemented which can be changed at runtime

Layout can be set using

chart.layout('left')
chart.layout('top')
chart.layout('right')
chart.layout('bottom')

https://github.com/bumbeishvili/d3-organization-chart/blob/b64f9ef60f9eeff48969df2ecead9a5504c501f3/src/d3-org-chart.js#L64

Layouts.mp4

from org-chart.

bumbeishvili avatar bumbeishvili commented on August 11, 2024

The new version is published, closing this.

You can get more info about the new org-chart version in this Medium article

from org-chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.