Skip to content

Commit

Permalink
Changed the inital zoom to fit the initial selection
Browse files Browse the repository at this point in the history
  • Loading branch information
plechoss committed May 26, 2020
1 parent 35cecbe commit 69c8ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class Graph {

const zoom = d3.zoom().on("zoom", this.zoomed.bind(this));

const initialScale = 0.1;
const initialScale = 0.8;

// https://stackoverflow.com/questions/16178366/d3-js-set-initial-zoom-level
const svg = container
Expand Down

1 comment on commit 69c8ef8

@plechoss
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#35

Please sign in to comment.