# echarts-graph-modularity **Repository Path**: d3Object/echarts-graph-modularity ## Basic Information - **Project Name**: echarts-graph-modularity - **Description**: 模块化扩展社区检测Echarts图 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-08-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [ECharts](https://github.com/ecomfe/echarts) graph modularity extension based on [jLouvain](https://github.com/upphiminn/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. ![](./example/modularity.png) ## 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 ... }] }) ```