Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ecomfe/echarts-graph-modularity
Graph modularity extension for community detection with Apache ECharts
https://github.com/ecomfe/echarts-graph-modularity
echarts
Last synced: about 1 month ago
JSON representation
Graph modularity extension for community detection with Apache ECharts
- Host: GitHub
- URL: https://github.com/ecomfe/echarts-graph-modularity
- Owner: ecomfe
- Created: 2016-08-04T02:15:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T02:48:43.000Z (9 months ago)
- Last Synced: 2024-09-16T13:43:51.684Z (3 months ago)
- Topics: echarts
- Language: HTML
- Homepage:
- Size: 192 KB
- Stars: 70
- Watchers: 14
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-echarts - Graph Modularity - Apache ECharts graph modularity extension for community detection. (Extensions / Videos)
README
# graph modularity extension for [Apache ECharts](https://github.com/apache/echarts)
Graph modularity extension will do community detection and partition a graph's vertices in several subsets. Each subset will be assigned a different color.
![](./example/modularity.png)
## Install
```html
```
Or
```shell
npm install echarts-graph-modularity
``````js
import * as echarts from 'echarts';
import 'echarts-graph-modularity';
```NOTE:
V2.x is for ECharts 5.x
## 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
}...
}]
})
```## Notice
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).