Comments (4)
you can add '.text(function (d)){return d.name}' in the function appendTextToNode and delete both '.attr('class'...)' and '.html(...)'in the neo4jd3.js
from neo4jd3.
It does not work when I changed as you suggested @laaron2008
function appendTextToNode(node) {
return node.append('text')
.text(function (d){return d.name})
.attr('fill', '#ffffff')
.attr('font-size', function(d) {
return icon(d) ? (options.nodeRadius + 'px') : '10px';
})
.attr('pointer-events', 'none')
.attr('text-anchor', 'middle')
.attr('y', function(d) {
return icon(d) ? (parseInt(Math.round(options.nodeRadius * 0.32)) + 'px') : '4px';
});
}
Do you have any idea why? @jackyrong @laaron2008
Thank youuuuu
from neo4jd3.
It does not work when I changed as you suggested @laaron2008
function appendTextToNode(node) { return node.append('text') .text(function (d){return d.name}) .attr('fill', '#ffffff') .attr('font-size', function(d) { return icon(d) ? (options.nodeRadius + 'px') : '10px'; }) .attr('pointer-events', 'none') .attr('text-anchor', 'middle') .attr('y', function(d) { return icon(d) ? (parseInt(Math.round(options.nodeRadius * 0.32)) + 'px') : '4px'; }); }
Do you have any idea why? @jackyrong @laaron2008
Thank youuuuu
Hi, you need to run function appendTextToNode() in appendNodeToGraph(), default setting is only running this function when options.icon argument is not null.
from neo4jd3.
Hello @eisman,
How to achieve appendTextToNode functionality?
Please do needful help to achieve this functionality.
from neo4jd3.
Related Issues (20)
- Click function to make the collapse of the graph HOT 2
- Getting n-1 duplicate parent node if it has n child node HOT 2
- How to add different color to parent node and child node HOT 2
- A graph showing different root nodes HOT 2
- Connect to my neo4j HOT 1
- How to integrate this with reactjs HOT 1
- After everything is ready to fail, can you see what the problem is? Thank you
- How to run this. HOT 8
- How to properly reset it wihout reloading the page HOT 1
- Creating TypeScript Library HOT 7
- How can I implement this feature of Custom node colors by node type? HOT 1
- How to defined a text node?
- Can I start this project at other ports except localhost:8080
- How to make relationship clickable?
- Could you explain the idea behind your calculation? HOT 1
- neo4j browser version with multiple relations between two nodes HOT 1
- Help HOT 2
- help
- how to use in react
- 项目启动不了? docs 目录下, 可以直接访问;
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 neo4jd3.