# echarts-graph-modularity **Repository Path**: mirrors_ecomfe/echarts-graph-modularity ## Basic Information - **Project Name**: echarts-graph-modularity - **Description**: Graph modularity extension for community detection with Apache ECharts - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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/).