Coder Social home page Coder Social logo

Comments (4)

justincy avatar justincy commented on May 29, 2024

In your code you have this:

var svg = d3.select("#fullmode-chart").append("svg")
        .attr("width", width)
        .attr("height", height)
        .attr("object-fit", "cover")
        .call(zoom)
        .append("g")
        .attr("transform", "translate(40,0)");

The transform in the last line is what determines the starting position. It moves (pans) the svg container. Just modify the transform values so that the start node is where you want it based on the size of your container.

from d3-pedigree-examples.

blu94 avatar blu94 commented on May 29, 2024

sorry, because i have to create many different tree, with different origin node location, is there any way to get the location of the origin node? and zoom to the location? and also for the method that you mention, when i zoom it will jump how to solve this?,

from d3-pedigree-examples.

justincy avatar justincy commented on May 29, 2024

Sorry but I don't have answers for you.

On Thu, Aug 25, 2016 at 11:36 AM, YAP CHENG WEI [email protected]
wrote:

sorry, because i have to create many different tree, with different origin
node location, is there any way to get the location of the origin node? and
zoom to the location? and also for the method that you mention, when i zoom
it will jump how to solve this?,


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#12 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_Uko-1FpsdK-K--4AvqQCJVePAH4a7ks5qjcSOgaJpZM4Js878
.

from d3-pedigree-examples.

blu94 avatar blu94 commented on May 29, 2024

its ok, thank you very much

from d3-pedigree-examples.

Related Issues (19)

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.