new D3GraphCanvas(config, handleZoom, formatResponse)
Create a new D3 graph from a JSON object. Adapted from https://observablehq.com/@d3/force-directed-graph#chart and https://www.d3indepth.com/zoom-and-pan/
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | object | The sparqlModule configuration. Properties
| |||||||||||||||
handleZoom | function | The function that handles the zoom. | |||||||||||||||
formatResponse | function | The function that formats the response from JSON into a list of nodes and links. |
- Source