You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,7 @@
10
10
React D3 Tree is a [React](http://facebook.github.io/react/) component that lets you represent hierarchical data (e.g. ancestor trees, organisational structure, package dependencies) as an animated & interactive tree graph by leveraging [D3](https://d3js.org/)'s `tree` layout.
11
11
12
12
13
-
## Contents
14
-
-[Contents](#contents)
13
+
## Contents <!-- omit in toc -->
15
14
-[Demo](#demo)
16
15
-[Installation](#installation)
17
16
-[Usage](#usage)
@@ -21,12 +20,15 @@ React D3 Tree is a [React](http://facebook.github.io/react/) component that lets
> **Note:**`props.useCollapseData` and `props.initialDepth` are mutually exclusive. If `useCollapseData` is set, `initialDepth` values will be ignored.
282
284
285
+
286
+
## Keeping large trees responsive
287
+
Attempting to render large trees with animated transitions may cause significant input lag. This is due to limitations related to the way D3's `select().transition()` enqueues calls to `requestAnimationFrame`, discussed [here](https://github.com/bkrem/react-d3-tree/issues/41#issuecomment-338425414).
288
+
289
+
Until a custom debounce for expand/collapse has been implemented, **it is therefore recommended to set `props.transitionDuration` to `0` for large tree graphs** if you're experiencing responsiveness issues.
290
+
291
+
283
292
## External data sources
284
293
Statically hosted JSON or CSV files can be used as data sources via the additional `treeUtil` module.
0 commit comments