ECharts graph modularity extension for community detection
JavaScript HTML
Latest commit 877dc09 Aug 5, 2016 @pissang pissang 1.0.3
Permalink
Failed to load latest commit information.
dist Edge color encoding Aug 4, 2016
example Edge color encoding Aug 4, 2016
src Edge color encoding Aug 4, 2016
.gitignore Publish Aug 4, 2016
README.md README tweak Aug 4, 2016
index.js Publish Aug 4, 2016
package.json 1.0.3 Aug 4, 2016
webpack.config.js Publish Aug 4, 2016

README.md

ECharts graph modularity extension based on jLouvain

logo

Graph modularity extension will do community detection and partian 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

        ...
    }]
})