{
  "id": "task_libraries:graph-visualization/javascript",
  "path": "/exapedia/javascript-graph-visualization-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript graph visualization libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript graph visualization libraries draw networks of nodes and the edges that connect them in the browser. A layout step positions each node, often with a force simulation that pulls linked nodes together and pushes other nodes apart. These libraries draw the knowledge graphs, dependency maps, social networks, and fraud-ring views in analysis tools and dashboards."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript graph visualization libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#d",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cytoscape-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#echarts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#highcharts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#force-graph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vis-network",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sigma-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#threed-force-graph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#d",
          "label": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F132"
        },
        {
          "t": "text",
          "text": ", a count that covers all of its chart and graphics uses."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Force-directed layout included",
            "Three-dimensional network scene"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#d",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cytoscape-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#echarts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#highcharts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#force-graph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#vis-network",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sigma-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#threed-force-graph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "d",
          "name": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/d3/d3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/d3"
            },
            {
              "label": "Docs",
              "href": "https://d3js.org/getting-started"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://d3js.org/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F131"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mermaid-js/mermaid",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export function createLayoutElementGroups(\n  element: D3Selection,\n  { edgePathsClass = 'edges edgePaths' }: CreateLayoutElementGroupsOptions = {}\n): LayoutElementGroups {\n  const rootGroups = element.insert('g').attr('class', 'root');\n  const clusters = rootGroups.insert('g').attr('class', 'clusters');\n  const edgePaths = rootGroups.insert('g').attr('class', edgePathsClass);\n  const edgeLabels = rootGroups.insert('g').attr('class', 'edgeLabels');\n  const nodes = rootGroups.insert('g').attr('class', 'nodes');\n\n  return { clusters, edgePaths, edgeLabels, nodes, rootGroups };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mermaid-js/mermaid/blob/2b1e7f66c2bafcfa2cf5cfe1fdf5db569d7ffddb/packages/mermaid/src/rendering-util/createGraph.ts#L29-L40",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20using%20d3%20to%20build%20graph%20SVG%20layers%2C%20merge%20graph%20elements%20and%20fit%20network%20camera%20bounds&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F131"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "\n\nimport * as d3 from \"https://cdn.jsdelivr.net/npm/d3@7/+esm\";\n\n// Declare the chart dimensions and margins.\nconst width = 640;\nconst height = 400;\nconst marginTop = 20;\nconst marginRight = 20;\nconst marginBottom = 30;\nconst marginLeft = 40;\n\n// Declare the x (horizontal position) scale.\nconst x = d3.scaleUtc()\n    .domain([new Date(\"2023-01-01\"), new Date(\"2024-01-01\")])\n    .range([marginLeft, width - marginRight]);\n\n// Declare the y (vertical position) scale.\nconst y = d3.scaleLinear()\n    .domain([0, 100])\n    .range([height - marginBottom, marginTop]);\n\n// Create the SVG container.\nconst svg = d3.create(\"svg\")\n    .attr(\"width\", width)\n    .attr(\"height\", height);\n\n// Add the x-axis.\nsvg.append(\"g\")\n    .attr(\"transform\", `translate(0,${height - marginBottom})`)\n    .call(d3.axisBottom(x));\n\n// Add the y-axis.\nsvg.append(\"g\")\n    .attr(\"transform\", `translate(${marginLeft},0)`)\n    .call(d3.axisLeft(y));\n\n// Append the SVG element.\ncontainer.append(svg.node());\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://d3js.org/getting-started",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cytoscape-js",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cytoscape/cytoscape.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/cytoscape"
            },
            {
              "label": "Docs",
              "href": "https://js.cytoscape.org/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://js.cytoscape.org/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/HEmile/juggl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "mergeToGraph(elements: ElementDefinition[], batch=true, triggerGraphChanged=true): IMergedToGraph {\n      if (batch) {\n        this.viz.startBatch();\n      }\n      const addElements: ElementDefinition[] = [];\n      const mergedCollection = this.viz.collection();\n      elements.forEach((n) => {\n        if (this.viz.$id(n.data.id).length === 0) {\n          addElements.push(n);\n        } else {\n          const gElement = this.viz.$id(n.data.id);\n          const extraClasses = CLASSES.filter((clazz) => gElement.hasClass(clazz));\n\n          // @ts-ignore\n          extraClasses.push(...gElement.classes().filter((el: string) => el.startsWith('global-') || el.startsWith('local-')));\n\n          // TODO: Maybe make an event here\n          gElement.classes(n.classes);\n          for (const clazz of extraClasses) {\n            gElement.addClass(clazz);\n          }\n          gElement.data(n.data);\n          mergedCollection.merge(gElement);\n        }\n      });\n      const addCollection = this.viz.add(addElements);\n      mergedCollection.merge(addCollection);\n      if (triggerGraphChanged) {\n        this.onGraphChanged(false);\n      }\n      if (batch) {\n        this.viz.endBatch();\n      }\n      return {merged: mergedCollection, added: addCollection};\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/HEmile/juggl/blob/4c18c9ed009b8074da704ae3053df607f21e66ed/src/viz/visualization.ts#L511-L545",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20using%20cytoscape%20to%20build%20graph%20SVG%20layers%2C%20merge%20graph%20elements%20and%20fit%20network%20camera%20bounds&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import cytoscape from 'cytoscape';\n\nvar cy = cytoscape({\n  container: document.getElementById('cy') // container to render in\n});\n\n// can use reference to eles later\nvar eles = cy.add([\n  { group: 'nodes', data: { id: 'n0' }, position: { x: 100, y: 100 } },\n  { group: 'nodes', data: { id: 'n1' }, position: { x: 200, y: 200 } },\n  { group: 'edges', data: { id: 'e0', source: 'n0', target: 'n1' } }\n]);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/cytoscape/cytoscape.js/contents/documentation/md/getting-started.md?ref=unstable",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "echarts",
          "name": [
            {
              "t": "fact",
              "fact": "F163"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/apache/echarts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/echarts"
            },
            {
              "label": "Docs",
              "href": "https://echarts.apache.org/handbook/en/get-started/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://echarts.apache.org/handbook/en/get-started/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/echarts-examples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "function (graph) {\n  myChart.hideLoading();\n\n  graph.nodes.forEach(function (node: GraphNode) {\n    node.label = {\n      show: node.symbolSize > 30\n    };\n  });\n  option = {\n    title: {\n      text: 'Les Miserables',\n      subtext: 'Default layout',\n      top: 'bottom',\n      left: 'right'\n    },\n    tooltip: {},\n    legend: [\n      {\n        // selectedMode: 'single',\n        data: graph.categories.map(function (a: { name: string }) {\n          return a.name;\n        })\n      }\n    ],\n    animationDuration: 1500,\n    animationEasingUpdate: 'quinticInOut',\n    series: [\n      {\n        name: 'Les Miserables',\n        type: 'graph',\n        legendHoverLink: false,\n        layout: 'none',\n        data: graph.nodes,\n        links: graph.links,\n        categories: graph.categories,\n        roam: true,\n        label: {\n          position: 'right',\n          formatter: '{b}'\n        },\n        lineStyle: {\n          color: 'source',\n          curveness: 0.3\n        },\n        emphasis: {\n          focus: 'adjacency',\n          lineStyle: {\n            width: 10\n          }\n        }\n      }\n    ]\n  };\n\n  myChart.setOption(option);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apache/echarts-examples/blob/88ca004030e999073a15303e5fe32462b8fefae2/public/examples/ts/graph.ts#L16-L71",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=echarts%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F163"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "\n      // Initialize the echarts instance based on the prepared dom\n      var myChart = echarts.init(document.getElementById('main'));\n\n      // Specify the configuration items and data for the chart\n      var option = {\n        title: {\n          text: 'ECharts Getting Started Example'\n        },\n        tooltip: {},\n        legend: {\n          data: ['sales']\n        },\n        xAxis: {\n          data: ['Shirts', 'Cardigans', 'Chiffons', 'Pants', 'Heels', 'Socks']\n        },\n        yAxis: {},\n        series: [\n          {\n            name: 'sales',\n            type: 'bar',\n            data: [5, 20, 36, 10, 10, 20]\n          }\n        ]\n      };\n\n      // Display the chart using the configuration and the data defined above.\n      myChart.setOption(option);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://echarts.apache.org/handbook/en/get-started/",
                  "label": [
                    {
                      "t": "text",
                      "text": "Get started docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "highcharts",
          "name": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/highcharts/highcharts-dist"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/highcharts"
            },
            {
              "label": "Docs",
              "href": "https://www.highcharts.com/docs/chart-and-series-types/network-graph"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F251"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.highcharts.com/docs/chart-and-series-types/network-graph",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "    document.addEventListener('DOMContentLoaded', function () {\n        const chart = Highcharts.chart('container', {\n            chart: {\n                type: 'bar'\n            },\n            title: {\n                text: 'Fruit Consumption'\n            },\n            xAxis: {\n                categories: ['Apples', 'Bananas', 'Oranges']\n            },\n            yAxis: {\n                title: {\n                    text: 'Fruit eaten'\n                }\n            },\n            series: [{\n                name: 'Jane',\n                data: [1, 0, 4]\n            }, {\n                name: 'John',\n                data: [5, 7, 3]\n            }]\n        });\n    });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/highcharts/highcharts/contents/docs/getting-started/your-first-chart.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "your-first-chart.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=highcharts%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F181"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "force-graph",
          "name": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vasturiano/force-graph"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/force-graph"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/vasturiano/force-graph/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/vasturiano/force-graph/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "\n    // Random tree\n    const N = 300;\n    const gData = {\n      nodes: [...Array(N).keys()].map(i => ({ id: i })),\n      links: [...Array(N).keys()]\n        .filter(id => id)\n        .map(id => ({\n          source: id,\n          target: Math.round(Math.random() * (id-1))\n        }))\n    };\n\n    const Graph = new ForceGraph(document.getElementById('graph'))\n        .linkDirectionalParticles(2)\n        .graphData(gData);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/vasturiano/force-graph/contents/example/basic/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=force-graph%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "vis-network",
          "name": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/visjs/vis-network"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/vis-network"
            },
            {
              "label": "Docs",
              "href": "https://visjs.github.io/vis-network/docs/network/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F65"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://visjs.github.io/vis-network/docs/network/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F73"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "\n    // create an array with nodes\n    var nodes = new vis.DataSet([\n        {id: 1, label: 'Node 1'},\n        {id: 2, label: 'Node 2'},\n        {id: 3, label: 'Node 3'},\n        {id: 4, label: 'Node 4'},\n        {id: 5, label: 'Node 5'}\n    ]);\n\n    // create an array with edges\n    var edges = new vis.DataSet([\n        {from: 1, to: 3},\n        {from: 1, to: 2},\n        {from: 2, to: 4},\n        {from: 2, to: 5}\n    ]);\n\n    // create a network\n    var container = document.getElementById('mynetwork');\n\n    // provide the data in the vis format\n    var data = {\n        nodes: nodes,\n        edges: edges\n    };\n    var options = {};\n\n    // initialize your network!\n    var network = new vis.Network(container, data, options);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://visjs.github.io/vis-network/docs/network/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20using%20vis-network%20to%20build%20graph%20SVG%20layers%2C%20merge%20graph%20elements%20and%20fit%20network%20camera%20bounds&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sigma-js",
          "name": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jacomyal/sigma.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/sigma"
            },
            {
              "label": "Docs",
              "href": "https://www.sigmajs.org/docs/get-started/quickstart/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F87"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.sigmajs.org/docs/get-started/quickstart/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F220"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gephi/gephi-lite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "function fitCameraToMercatorExtent(sigma: Sigma, extent: { minX: number; minY: number; maxX: number; maxY: number }) {\n  sigma.setCustomBBox(MERCATOR_WORLD);\n  sigma.getCamera().setState({ angle: 0, x: 0.5, y: 0.5, ratio: 1 });\n\n  if (extent.minX > extent.maxX || extent.minY > extent.maxY) return;\n\n  const centerX = (extent.minX + extent.maxX) / 2;\n  const centerY = (extent.minY + extent.maxY) / 2;\n  const extentW = extent.maxX - extent.minX;\n  const extentH = extent.maxY - extent.minY;\n\n  // Visible range at ratio=1 with a 1×1 bbox: sigma fits the square to the\n  // viewport preserving aspect ratio, so the longer axis spans W/H or H/W.\n  const { width, height } = sigma.getDimensions();\n  const visibleW = width >= height ? width / height : 1;\n  const visibleH = width >= height ? 1 : height / width;\n\n  const ratio = Math.max(extentW / visibleW, extentH / visibleH, 0.01);\n  sigma.getCamera().setState({ angle: 0, x: centerX, y: centerY, ratio });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gephi/gephi-lite/blob/9570b9cb8bb0fcd9b0912bc68601a13cbaad07ca/packages/gephi-lite/src/core/sigma/index.ts#L123-L142",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F233"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20using%20sigma%20to%20build%20graph%20SVG%20layers%2C%20merge%20graph%20elements%20and%20fit%20network%20camera%20bounds&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F220"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import Graph from \"graphology\";\nimport Sigma from \"sigma\";\n\n// Create a graph with graphology\nconst graph = new Graph();\n\n// Add nodes with positions, sizes, colors, and labels\ngraph.addNode(\"1\", {\n  label: \"Node 1\",\n  x: 0,\n  y: 0,\n  size: 1,\n  color: \"blue\",\n});\ngraph.addNode(\"2\", {\n  label: \"Node 2\",\n  x: 5,\n  y: 10,\n  size: 1,\n  color: \"red\",\n});\ngraph.addNode(\"3\", {\n  label: \"Node 3\",\n  x: 10,\n  y: 0,\n  size: 1,\n  color: \"green\",\n});\n\n// Add edges between nodes\ngraph.addEdge(\"1\", \"2\", { size: 1 });\ngraph.addEdge(\"2\", \"3\", { size: 1 });\ngraph.addEdge(\"3\", \"1\", { size: 1 });\n\n// Render the graph in the container\nconst renderer = new Sigma(graph, document.getElementById(\"container\"));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/jacomyal/sigma.js/contents/packages/website/src/content/docs/get-started/quickstart.mdx?ref=main",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.mdx"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F225"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "threed-force-graph",
          "name": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vasturiano/3d-force-graph"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/3d-force-graph"
            },
            {
              "label": "Docs",
              "href": "https://raw.githubusercontent.com/vasturiano/3d-force-graph/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://raw.githubusercontent.com/vasturiano/3d-force-graph/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "\n    // Random tree\n    const N = 300;\n    const gData = {\n      nodes: [...Array(N).keys()].map(i => ({ id: i })),\n      links: [...Array(N).keys()]\n        .filter(id => id)\n        .map(id => ({\n          source: id,\n          target: Math.round(Math.random() * (id-1))\n        }))\n    };\n\n    const Graph = new ForceGraph3D(document.getElementById('3d-graph'))\n        .graphData(gData);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/vasturiano/3d-force-graph/contents/example/basic/index.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=3d-force-graph%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F236"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript graph visualization library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#cytoscape-js",
          "label": [
            {
              "t": "text",
              "text": "Cytoscape.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits interactive graphs that also need graph-analysis operations. "
        },
        {
          "t": "link",
          "href": "#sigma-js",
          "label": [
            {
              "t": "text",
              "text": "Sigma.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " draws large graphs with WebGL, "
        },
        {
          "t": "link",
          "href": "#vis-network",
          "label": [
            {
              "t": "text",
              "text": "vis-network"
            }
          ]
        },
        {
          "t": "text",
          "text": " arranges nodes with a built-in physics engine, and "
        },
        {
          "t": "link",
          "href": "#d",
          "label": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "t": "text",
          "text": " fits fully custom graphics."
        }
      ]
    },
    {
      "q": "What is Cytoscape.js?",
      "a": [
        {
          "t": "link",
          "href": "#cytoscape-js",
          "label": [
            {
              "t": "text",
              "text": "Cytoscape.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a graph theory library for analysis and visualization. It runs graph-analysis operations on the same graph that it renders, styles, and lays out."
        }
      ]
    },
    {
      "q": "What is a force-directed graph?",
      "a": [
        {
          "t": "text",
          "text": "A force-directed graph positions nodes by simulating forces, where links pull connected nodes together and other nodes push apart. "
        },
        {
          "t": "link",
          "href": "#force-graph",
          "label": [
            {
              "t": "text",
              "text": "force-graph"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#vis-network",
          "label": [
            {
              "t": "text",
              "text": "vis-network"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#d",
          "label": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "t": "text",
          "text": " include force layouts."
        }
      ]
    },
    {
      "q": "What is Sigma.js?",
      "a": [
        {
          "t": "link",
          "href": "#sigma-js",
          "label": [
            {
              "t": "text",
              "text": "Sigma.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " renders graphs of thousands of nodes and edges with WebGL. It reads graph data from Graphology, a separate package, and needs an external layout when nodes lack positions."
        }
      ]
    },
    {
      "q": "Is there a React force graph component?",
      "a": [
        {
          "t": "text",
          "text": "The author of "
        },
        {
          "t": "link",
          "href": "#force-graph",
          "label": [
            {
              "t": "text",
              "text": "force-graph"
            }
          ]
        },
        {
          "t": "text",
          "text": " publishes React bindings as react-force-graph. The canvas version draws two-dimensional graphs, and "
        },
        {
          "t": "link",
          "href": "#threed-force-graph",
          "label": [
            {
              "t": "fact",
              "fact": "F236"
            }
          ]
        },
        {
          "t": "text",
          "text": " draws them in three dimensions with ThreeJS."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, d3",
      "display": "D3",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, d3",
      "display": "122.6M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, d3",
      "display": "ISC",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, d3",
      "display": "7.9.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, d3",
      "display": "v7.9.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, d3",
      "display": "113.9K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Computes node layouts, d3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Supports pan and zoom, d3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Handles node clicks, d3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Customizes node appearance, d3",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, d3",
      "display": "npm install d3",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, d3",
      "display": "Combines low-level data, layout, and DOM primitives for custom graph visualizations.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, d3",
      "display": "Controls graph rendering directly",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, d3",
      "display": "Compose SVG or Canvas graphics instead of adopting a fixed graph interface.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, d3",
      "display": "Computes layouts separately from drawing",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, d3",
      "display": "Run force simulations over node objects and draw the positions in application code.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, d3",
      "display": "Graph interfaces require composition",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, d3",
      "display": "Build rendering and interaction from primitives rather than a ready-made graph widget.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, d3",
      "display": "Force simulation mutates input nodes",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, d3",
      "display": "Copy node objects when the application must preserve their original values.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, d3",
      "display": "<script type=\"module\">\n\nimport {forceSimulation, forceCollide, forceX} from \"https://cdn.jsdelivr.net/npm/d3-force@3/+esm\";\n\nconst nodes = [{}, {}];\nconst simulation = forceSimulation(nodes)\n    .force(\"x\", forceX())\n    .force(\"collide\", forceCollide(5))\n    .on(\"tick\", () => console.log(nodes[0].x));\n\n</script>\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, d3",
      "display": "export function createLayoutElementGroups(\n  element: D3Selection,\n  { edgePathsClass = 'edges edgePaths' }: CreateLayoutElementGroupsOptions = {}\n): LayoutElementGroups {\n  const rootGroups = element.insert('g').attr('class', 'root');\n  const clusters = rootGroups.insert('g').attr('class', 'clusters');\n  const edgePaths = rootGroups.insert('g').attr('class', edgePathsClass);\n  const edgeLabels = rootGroups.insert('g').attr('class', 'edgeLabels');\n  const nodes = rootGroups.insert('g').attr('class', 'nodes');\n\n  return { clusters, edgePaths, edgeLabels, nodes, rootGroups };\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, d3",
      "display": "createGraph.ts · createLayoutElementGroups()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, d3",
      "display": "mermaid-js/mermaid",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, mermaid-js/mermaid",
      "display": "91.1K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, mermaid-js/mermaid",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, cytoscape",
      "display": "Cytoscape.js",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, cytoscape",
      "display": "97.7M",
      "asOf": "2026-11-15"
    },
    "F29": {
      "label": "License, cytoscape",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, cytoscape",
      "display": "3.35.0",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Undated package release, cytoscape",
      "display": "v3.35.0",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, cytoscape",
      "display": "11.3K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Computes node layouts, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Supports pan and zoom, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Handles node clicks, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Customizes node appearance, cytoscape",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, cytoscape",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, cytoscape",
      "display": "npm install cytoscape",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, cytoscape",
      "display": "Combines interactive graph visualization, styling, layouts, and graph-analysis operations.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, cytoscape",
      "display": "Combines analysis with graph interaction",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, cytoscape",
      "display": "Run graph-analysis operations alongside an interactive network visualization.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, cytoscape",
      "display": "Exports the rendered graph",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, cytoscape",
      "display": "Save the current view or the entire graph as PNG.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, cytoscape",
      "display": "Image export needs rendered graphs",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, cytoscape",
      "display": "Use a rendered instance; headless analysis cannot produce image exports.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, cytoscape",
      "display": "Labels increase drawing cost",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, cytoscape",
      "display": "Show labels selectively to reduce graph rendering work.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, cytoscape",
      "display": "import cytoscape from 'cytoscape';\n\nvar cy = cytoscape({\n\n  container: document.getElementById('cy'), // container to render in\n\n  elements: [ // list of graph elements to start with\n    { // node a\n      data: { id: 'a' }\n    },\n    { // node b\n      data: { id: 'b' }\n    },\n    { // edge ab\n      data: { id: 'ab', source: 'a', target: 'b' }\n    }\n  ],\n\n  style: [ // the stylesheet for the graph\n    {\n      selector: 'node',\n      style: {\n        'background-color': '#666',\n        'label': 'data(id)'\n      }\n    },\n\n    {\n      selector: 'edge',\n      style: {\n        'width': 3,\n        'line-color': '#ccc',\n        'target-arrow-color': '#ccc',\n        'target-arrow-shape': 'triangle',\n        'curve-style': 'bezier'\n      }\n    }\n  ],\n\n  layout: {\n    name: 'grid',\n    rows: 1\n  }\n\n});\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function, cytoscape",
      "display": "mergeToGraph(elements: ElementDefinition[], batch=true, triggerGraphChanged=true): IMergedToGraph {\n      if (batch) {\n        this.viz.startBatch();\n      }\n      const addElements: ElementDefinition[] = [];\n      const mergedCollection = this.viz.collection();\n      elements.forEach((n) => {\n        if (this.viz.$id(n.data.id).length === 0) {\n          addElements.push(n);\n        } else {\n          const gElement = this.viz.$id(n.data.id);\n          const extraClasses = CLASSES.filter((clazz) => gElement.hasClass(clazz));\n\n          // @ts-ignore\n          extraClasses.push(...gElement.classes().filter((el: string) => el.startsWith('global-') || el.startsWith('local-')));\n\n          // TODO: Maybe make an event here\n          gElement.classes(n.classes);\n          for (const clazz of extraClasses) {\n            gElement.addClass(clazz);\n          }\n          gElement.data(n.data);\n          mergedCollection.merge(gElement);\n        }\n      });\n      const addCollection = this.viz.add(addElements);\n      mergedCollection.merge(addCollection);\n      if (triggerGraphChanged) {\n        this.onGraphChanged(false);\n      }\n      if (batch) {\n        this.viz.endBatch();\n      }\n      return {merged: mergedCollection, added: addCollection};\n    }\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function reference, cytoscape",
      "display": "visualization.ts · mergeToGraph()",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project repository, cytoscape",
      "display": "HEmile/juggl",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project stars, HEmile/juggl",
      "display": "825",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project push date, HEmile/juggl",
      "display": "Feb 2025",
      "asOf": "2025-02-27"
    },
    "F54": {
      "label": "Library name, vis-network",
      "display": "vis-network",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Monthly downloads, vis-network",
      "display": "4.1M",
      "asOf": "2026-11-15"
    },
    "F56": {
      "label": "License, vis-network",
      "display": "(Apache-2.0 OR MIT)",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Package release, vis-network",
      "display": "10.1.5",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Undated package release, vis-network",
      "display": "v10.1.5",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Repository stars, vis-network",
      "display": "3.6K",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Computes node layouts, vis-network",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Supports pan and zoom, vis-network",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Handles node clicks, vis-network",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Customizes node appearance, vis-network",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Install, vis-network",
      "display": "npm install vis-network",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "What it does, vis-network",
      "display": "Displays interactive node-and-edge networks using Canvas, configurable styles and a physics engine.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, vis-network",
      "display": "Includes physics-based node positioning",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, vis-network",
      "display": "Use the physics simulation to arrange nodes and edges.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths lead, vis-network",
      "display": "Clusters larger network views",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths, vis-network",
      "display": "Group nodes into clusters to reduce the visible network.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, vis-network",
      "display": "Hierarchical layout overrides other settings",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, vis-network",
      "display": "Expect its own physics solver and static smooth edges in hierarchical mode.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations lead, vis-network",
      "display": "Random layouts vary between runs",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "limitations, vis-network",
      "display": "Set randomSeed when the initial layout must be repeatable.",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Quickstart, vis-network",
      "display": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <title>Network</title>\n    <script\n      type=\"text/javascript\"\n      src=\"https://unpkg.com/vis-network/standalone/umd/vis-network.min.js\"\n    ></script>\n    <style type=\"text/css\">\n      #mynetwork {\n        width: 600px;\n        height: 400px;\n        border: 1px solid lightgray;\n      }\n    </style>\n  </head>\n  <body>\n    <div id=\"mynetwork\"></div>\n    <script type=\"text/javascript\">\n      // create an array with nodes\n      var nodes = new vis.DataSet([\n        { id: 1, label: \"Node 1\" },\n        { id: 2, label: \"Node 2\" },\n        { id: 3, label: \"Node 3\" },\n        { id: 4, label: \"Node 4\" },\n        { id: 5, label: \"Node 5\" },\n      ]);\n\n      // create an array with edges\n      var edges = new vis.DataSet([\n        { from: 1, to: 3 },\n        { from: 1, to: 2 },\n        { from: 2, to: 4 },\n        { from: 2, to: 5 },\n        { from: 3, to: 3 },\n      ]);\n\n      // create a network\n      var container = document.getElementById(\"mynetwork\");\n      var data = {\n        nodes: nodes,\n        edges: edges,\n      };\n      var options = {};\n      var network = new vis.Network(container, data, options);\n    </script>\n  </body>\n</html>\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Library name, sigma",
      "display": "Sigma.js",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Monthly downloads, sigma",
      "display": "2.7M",
      "asOf": "2026-11-15"
    },
    "F77": {
      "label": "License, sigma",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Package release, sigma",
      "display": "4.0.6",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Undated package release, sigma",
      "display": "v4.0.6",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Repository stars, sigma",
      "display": "12.2K",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Computes node layouts, sigma",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Supports pan and zoom, sigma",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Handles node clicks, sigma",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Customizes node appearance, sigma",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Output formats, sigma",
      "display": "PNG",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Install, sigma",
      "display": "npm install sigma graphology",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "What it does, sigma",
      "display": "Renders Graphology graph data through WebGL with customizable visual styles and interactive camera controls.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, sigma",
      "display": "Styles graphs through data attributes",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, sigma",
      "display": "Map graph attributes and state into node appearance rules.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, sigma",
      "display": "Supports mouse and touch gestures",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, sigma",
      "display": "Pan, zoom, and interact with the graph through built-in gestures.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, sigma",
      "display": "Missing positions need external layouts",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, sigma",
      "display": "Compute node positions before rendering a graph that lacks coordinates.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, sigma",
      "display": "Image export needs another package",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, sigma",
      "display": "Install the separate export-image companion package for image downloads.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Quickstart, sigma",
      "display": "import Graph from \"graphology\";\nimport Sigma from \"sigma\";\n\n// Create a graph with graphology\nconst graph = new Graph();\n\n// Add nodes with positions, sizes, colors, and labels\ngraph.addNode(\"1\", {\n  label: \"Node 1\",\n  x: 0,\n  y: 0,\n  size: 1,\n  color: \"blue\",\n});\ngraph.addNode(\"2\", {\n  label: \"Node 2\",\n  x: 5,\n  y: 10,\n  size: 1,\n  color: \"red\",\n});\ngraph.addNode(\"3\", {\n  label: \"Node 3\",\n  x: 10,\n  y: 0,\n  size: 1,\n  color: \"green\",\n});\n\n// Add edges between nodes\ngraph.addEdge(\"1\", \"2\", { size: 1 });\ngraph.addEdge(\"2\", \"3\", { size: 1 });\ngraph.addEdge(\"3\", \"1\", { size: 1 });\n\n// Render the graph in the container\nconst renderer = new Sigma(graph, document.getElementById(\"container\"));\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project function, sigma",
      "display": "function fitCameraToMercatorExtent(sigma: Sigma, extent: { minX: number; minY: number; maxX: number; maxY: number }) {\n  sigma.setCustomBBox(MERCATOR_WORLD);\n  sigma.getCamera().setState({ angle: 0, x: 0.5, y: 0.5, ratio: 1 });\n\n  if (extent.minX > extent.maxX || extent.minY > extent.maxY) return;\n\n  const centerX = (extent.minX + extent.maxX) / 2;\n  const centerY = (extent.minY + extent.maxY) / 2;\n  const extentW = extent.maxX - extent.minX;\n  const extentH = extent.maxY - extent.minY;\n\n  // Visible range at ratio=1 with a 1×1 bbox: sigma fits the square to the\n  // viewport preserving aspect ratio, so the longer axis spans W/H or H/W.\n  const { width, height } = sigma.getDimensions();\n  const visibleW = width >= height ? width / height : 1;\n  const visibleH = width >= height ? 1 : height / width;\n\n  const ratio = Math.max(extentW / visibleW, extentH / visibleH, 0.01);\n  sigma.getCamera().setState({ angle: 0, x: centerX, y: centerY, ratio });\n}\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project function reference, sigma",
      "display": "index.ts · fitCameraToMercatorExtent()",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project repository, sigma",
      "display": "gephi/gephi-lite",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project stars, gephi/gephi-lite",
      "display": "358",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project push date, gephi/gephi-lite",
      "display": "Nov 2026",
      "asOf": "2026-11-06"
    },
    "F102": {
      "label": "Developer need",
      "display": "Custom graph graphics",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose d3",
      "display": "direct composition of web-standard graphics",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "custom graph graphics",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider cytoscape",
      "display": "graph analysis and interaction should share one API",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Analysis with interactive graphs",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose cytoscape",
      "display": "graph operations alongside visualization",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "analysis with interactive graphs",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Data-driven WebGL graph views",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose sigma",
      "display": "attribute-based visual styles",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "data-driven WebGL graph views",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider vis-network",
      "display": "a built-in physics layout is needed",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need",
      "display": "Physics-driven network diagrams",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Why choose vis-network",
      "display": "built-in node-position simulation",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need in introduction",
      "display": "physics-driven network diagrams",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "When to consider sigma",
      "display": "Graphology data should drive a styled WebGL renderer",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Page introduction",
      "display": "JavaScript graph visualization libraries let application developers display connected nodes and edges.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which JavaScript graph-visualization library should I choose?",
      "display": "D3 supplies low-level primitives for custom graphics.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Which JavaScript graph-visualization library should I choose?",
      "display": "Cytoscape.js combines visualization with graph-analysis operations.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Which JavaScript graph-visualization library should I choose?",
      "display": "Sigma.js renders Graphology data using WebGL.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Which JavaScript graph-visualization library should I choose?",
      "display": "vis-network includes physics-based node positioning.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Is computing a graph layout the same as rendering it?",
      "display": "A D3 force simulation computes positions by mutating node objects.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Is computing a graph layout the same as rendering it?",
      "display": "Sigma.js renders a Graphology graph and needs a layout algorithm if imported data lacks positions.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Sigma.js include a graph data model?",
      "display": "Sigma.js requires Graphology as its graph data structure; install both packages.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Which libraries export graph images?",
      "display": "Cytoscape.js exports the graph view as PNG.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Which libraries export graph images?",
      "display": "Sigma.js image export uses the separate export-image companion package.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can Cytoscape.js export an image from headless analysis?",
      "display": "Its image-export function requires a currently rendered graph, so it cannot run on a headless instance.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Why do D3 force simulations change my input records?",
      "display": "The simulation mutates the passed node objects; copy records when the original values must remain unchanged.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Why does a vis-network hierarchy change physics and edge styles?",
      "display": "Enabling hierarchy switches to its hierarchical repulsion solver and converts dynamic smooth edges to static smooth edges.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: How can a vis-network layout be repeatable?",
      "display": "Set randomSeed to get the same initial layout across runs.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "Library name, d3",
      "display": "D3",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Monthly downloads, d3",
      "display": "125.9M",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "License, d3",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Package release, d3",
      "display": "7.9.2",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Package release date, d3",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Install, d3",
      "display": "npm install d3",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Quickstart, d3",
      "display": "\n\nimport * as d3 from \"https://cdn.jsdelivr.net/npm/d3@7/+esm\";\n\n// Declare the chart dimensions and margins.\nconst width = 640;\nconst height = 400;\nconst marginTop = 20;\nconst marginRight = 20;\nconst marginBottom = 30;\nconst marginLeft = 40;\n\n// Declare the x (horizontal position) scale.\nconst x = d3.scaleUtc()\n    .domain([new Date(\"2023-01-01\"), new Date(\"2024-01-01\")])\n    .range([marginLeft, width - marginRight]);\n\n// Declare the y (vertical position) scale.\nconst y = d3.scaleLinear()\n    .domain([0, 100])\n    .range([height - marginBottom, marginTop]);\n\n// Create the SVG container.\nconst svg = d3.create(\"svg\")\n    .attr(\"width\", width)\n    .attr(\"height\", height);\n\n// Add the x-axis.\nsvg.append(\"g\")\n    .attr(\"transform\", `translate(0,${height - marginBottom})`)\n    .call(d3.axisBottom(x));\n\n// Add the y-axis.\nsvg.append(\"g\")\n    .attr(\"transform\", `translate(${marginLeft},0)`)\n    .call(d3.axisLeft(y));\n\n// Append the SVG element.\ncontainer.append(svg.node());\n",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Repository stars, d3",
      "display": "114.0K",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Force-directed layout included, d3",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Three-dimensional network scene, d3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Architecture, d3",
      "display": "Low-level web graphics and force/layout building blocks; custom rendering/application UI is authored by the caller",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Download interpretation, d3",
      "display": "Package downloads include many non-network chart/graphics uses and do not measure graph-visualization adoption.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, d3",
      "display": "export function createLayoutElementGroups(\n  element: D3Selection,\n  { edgePathsClass = 'edges edgePaths' }: CreateLayoutElementGroupsOptions = {}\n): LayoutElementGroups {\n  const rootGroups = element.insert('g').attr('class', 'root');\n  const clusters = rootGroups.insert('g').attr('class', 'clusters');\n  const edgePaths = rootGroups.insert('g').attr('class', edgePathsClass);\n  const edgeLabels = rootGroups.insert('g').attr('class', 'edgeLabels');\n  const nodes = rootGroups.insert('g').attr('class', 'nodes');\n\n  return { clusters, edgePaths, edgeLabels, nodes, rootGroups };\n}\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, d3",
      "display": "packages/mermaid/src/rendering-util/createGraph.ts",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, d3",
      "display": "mermaid-js/mermaid",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, d3",
      "display": "91.1K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, cytoscape",
      "display": "Cytoscape.js",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, cytoscape",
      "display": "100.3M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, cytoscape",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, cytoscape",
      "display": "3.35.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, cytoscape",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, cytoscape",
      "display": "npm install cytoscape",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, cytoscape",
      "display": "import cytoscape from 'cytoscape';\n\nvar cy = cytoscape({\n  container: document.getElementById('cy') // container to render in\n});\n\n// can use reference to eles later\nvar eles = cy.add([\n  { group: 'nodes', data: { id: 'n0' }, position: { x: 100, y: 100 } },\n  { group: 'nodes', data: { id: 'n1' }, position: { x: 200, y: 200 } },\n  { group: 'edges', data: { id: 'e0', source: 'n0', target: 'n1' } }\n]);\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Repository stars, cytoscape",
      "display": "11.3K",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Force-directed layout included, cytoscape",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Three-dimensional network scene, cytoscape",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Architecture, cytoscape",
      "display": "Interactive graph renderer plus graph-theory/query/manipulation APIs",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Graph manipulation, cytoscape",
      "display": "Batching, ID lookup, mutable collections, class/data updates, and graph analysis share the graph API.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project function, cytoscape",
      "display": "mergeToGraph(elements: ElementDefinition[], batch=true, triggerGraphChanged=true): IMergedToGraph {\n      if (batch) {\n        this.viz.startBatch();\n      }\n      const addElements: ElementDefinition[] = [];\n      const mergedCollection = this.viz.collection();\n      elements.forEach((n) => {\n        if (this.viz.$id(n.data.id).length === 0) {\n          addElements.push(n);\n        } else {\n          const gElement = this.viz.$id(n.data.id);\n          const extraClasses = CLASSES.filter((clazz) => gElement.hasClass(clazz));\n\n          // @ts-ignore\n          extraClasses.push(...gElement.classes().filter((el: string) => el.startsWith('global-') || el.startsWith('local-')));\n\n          // TODO: Maybe make an event here\n          gElement.classes(n.classes);\n          for (const clazz of extraClasses) {\n            gElement.addClass(clazz);\n          }\n          gElement.data(n.data);\n          mergedCollection.merge(gElement);\n        }\n      });\n      const addCollection = this.viz.add(addElements);\n      mergedCollection.merge(addCollection);\n      if (triggerGraphChanged) {\n        this.onGraphChanged(false);\n      }\n      if (batch) {\n        this.viz.endBatch();\n      }\n      return {merged: mergedCollection, added: addCollection};\n    }\n",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project source file, cytoscape",
      "display": "src/viz/visualization.ts",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project full_name, cytoscape",
      "display": "HEmile/juggl",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project stargazers_count, cytoscape",
      "display": "825",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Library name, echarts",
      "display": "Apache ECharts",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Monthly downloads, echarts",
      "display": "38.3M",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "License, echarts",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Package release, echarts",
      "display": "6.1.0",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release date, echarts",
      "display": "May 2026",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Install, echarts",
      "display": "npm install echarts",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Quickstart, echarts",
      "display": "\n      // Initialize the echarts instance based on the prepared dom\n      var myChart = echarts.init(document.getElementById('main'));\n\n      // Specify the configuration items and data for the chart\n      var option = {\n        title: {\n          text: 'ECharts Getting Started Example'\n        },\n        tooltip: {},\n        legend: {\n          data: ['sales']\n        },\n        xAxis: {\n          data: ['Shirts', 'Cardigans', 'Chiffons', 'Pants', 'Heels', 'Socks']\n        },\n        yAxis: {},\n        series: [\n          {\n            name: 'sales',\n            type: 'bar',\n            data: [5, 20, 36, 10, 10, 20]\n          }\n        ]\n      };\n\n      // Display the chart using the configuration and the data defined above.\n      myChart.setOption(option);\n",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Official description, echarts",
      "display": "Draws interactive charts and data visualizations in the browser.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart source file, echarts",
      "display": "get-started",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Repository stars, echarts",
      "display": "67.8K",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Force-directed layout included, echarts",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Three-dimensional network scene, echarts",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Architecture, echarts",
      "display": "General charting framework with an actual arbitrary node/link graph series and optional force layout",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Download interpretation, echarts",
      "display": "Package downloads include many non-network chart/graphics uses and do not measure graph-visualization adoption.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project function, echarts",
      "display": "function (graph) {\n  myChart.hideLoading();\n\n  graph.nodes.forEach(function (node: GraphNode) {\n    node.label = {\n      show: node.symbolSize > 30\n    };\n  });\n  option = {\n    title: {\n      text: 'Les Miserables',\n      subtext: 'Default layout',\n      top: 'bottom',\n      left: 'right'\n    },\n    tooltip: {},\n    legend: [\n      {\n        // selectedMode: 'single',\n        data: graph.categories.map(function (a: { name: string }) {\n          return a.name;\n        })\n      }\n    ],\n    animationDuration: 1500,\n    animationEasingUpdate: 'quinticInOut',\n    series: [\n      {\n        name: 'Les Miserables',\n        type: 'graph',\n        legendHoverLink: false,\n        layout: 'none',\n        data: graph.nodes,\n        links: graph.links,\n        categories: graph.categories,\n        roam: true,\n        label: {\n          position: 'right',\n          formatter: '{b}'\n        },\n        lineStyle: {\n          color: 'source',\n          curveness: 0.3\n        },\n        emphasis: {\n          focus: 'adjacency',\n          lineStyle: {\n            width: 10\n          }\n        }\n      }\n    ]\n  };\n\n  myChart.setOption(option);\n}\n",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project source file, echarts",
      "display": "public/examples/ts/graph.ts",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project full_name, echarts",
      "display": "apache/echarts-examples",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project stargazers_count, echarts",
      "display": "401",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Library name, highcharts",
      "display": "Highcharts",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Monthly downloads, highcharts",
      "display": "13.5M",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "License, highcharts",
      "display": "https://www.highcharts.com/license",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release, highcharts",
      "display": "13.1.1",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Package release date, highcharts",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Install, highcharts",
      "display": "npm install highcharts",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart, highcharts",
      "display": "    document.addEventListener('DOMContentLoaded', function () {\n        const chart = Highcharts.chart('container', {\n            chart: {\n                type: 'bar'\n            },\n            title: {\n                text: 'Fruit Consumption'\n            },\n            xAxis: {\n                categories: ['Apples', 'Bananas', 'Oranges']\n            },\n            yAxis: {\n                title: {\n                    text: 'Fruit eaten'\n                }\n            },\n            series: [{\n                name: 'Jane',\n                data: [1, 0, 4]\n            }, {\n                name: 'John',\n                data: [5, 7, 3]\n            }]\n        });\n    });\n",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Official description, highcharts",
      "display": "JavaScript charting framework",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Quickstart source file, highcharts",
      "display": "docs/getting-started/your-first-chart.md",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Repository stars, highcharts",
      "display": "240",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Force-directed layout included, highcharts",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Three-dimensional network scene, highcharts",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Architecture, highcharts",
      "display": "General charting framework with a separately loaded networkgraph force-directed series",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Download interpretation, highcharts",
      "display": "Package downloads include many non-network chart/graphics uses and do not measure graph-visualization adoption.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "License source, highcharts",
      "display": "Publisher metadata points to Highcharts license terms; it is not labeled MIT.",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Library name, force-graph",
      "display": "force-graph",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Monthly downloads, force-graph",
      "display": "5.6M",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "License, force-graph",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release, force-graph",
      "display": "1.52.0",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release date, force-graph",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Install, force-graph",
      "display": "npm install force-graph",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Quickstart, force-graph",
      "display": "\n    // Random tree\n    const N = 300;\n    const gData = {\n      nodes: [...Array(N).keys()].map(i => ({ id: i })),\n      links: [...Array(N).keys()]\n        .filter(id => id)\n        .map(id => ({\n          source: id,\n          target: Math.round(Math.random() * (id-1))\n        }))\n    };\n\n    const Graph = new ForceGraph(document.getElementById('graph'))\n        .linkDirectionalParticles(2)\n        .graphData(gData);\n",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Official description, force-graph",
      "display": "Draws a two-dimensional force-directed graph on an HTML5 canvas.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Quickstart source file, force-graph",
      "display": "example/basic/index.html",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Repository stars, force-graph",
      "display": "2.2K",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Force-directed layout included, force-graph",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Three-dimensional network scene, force-graph",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Architecture, force-graph",
      "display": "2D Canvas force-directed graph component",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Library name, vis-network",
      "display": "vis-network",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Monthly downloads, vis-network",
      "display": "4.2M",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "License, vis-network",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release, vis-network",
      "display": "10.1.5",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release date, vis-network",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Install, vis-network",
      "display": "npm install vis-network",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Quickstart, vis-network",
      "display": "\n    // create an array with nodes\n    var nodes = new vis.DataSet([\n        {id: 1, label: 'Node 1'},\n        {id: 2, label: 'Node 2'},\n        {id: 3, label: 'Node 3'},\n        {id: 4, label: 'Node 4'},\n        {id: 5, label: 'Node 5'}\n    ]);\n\n    // create an array with edges\n    var edges = new vis.DataSet([\n        {from: 1, to: 3},\n        {from: 1, to: 2},\n        {from: 2, to: 4},\n        {from: 2, to: 5}\n    ]);\n\n    // create a network\n    var container = document.getElementById('mynetwork');\n\n    // provide the data in the vis format\n    var data = {\n        nodes: nodes,\n        edges: edges\n    };\n    var options = {};\n\n    // initialize your network!\n    var network = new vis.Network(container, data, options);\n",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Repository stars, vis-network",
      "display": "3.6K",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Force-directed layout included, vis-network",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Three-dimensional network scene, vis-network",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Architecture, vis-network",
      "display": "Interactive2D network renderer with physics and browser interaction APIs",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Library name, sigma",
      "display": "Sigma.js",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Monthly downloads, sigma",
      "display": "2.8M",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "License, sigma",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Package release, sigma",
      "display": "4.0.6",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release date, sigma",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Install, sigma",
      "display": "npm install sigma graphology",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Quickstart, sigma",
      "display": "import Graph from \"graphology\";\nimport Sigma from \"sigma\";\n\n// Create a graph with graphology\nconst graph = new Graph();\n\n// Add nodes with positions, sizes, colors, and labels\ngraph.addNode(\"1\", {\n  label: \"Node 1\",\n  x: 0,\n  y: 0,\n  size: 1,\n  color: \"blue\",\n});\ngraph.addNode(\"2\", {\n  label: \"Node 2\",\n  x: 5,\n  y: 10,\n  size: 1,\n  color: \"red\",\n});\ngraph.addNode(\"3\", {\n  label: \"Node 3\",\n  x: 10,\n  y: 0,\n  size: 1,\n  color: \"green\",\n});\n\n// Add edges between nodes\ngraph.addEdge(\"1\", \"2\", { size: 1 });\ngraph.addEdge(\"2\", \"3\", { size: 1 });\ngraph.addEdge(\"3\", \"1\", { size: 1 });\n\n// Render the graph in the container\nconst renderer = new Sigma(graph, document.getElementById(\"container\"));\n",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Repository stars, sigma",
      "display": "12.2K",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Force-directed layout included, sigma",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Three-dimensional network scene, sigma",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Architecture, sigma",
      "display": "WebGL2 network renderer over a separate Graphology data model; external coordinate/layout computation",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Coordinate contract, sigma",
      "display": "Camera uses normalized x/y, angle, and ratio; external layouts supply graph positions.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Project function, sigma",
      "display": "function fitCameraToMercatorExtent(sigma: Sigma, extent: { minX: number; minY: number; maxX: number; maxY: number }) {\n  sigma.setCustomBBox(MERCATOR_WORLD);\n  sigma.getCamera().setState({ angle: 0, x: 0.5, y: 0.5, ratio: 1 });\n\n  if (extent.minX > extent.maxX || extent.minY > extent.maxY) return;\n\n  const centerX = (extent.minX + extent.maxX) / 2;\n  const centerY = (extent.minY + extent.maxY) / 2;\n  const extentW = extent.maxX - extent.minX;\n  const extentH = extent.maxY - extent.minY;\n\n  // Visible range at ratio=1 with a 1×1 bbox: sigma fits the square to the\n  // viewport preserving aspect ratio, so the longer axis spans W/H or H/W.\n  const { width, height } = sigma.getDimensions();\n  const visibleW = width >= height ? width / height : 1;\n  const visibleH = width >= height ? 1 : height / width;\n\n  const ratio = Math.max(extentW / visibleW, extentH / visibleH, 0.01);\n  sigma.getCamera().setState({ angle: 0, x: centerX, y: centerY, ratio });\n}\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Project source file, sigma",
      "display": "packages/gephi-lite/src/core/sigma/index.ts",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project full_name, sigma",
      "display": "gephi/gephi-lite",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project stargazers_count, sigma",
      "display": "358",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Library name, 3d-force-graph",
      "display": "3d-force-graph",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Monthly downloads, 3d-force-graph",
      "display": "2.6M",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "License, 3d-force-graph",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Package release, 3d-force-graph",
      "display": "1.80.2",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release date, 3d-force-graph",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Install, 3d-force-graph",
      "display": "npm install 3d-force-graph",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Quickstart, 3d-force-graph",
      "display": "\n    // Random tree\n    const N = 300;\n    const gData = {\n      nodes: [...Array(N).keys()].map(i => ({ id: i })),\n      links: [...Array(N).keys()]\n        .filter(id => id)\n        .map(id => ({\n          source: id,\n          target: Math.round(Math.random() * (id-1))\n        }))\n    };\n\n    const Graph = new ForceGraph3D(document.getElementById('3d-graph'))\n        .graphData(gData);\n",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Official description, 3d-force-graph",
      "display": "Draws a three-dimensional force-directed graph with ThreeJS and the d3-force-3d layout engine.",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart source file, 3d-force-graph",
      "display": "example/basic/index.html",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Repository stars, 3d-force-graph",
      "display": "6.6K",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Force-directed layout included, 3d-force-graph",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Three-dimensional network scene, 3d-force-graph",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Architecture, 3d-force-graph",
      "display": "3D force-directed graph component using ThreeJS and d3-force-3d",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Includes a graph series",
      "display": "Includes a graph series",
      "asOf": "2026-11-17"
    },
    "F250": {
      "label": "Set the graph series layout to force or circular to arrange nodes and links.",
      "display": "Set the graph series layout to force or circular to arrange nodes and links.",
      "asOf": "2026-11-17"
    },
    "F251": {
      "label": "Adds force-directed network graphs to Highcharts through the networkgraph module.",
      "display": "Adds force-directed network graphs to Highcharts through the networkgraph module.",
      "asOf": "2026-11-17"
    },
    "F252": {
      "label": "Takes a list of links",
      "display": "Takes a list of links",
      "asOf": "2026-11-17"
    },
    "F253": {
      "label": "Pass an array of links, each with a start node and an end node.",
      "display": "Pass an array of links, each with a start node and an end node.",
      "asOf": "2026-11-17"
    },
    "F254": {
      "label": "Needs an extra module",
      "display": "Needs an extra module",
      "asOf": "2026-11-17"
    },
    "F255": {
      "label": "Load the networkgraph module after the main Highcharts script.",
      "display": "Load the networkgraph module after the main Highcharts script.",
      "asOf": "2026-11-17"
    },
    "F256": {
      "label": "Built-in pointer interactions",
      "display": "Built-in pointer interactions",
      "asOf": "2026-11-17"
    },
    "F257": {
      "label": "Zoom, pan, drag nodes, and handle hover and click events on nodes and links.",
      "display": "Zoom, pan, drag nodes, and handle hover and click events on nodes and links.",
      "asOf": "2026-11-17"
    },
    "F258": {
      "label": "Has React bindings",
      "display": "Has React bindings",
      "asOf": "2026-11-17"
    },
    "F259": {
      "label": "Use the react-force-graph package to render the same graph in React.",
      "display": "Use the react-force-graph package to render the same graph in React.",
      "asOf": "2026-11-17"
    },
    "F260": {
      "label": "Renders with WebGL",
      "display": "Renders with WebGL",
      "asOf": "2026-11-17"
    },
    "F261": {
      "label": "ThreeJS draws the graph scene in WebGL.",
      "display": "ThreeJS draws the graph scene in WebGL.",
      "asOf": "2026-11-17"
    },
    "F262": {
      "label": "Offers two physics engines",
      "display": "Offers two physics engines",
      "asOf": "2026-11-17"
    },
    "F263": {
      "label": "Choose d3-force-3d or ngraph to compute the layout.",
      "display": "Choose d3-force-3d or ngraph to compute the layout.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript graph visualization libraries D3 Cytoscape Sigma vis-network code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
