2.1.0 • Published 3 years ago

echarts-graph-modularity v2.1.0

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

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.

npm.io

Install

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

Or

npm install echarts-graph-modularity
import * as echarts from 'echarts';
import 'echarts-graph-modularity';

NOTE:

V2.x is for ECharts 5.x

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
        }

        ...
    }]
})
2.1.0

3 years ago

2.0.0

3 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago