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

X6

> 开发工具
开源

JavaScript 图示库,使用 SVG 和 HTML 进行渲染。

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

工具介绍

JavaScript 图示库,使用 SVG 和 HTML 进行渲染。

English | [简体中文](/README.zh-CN.md)

X6: Graph Editing and Visualization Engine

Official Documentation • Quick Start • Graph Examples • FAQ • Demo Template • Awesome X6

AntV `X6` is a graph editing engine based on HTML and SVG, providing low-cost customization capabilities and out-of-the-box built-in extensions that make it easy to quickly build applications such as DAG diagrams, ER diagrams, flowcharts, lineage graphs, and more. We hope developers can use X6 to rapidly build various graph editing applications they need, making process relationship data controllable, interactive, and visualized. ## ✨ Features As a professional graph editing and visualization engine, X6 has the following features: - _Highly Customizable_: Supports customizing node styles and interactions using SVG / HTML / React / Vue / Angular, with a comprehensive `event system` that allows listening to any events occurring within the chart. - _Out-of-the-Box_: Built-in `10+` graph editing extensions, such as lasso selection, alignment lines, minimap, etc. - _Data-Driven_: Based on the `MVC` architecture, allowing users to focus more on data logic and business logic. - _Server-Side Rendering_: Supports server-side rendering with good browser compatibility. ## Getting Started You can install via package managers like NPM or Yarn. ```bash # npm $ npm install @antv/x6 --save # yarn $ yarn add @antv/x6 ``` After successful installation, you can import the `Graph` object using import. ```html ``` ```ts import { Graph } from '@antv/x6' const graph = new Graph({ container: document.getElementById('container'), grid: true, }) const source = graph.addNode({ x: 300, y: 40, width: 80, height: 40, label: 'Hello', }); const target = graph.addNode({ x: 420, y: 180, width: 80, height: 40, label: 'World', }); graph.addEdge({ source, target, }); ``` If everything goes smoothly, you will get a simple flowchart canvas as shown below. ## ‍ Local Development ```shell # Install project dependencies and initialize build $ pnpm install # Start examples to view results pnpm run start:examples ``` ## Contribution Thank you to everyone who has contributed to this project and all supporters! - **Issue Feedback**: If you encounter any issues with X6 during use, feel free to submit an Issue along with minimal reproducible code. - **Contribution Guide**: How to participate in the [development and contribution](./CONTRIBUTING.md) of X6. - **Discussion Ideas**: Discuss on GitHub Discussion or DingTalk group. ## License [MIT](./LICENSE).

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptantvdagdiagramdiagramming

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具