Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jul 4, 2017
src
Jul 4, 2017
Aug 4, 2016
Aug 4, 2016

README.md

graph modularity extension for Apache ECharts (incubating)

Graph modularity extension will do community detection and partition a graph's vertices in several subsets. Each subset will be assigned a different color.

Install

<script src="echarts.min.js"></script>
<script src="echarts-graph-modularity.min.js"></script>

Or

npm install echarts-graph-modularity
var echarts = require('echarts');
require('echarts-graph-modularity');

Usage

setOption({

    ...

    series: [{
        type: 'graph',
        layout: 'force',
        // Set modularity property true and extension will automatically detect different communities
        // and assign each different color.
        modularity: true

        // Specify resolution. Higher resolution will produce less communities
        modularity: {
            resolution: 5,
            // If sort the communities
            sort: false
        }

        ...
    }]
})

About

ECharts graph modularity extension for community detection

Topics

Resources

Packages

No packages published
You can’t perform that action at this time.