summaryrefslogtreecommitdiff
path: root/src/graph.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.js')
-rw-r--r--src/graph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.js b/src/graph.js
index f7afe27..0b2917c 100644
--- a/src/graph.js
+++ b/src/graph.js
@@ -18,7 +18,7 @@ export default function buildGraph(db, handlers) {
db.page.forEach((item, index) => {
const node = {
- title: item.title,
+ title: index + 1 + " " + item.title,
id: index,
data: item,
groups: [],
@@ -167,7 +167,7 @@ export default function buildGraph(db, handlers) {
const { source, target } = link;
return visible.has(source.id) && visible.has(target.id);
});
- console.log(selectedData);
+ // console.log(selectedData);
graph.graphData(selectedData);
zoomIn();
};