百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sigma.js

> 编程语言
开源

一个 JavaScript 库,用于可视化数千个节点和边的图形

12.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个 JavaScript 库,用于可视化数千个节点和边的图形


Website | Documentation | Storybook | Mastodon

[!NOTE] Sigma v4 is now available as an alpha release. See v4.sigmajs.org for the website, or the v4 branch for the source code.


Sigma.js is an open-source JavaScript library aimed at visualizing graphs of thousands of nodes and edges using WebGL, mainly developed by @jacomyal and @Yomguithereal, and built on top of graphology.

How to use in your project

To integrate sigma into your project, follow these simple steps:

  1. Installation: Add sigma and graphology to your project by running the following command:

    bash
    npm install sigma graphology
  2. Usage: Import sigma into your JavaScript or TypeScript file:

    javascript
    import Graph from "graphology";
    import Sigma from "sigma";

    Then, create a new Sigma instance with your graph data and target container:

    javascript
    const graph = new Graph();
    graph.addNode("1", { label: "Node 1", x: 0, y: 0, size: 10, color: "blue" });
    graph.addNode("2", { label: "Node 2", x: 1, y: 1, size: 20, color: "red" });
    graph.addEdge("1", "2", { size: 5, color: "purple" });
    
    const sigmaInstance = new Sigma(graph, document.getElementById("container"));

How to develop locally

To run the Storybook locally:

bash
git clone [email protected]:jacomyal/sigma.js.git
cd sigma.js
npm install
npm run start

This will open the Storybook in your web browser, which live reloads when you modify the stories or the package sources.

Resources

  • GitHub Project: The source code and collaborative development efforts for Sigma.js are hosted on GitHub.
  • Website: The official website, sigmajs.org, kindly designed by Robin de Mourat from the Sciences-Po médialab team, showcases the library's capabilities.
  • Documentation: A detailed documentation, built with Docusaurus, is available at sigmajs.org/docs. It provides extensive guides and API references for users.
  • Storybook: Interactive examples can be found at sigmajs.org/storybook.
  • Demo: A comprehensive demo, available at sigmajs.org/demo, features a full-featured React-based web application utilizing Sigma.js.

How to contribute

You can contribute by submitting issues tickets and proposing pull requests. Make sure that tests and linting pass before submitting any pull request.

You can also browse the related documentation here.

How to start a new package

Run npm run createPackage from the project root. It will:

  • Ask you the new package name
  • Copy the packages/template folder
  • Update the new package package.json entries (name, description, exports)
  • Update various other files (buildable packages list in tsconfig.json, Preconstruct compatible packages list in package.json...)

Issues· 12 开放

查看全部 Issues在 GitHub 打开
  • #1515

    功能想法: 支持将节点和链接按照组合风格进行分组,以实现数据可视化

    enhancement更新于 2026年7月14日
  • #1333

    背景图像

    enhancement更新于 2026年4月15日
  • #1297

    为每个网格单元的标签数添加某种上限常数

    bugpinnedoptimization更新于 2026年4月15日
  • #1295

    尝试设置标签防碰撞选项

    enhancement更新于 2026年4月15日
  • #1516

    支持图形批量更新的事件优化

    enhancement更新于 2026年1月30日
  • #1454

    在图形学中使用数字作为关键值会导致 SigmaJS 出现一些意想不到的行为

    bugpinned更新于 2024年9月2日
  • #1424

    节点中的图像的高度和宽度

    enhancement更新于 2024年4月25日
  • #1420

    使用 Vue.js 的 Sigma

    enhancement更新于 2024年4月4日
  • #1309

    从 LabelGrid.getLabelsToDisplay 执行标签的视锥体,而不是直接从 Sigma.renderLabels 执行

    pinnedoptimization更新于 2024年2月6日

> 标签

TypeScriptdata-visualizationgraphgraph-drawinggraph-drawing-framework

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言