score:5

*Accepted answer*

Use d3.svg.symbol, as in the force-directed symbols example.

Source: stackoverflow.com

#### Related Query

- Different node symbols for d3.js force-directed graph
- force directed graph different cluster for different groups
- d3 force directed graph using node names for links
- Responsive force directed D3 graph with bounding box with different node radii
- Add text label to d3 node in Force directed Graph and resize on hover
- D3 force directed graph with drag and drop support to make selected node position fixed when dropped
- Prevent node overlap in force directed graph
- How to calculate in-degree, out-degree and weigted degree for force directed graph (d3.js)?
- Both single and double click on a node in d3 force directed graph
- Interactively fixing a node in a directed force graph
- d3js Force Directed Graph - Click on node to popup infobox which read from JSON
- Zooming to a clicked node on a D3 Force Directed Graph
- How to calculate a modified Path for different size circle in Force directed arrow graph?
- D3 force directed graph node - text is being duplicated when expading
- Highlight a node and its neighbour node in force directed graph
- End points of the links of the force directed graph always stuck to left corner of the rectangular node
- force directed graph change color of all connected node on mouseover
- How to make d3js force directed graph less shaky when a node is dragged?
- d3.js Node Position in Force Directed Graph following Search
- D3.js - Changing force directed graph node from circle to svg:rect
- D3v4: missing text in circle for force directed graph
- d3.js Force Directed Graph - Using Images instead of Circles for the Nodes
- Removing duplicate edges from an array for a d3 force directed graph
- styling node label not working in d3 force directed graph
- d3 force graph using node names for links
- parameterized D3js force directed graph node positioning
- Forced directed D3 Graph setting specific image for each node
- force directed graph - define the color of a node, if the node is source and target at the same time
- Trying multiple approaches to make the node size of a force directed graph proportional to it's degree
- date time parsing and filtering for a d3.js force directed graph

#### More Query from same tag

- d3.js drawing circles with throbbing outer lines
- Crossfilter and D3: Filter by group AND dimension
- DC js with large dataset and many dimensions
- How to add drop shadow to d3.js pie or donut chart
- Scale returning value larger than domain
- Draw curve between draggable points with control points to adjust curve SVG and d3.js
- How to make inner html elements drag along with parent element in d3 js
- d3js search nodes and its child
- D3.js Timeline does not filter Points of interest on map at all
- d3.js fisheye; move focus to axis intersection
- DC.JS Composite Chart Not Displaying Last Value
- How to output SVG in a Jupyter notebook using jsdom, D3 and IJavascript
- Drawing D3 Rectangles
- D3 enter/exit groups of circles for paths
- Async ajax calls messes up image source
- How to fill the area between the x-segments of two lines in d3.js?
- How to find the highest attribute in a dataset, then display the "name" associated with that
- D3.js: Adapting zoom example to work with line graph?
- Round the edges of a closed path in d3 donut chart
- Javascript - one function is dependent on others running first
- D3 stacked bar graph, with each stack a different colour set by the different groups,
- D3.js wrong line chart direction
- How to read D3 node label text into a div/paragraph element?
- How to give create a bar graph using D3 where each individual bar is a different color?
- D3 scatterplot on time series multi-line line graph
- Find/recenter arbitrary node in d3 force-directed layout
- How to improve my simple nested data binding in d3?
- d3 v5 force simulation: how to use stop & tick
- Recursively (or iteratively) make a nested html table with d3.js?
- d3js line graph not showing