# echarts-graph-modularity
**Repository Path**: wang-abib/echarts-graph-modularity
## Basic Information
- **Project Name**: echarts-graph-modularity
- **Description**: ECharts graph modularity extension for community detection
- **Primary Language**: HTML
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-11-22
- **Last Updated**: 2023-10-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# [ECharts](https://github.com/ecomfe/echarts) graph modularity extension
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
```html
```
Or
```shell
npm install echarts-graph-modularity
```
```js
var echarts = require('echarts');
require('echarts-graph-modularity');
```
## Usage
```js
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
}
...
}]
})
```