Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

WebCola

> 编程语言
Open source

Javascript constraint-based graph layout

2.1K stars0 likes1 views
WebsiteGitHub

About

Javascript constraint-based graph layout

WebCola

JavaScript constraint based layout for high-quality graph visualization and exploration using D3.js and other web-based graphics libraries.

Homepage with code and more examples

Note: While D3 adaptor supports both D3 v3 and D3 v4, WebCoLa's interface is styled like D3 v3. Follow the setup in our homepage for more details.

Installation

Browser:

xml

<script src="https://ialab.it.monash.edu/webcola/cola.min.js"></script>

<script src="https://ialab.it.monash.edu/webcola/cola.js"></script>

The minified version can also be accessed from jsDelivr.

Npm:

bash
npm install webcola --save

You can also install it through npm by first adding it to package.json:

"dependencies": {
  "webcola": "latest"
}

Then by running npm install.

Bower:

bower install webcola --save

If you use TypeScript, you can get complete TypeScript definitions by installing tsd 0.6 and running tsd link.

Building

Linux/Mac/Windows Command Line:

  • install node.js

  • from the WebCola directory:

    bash
     npm install
    
  • build, minify and test:

    bash
     npm run build
     npm run test

This creates the cola.js and cola.min.js files in the dist directory and runs tests.

Visual Studio:

  • get the typescript plugin
  • open webcola.sln

Running

Linux/Mac/Windows Command Line:

Install the Node.js http-server module:

bash
npm install -g http-server

After installing http-server, we can serve out the example content in the WebCola directory.

bash
npm run website
http-server website

The default configuration of http-server will serve the exampes on http://localhost:8080.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

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