Comments (4)
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.
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.
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.
its ok, thank you very much
from d3-pedigree-examples.
Related Issues (19)
- Example with descendants HOT 1
- how to convert this to top to bottom HOT 1
- can i make the elbow function vertical? HOT 1
- Right to left? HOT 2
- Trying to expand children/parent on every node HOT 2
- Upgrade to d3 version 4.x HOT 4
- How can i make it vertical (top to bottom) rather than horizontal? HOT 7
- Add a vertical pedigree example
- Family siblings HOT 1
- Text wrap issue in transitions.html HOT 1
- Document the data structure used and the reasoning behind it HOT 2
- Long name wrapping into OOP code
- Support for multiple interconnections of different branches? HOT 1
- Showing the full tree HOT 1
- Marriage relationships in pedigree HOT 5
- Missing html tags HOT 2
- How to use IBD relation ship PI_HAt value to plot the pedigree plot HOT 5
- What if a child has 3 step dads HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3-pedigree-examples.